public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] store __setup_str_* in a more compact way
@ 2007-08-28 10:07 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2007-08-28 10:07 UTC (permalink / raw)
  To: linux-kernel

__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: Jan Beulich <jbeulich@novell.com>

 include/linux/init.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.23-rc4/include/linux/init.h	2007-08-28 09:42:36.000000000 +0200
+++ 2.6.23-rc4-compact-setup-str/include/linux/init.h	2007-08-20 09:28:12.000000000 +0200
@@ -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")))	\




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-28 10:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-28 10:07 [PATCH] store __setup_str_* in a more compact way Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox