All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ramdisk driver: make rd_size non-static
@ 2008-01-18  2:02 Byron Bradley
  2008-01-18  2:28 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Byron Bradley @ 2008-01-18  2:02 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: linux-kernel, akpm, Byron Bradley, Nick Piggin, Russell King

In arch/arm/kernel/setup.c:setup_ramdisk(), rd_size is set from the
boot tags. The replacement ramdisk driver has rd_size as static
which causes linking to fail when ramdisk is built-in.

Signed-off-by: Byron Bradley <byron.bbradley@gmail.com>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Russell King <rmk@arm.linux.org.uk>
---

This patch applies against 2.6.24-rc8-mm1 and has not been tested,
it is only know to compile. I'm not sure if there is a better way
to set rd_size or if this is OK.

 drivers/block/brd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/block/brd.c b/drivers/block/brd.c
index 5ef1d26..8536480 100644
--- a/drivers/block/brd.c
+++ b/drivers/block/brd.c
@@ -385,7 +385,7 @@ static struct block_device_operations brd_fops = {
  * And now the modules code and kernel interface.
  */
 static int rd_nr;
-static int rd_size = CONFIG_BLK_DEV_RAM_SIZE;
+int rd_size = CONFIG_BLK_DEV_RAM_SIZE;
 module_param(rd_nr, int, 0);
 MODULE_PARM_DESC(rd_nr, "Maximum number of brd devices");
 module_param(rd_size, int, 0);
-- 
1.5.4.rc2.38.gd6da3



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

end of thread, other threads:[~2008-01-18 19:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-18  2:02 [PATCH] ramdisk driver: make rd_size non-static Byron Bradley
2008-01-18  2:28 ` Andrew Morton
2008-01-18  2:39   ` Matt Mackall
2008-01-18 11:29     ` Nick Piggin
2008-01-18 19:28   ` Russell King - ARM Linux

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.