summaryrefslogtreecommitdiffstats
path: root/kernel/module/internal.h
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2022-02-23 10:01:01 +0100
committerLuis Chamberlain <mcgrof@kernel.org>2022-04-05 17:43:04 +0200
commit7337f929d5672e37a80c8582d357f084320f475f (patch)
tree2d15fd6294f4633c06a915243ea5612553fddc84 /kernel/module/internal.h
parentmodule: Rework layout alignment to avoid BUG_ON()s (diff)
downloadlinux-7337f929d5672e37a80c8582d357f084320f475f.tar.xz
linux-7337f929d5672e37a80c8582d357f084320f475f.zip
module: Rename debug_align() as strict_align()
debug_align() was added by commit 84e1c6bb38eb ("x86: Add RO/NX protection for loadable kernel modules") At that time the config item was CONFIG_DEBUG_SET_MODULE_RONX. But nowadays it has changed to CONFIG_STRICT_MODULE_RWX and debug_align() is confusing because it has nothing to do with DEBUG. Rename it strict_align() Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/module/internal.h')
-rw-r--r--kernel/module/internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/module/internal.h b/kernel/module/internal.h
index e94defbeda00..cbc268af23ae 100644
--- a/kernel/module/internal.h
+++ b/kernel/module/internal.h
@@ -26,9 +26,9 @@
* only when CONFIG_STRICT_MODULE_RWX=y
*/
#ifdef CONFIG_STRICT_MODULE_RWX
-# define debug_align(X) PAGE_ALIGN(X)
+# define strict_align(X) PAGE_ALIGN(X)
#else
-# define debug_align(X) (X)
+# define strict_align(X) (X)
#endif
extern struct mutex module_mutex;