From: Andrew Morton <akpm@linux-foundation.org>
To: Byron Bradley <byron.bbradley@gmail.com>
Cc: linux-arm-kernel@lists.arm.linux.org.uk,
linux-kernel@vger.kernel.org, Nick Piggin <npiggin@suse.de>,
Russell King <rmk@arm.linux.org.uk>
Subject: Re: [PATCH] ramdisk driver: make rd_size non-static
Date: Thu, 17 Jan 2008 18:28:51 -0800 [thread overview]
Message-ID: <20080117182851.f9177571.akpm@linux-foundation.org> (raw)
In-Reply-To: <1200621737-1458-1-git-send-email-byron.bbradley@gmail.com>
On Fri, 18 Jan 2008 02:02:17 +0000 Byron Bradley <byron.bbradley@gmail.com> wrote:
> 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.
>
but...
> 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);
rd_size is a module parameter so it is settable via the
syntax-which-i-can-never-remember. rd.rd_size=1024 or something like that.
If that's all sane, do we have some back-compat reason to continue to
support the special and duplicative rd_size parameter?
(If we never did crap like this:
arch/arm/kernel/setup.c: extern int rd_size, rd_image_start, rd_prompt, rd_doload;
then this sort of problem wouldn't occur so often)
MIPS has the same problem.
next prev parent reply other threads:[~2008-01-18 2:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-18 2:02 Byron Bradley
2008-01-18 2:28 ` Andrew Morton [this message]
2008-01-18 2:39 ` Matt Mackall
2008-01-18 11:29 ` Nick Piggin
2008-01-18 19:28 ` Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080117182851.f9177571.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=byron.bbradley@gmail.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=npiggin@suse.de \
--cc=rmk@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome