Skip to contentSkip to conversation

store __setup_str_* in a more compact way

PATCH New Jan Beulich 1 participant 1 message Aug 28, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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).

 include/linux/init.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/init.h +1 -1
@@ -158,7 +158,7 @@ struct obs_kernel_param {
  * obs_kernel_param "array" too far apart in .init.setup.
  */
 #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	\
 		__attribute_used__				\
 		__attribute__((__section__(".init.setup")))	\