2005-05-07 08:32:37

by Hyok S. Choi

[permalink] [raw]
Subject: drivers/block/rd.c rd_size reference problem of ARM

the variable "rd_size" of drivers/block/rd.c is changed to be "static" in
2.6.12-rc3-mm3.
it causes compilation error to ARM architecture because of the reference of
that.

I blocked the reference as below, for compilation, but need to refine.

==================
diff -Naur linux-2.6.12-rc3-mm3/arch/arm/kernel/setup.c
linux-2.6.12-rc3-mm3-hsc0/arch/arm/kernel/setup.c
--- linux-2.6.12-rc3-mm3/arch/arm/kernel/setup.c 2005-05-06
09:53:10.000000000 +0900
+++ linux-2.6.12-rc3-mm3-hsc0/arch/arm/kernel/setup.c 2005-05-06
20:25:46.000000000 +0900
@@ -429,9 +465,13 @@
rd_prompt = prompt;
rd_doload = doload;

+ /* FIXME: rd_size became 'static'. (drivers/block/rd.c) */
+#if 0
if (rd_sz)
rd_size = rd_sz;
#endif
+
+#endif
}

static void __init

---
Hyok S. Choi
[Linux 2.6 for MMU-less ARM Project] http://opensrc.sec.samsung.com/


2005-05-07 08:45:05

by Russell King

[permalink] [raw]
Subject: Re: drivers/block/rd.c rd_size reference problem of ARM

On Sat, May 07, 2005 at 05:12:48PM +0900, Hyok S. Choi wrote:
> the variable "rd_size" of drivers/block/rd.c is changed to be "static" in
> 2.6.12-rc3-mm3.
> it causes compilation error to ARM architecture because of the reference of
> that.
>
> I blocked the reference as below, for compilation, but need to refine.

The change which caused this has been removed in -rc4, and Andrew is
probably going to drop this as well.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core