Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5aa0daf authored by Jan Beulich's avatar Jan Beulich Committed by Linus Torvalds
Browse files

store __setup_str_* in a more compact way



__setup_str_* are referenced only during boot, hence there's no need to
waste image space for aligning these strings (with the aim of improving
performance).

Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 00442995
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -161,7 +161,7 @@ struct obs_kernel_param {
 * obs_kernel_param "array" too far apart in .init.setup.
 * obs_kernel_param "array" too far apart in .init.setup.
 */
 */
#define __setup_param(str, unique_id, fn, early)			\
#define __setup_param(str, unique_id, fn, early)			\
	static char __setup_str_##unique_id[] __initdata = str;	\
	static char __setup_str_##unique_id[] __initdata __aligned(1) = str; \
	static struct obs_kernel_param __setup_##unique_id	\
	static struct obs_kernel_param __setup_##unique_id	\
		__attribute_used__				\
		__attribute_used__				\
		__attribute__((__section__(".init.setup")))	\
		__attribute__((__section__(".init.setup")))	\