]> git.baikalelectronics.ru Git - kernel.git/commit
modules: page-align module section allocations only for arches supporting strict...
authorHe Zhe <zhe.he@windriver.com>
Tue, 20 Aug 2019 14:53:10 +0000 (22:53 +0800)
committerJessica Yu <jeyu@kernel.org>
Wed, 21 Aug 2019 08:43:56 +0000 (10:43 +0200)
commit1d31cd9cfa3b14dd46078a80ba8e052ec9c7c778
tree51ee2d4207b59df48a4123070713d7772838f7d6
parent8223415277a7b32cd36bfa705969bff27b35498a
modules: page-align module section allocations only for arches supporting strict module rwx

We should keep the case of "#define debug_align(X) (X)" for all arches
without CONFIG_HAS_STRICT_MODULE_RWX ability, which would save people, who
are sensitive to system size, a lot of memory when using modules,
especially for embedded systems. This is also the intention of the
original #ifdef... statement and still valid for now.

Note that this still keeps the effect of the fix of the following commit,
8223415277a7 ("modules: always page-align module section allocations"),
since when CONFIG_ARCH_HAS_STRICT_MODULE_RWX is enabled, module pages are
aligned.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
kernel/module.c