Re: [PATCH] h8300/kernel/setup.c: add "linux/initrd.h" to pass compiling

2013-08-29 Thread Chen Gang
On 08/26/2013 06:31 PM, Chen Gang wrote: > Need add "linux/initrd.h" to pass compiling. > > The related error (allmodconfig for h8300): > > arch/h8300/kernel/setup.c: In function 'setup_arch': > arch/h8300/kernel/setup.c:103:3: error: 'initrd_start' undeclared (first > use in this function)

Re: [PATCH] h8300/kernel/setup.c: add "linux/initrd.h" to pass compiling

2013-08-26 Thread Chen Gang
On 08/27/2013 06:12 AM, Guenter Roeck wrote: > On Mon, Aug 26, 2013 at 07:19:38PM +0800, Chen Gang wrote: >> On 08/26/2013 07:08 PM, Geert Uytterhoeven wrote: >>> On Mon, Aug 26, 2013 at 1:06 PM, Chen Gang wrote: On 08/26/2013 07:00 PM, Geert Uytterhoeven wrote: > On Mon, Aug 26, 2013 at

Re: [PATCH] h8300/kernel/setup.c: add "linux/initrd.h" to pass compiling

2013-08-26 Thread Guenter Roeck
On Mon, Aug 26, 2013 at 07:19:38PM +0800, Chen Gang wrote: > On 08/26/2013 07:08 PM, Geert Uytterhoeven wrote: > > On Mon, Aug 26, 2013 at 1:06 PM, Chen Gang wrote: > >> On 08/26/2013 07:00 PM, Geert Uytterhoeven wrote: > >>> On Mon, Aug 26, 2013 at 12:31 PM, Chen Gang wrote: > --- a/arch/h8

Re: [PATCH] h8300/kernel/setup.c: add "linux/initrd.h" to pass compiling

2013-08-26 Thread Chen Gang
On 08/26/2013 07:08 PM, Geert Uytterhoeven wrote: > On Mon, Aug 26, 2013 at 1:06 PM, Chen Gang wrote: >> On 08/26/2013 07:00 PM, Geert Uytterhoeven wrote: >>> On Mon, Aug 26, 2013 at 12:31 PM, Chen Gang wrote: --- a/arch/h8300/kernel/setup.c +++ b/arch/h8300/kernel/setup.c @@ -47,6

Re: [PATCH] h8300/kernel/setup.c: add "linux/initrd.h" to pass compiling

2013-08-26 Thread Geert Uytterhoeven
On Mon, Aug 26, 2013 at 1:06 PM, Chen Gang wrote: > On 08/26/2013 07:00 PM, Geert Uytterhoeven wrote: >> On Mon, Aug 26, 2013 at 12:31 PM, Chen Gang wrote: >>> --- a/arch/h8300/kernel/setup.c >>> +++ b/arch/h8300/kernel/setup.c >>> @@ -47,6 +47,9 @@ >>> #include >>> #endif >>> >>> +#if defined

Re: [PATCH] h8300/kernel/setup.c: add "linux/initrd.h" to pass compiling

2013-08-26 Thread Chen Gang
On 08/26/2013 07:00 PM, Geert Uytterhoeven wrote: > On Mon, Aug 26, 2013 at 12:31 PM, Chen Gang wrote: >> --- a/arch/h8300/kernel/setup.c >> +++ b/arch/h8300/kernel/setup.c >> @@ -47,6 +47,9 @@ >> #include >> #endif >> >> +#if defined(CONFIG_BLK_DEV_INITRD) > > Why have you added the #ifdef? >

Re: [PATCH] h8300/kernel/setup.c: add "linux/initrd.h" to pass compiling

2013-08-26 Thread Geert Uytterhoeven
On Mon, Aug 26, 2013 at 12:31 PM, Chen Gang wrote: > --- a/arch/h8300/kernel/setup.c > +++ b/arch/h8300/kernel/setup.c > @@ -47,6 +47,9 @@ > #include > #endif > > +#if defined(CONFIG_BLK_DEV_INITRD) Why have you added the #ifdef? > +#include > +#endif > #define STUBSIZE 0xc000 Gr{oetje,eet

[PATCH] h8300/kernel/setup.c: add "linux/initrd.h" to pass compiling

2013-08-26 Thread Chen Gang
Need add "linux/initrd.h" to pass compiling. The related error (allmodconfig for h8300): arch/h8300/kernel/setup.c: In function 'setup_arch': arch/h8300/kernel/setup.c:103:3: error: 'initrd_start' undeclared (first use in this function) initrd_start = memory_start; ^ arch/h8300/k