Commit b6472776816af1ed52848c93d26e3edb3b17adab
Committed by
Linus Torvalds
1 parent
a55621f15b
Exists in
master
and in
39 other branches
modules: no need to align .modinfo strings
gcc aligns strings as a performance consideration for those cases where strings are being used a lot. Their use is not performance critical, and hence it seems better to save some space. Signed-off-by: Jan Beulich <jbeulich@novell.com> Acked-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
include/linux/moduleparam.h
... | ... | @@ -21,8 +21,8 @@ |
21 | 21 | #define __module_cat(a,b) ___module_cat(a,b) |
22 | 22 | #define __MODULE_INFO(tag, name, info) \ |
23 | 23 | static const char __module_cat(name,__LINE__)[] \ |
24 | - __used \ | |
25 | - __attribute__((section(".modinfo"),unused)) = __stringify(tag) "=" info | |
24 | + __used __attribute__((section(".modinfo"), unused, aligned(1))) \ | |
25 | + = __stringify(tag) "=" info | |
26 | 26 | #else /* !MODULE */ |
27 | 27 | #define __MODULE_INFO(tag, name, info) |
28 | 28 | #endif |