public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] vmlinux.lds.h: allow people to set a smaller rootfs alignment
@ 2010-06-05 18:14 Mike Frysinger
  2010-06-05 18:14 ` [PATCH 2/2] Blackfin: use " Mike Frysinger
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Mike Frysinger @ 2010-06-05 18:14 UTC (permalink / raw)
  To: Tim Abbott; +Cc: linux-kernel

Add a new INIT_RAMFS() define to compliment the existing INIT_RAM_FS, but
this one lets people control the alignment.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 include/asm-generic/vmlinux.lds.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
index 48c5299..9ca268f 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -619,14 +619,15 @@
 		VMLINUX_SYMBOL(__security_initcall_end) = .;
 
 #ifdef CONFIG_BLK_DEV_INITRD
-#define INIT_RAM_FS							\
-	. = ALIGN(PAGE_SIZE);						\
+#define INIT_RAMFS(align)						\
+	. = ALIGN(align);						\
 	VMLINUX_SYMBOL(__initramfs_start) = .;				\
 	*(.init.ramfs)							\
 	VMLINUX_SYMBOL(__initramfs_end) = .;
 #else
-#define INIT_RAM_FS
+#define INIT_RAMFS(align)
 #endif
+#define INIT_RAM_FS INIT_RAMFS(PAGE_SIZE)
 
 /*
  * Default discarded sections.
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-06-11  7:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-05 18:14 [PATCH 1/2] vmlinux.lds.h: allow people to set a smaller rootfs alignment Mike Frysinger
2010-06-05 18:14 ` [PATCH 2/2] Blackfin: use " Mike Frysinger
2010-06-07 23:27 ` [PATCH 1/2] vmlinux.lds.h: allow people to set a " Tim Abbott
2010-06-09  7:20 ` Milton Miller
2010-06-09  7:42   ` Mike Frysinger
2010-06-09  7:51     ` Geert Uytterhoeven
2010-06-11  5:50     ` H. Peter Anvin
2010-06-11  7:30       ` Milton Miller

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