2008-11-01 02:51:08

by Pete Clements

[permalink] [raw]
Subject: 2.6.28-rc2-git6 fails compile -- cpu/common.c

Fyi
2.6.28-rc2-git fails compile, uniprocessor x86. (Missed git4 and git5.)

CC arch/x86/kernel/cpu/common.o
arch/x86/kernel/cpu/common.c: In function 'cpu_init':
arch/x86/kernel/cpu/common.c:1141: error: 'boot_cpu_id' undeclared (first use in this function)
arch/x86/kernel/cpu/common.c:1141: error: (Each undeclared identifier is reported only once
arch/x86/kernel/cpu/common.c:1141: error: for each function it appears in.)
make[2]: *** [arch/x86/kernel/cpu/common.o] Error 1
make[1]: *** [arch/x86/kernel/cpu] Error 2
make: *** [arch/x86/kernel] Error 2

--
Pete Clements


2008-11-01 07:32:20

by Amos Kong

[permalink] [raw]
Subject: Re: 2.6.28-rc2-git6 fails compile -- cpu/common.c

On Fri, Oct 31, 2008 at 10:50:53PM -0400, Pete Clements wrote:
>Fyi
>2.6.28-rc2-git fails compile, uniprocessor x86. (Missed git4 and git5.)
>
> CC arch/x86/kernel/cpu/common.o
>arch/x86/kernel/cpu/common.c: In function 'cpu_init':
>arch/x86/kernel/cpu/common.c:1141: error: 'boot_cpu_id' undeclared (first use in this function)
>arch/x86/kernel/cpu/common.c:1141: error: (Each undeclared identifier is reported only once
>arch/x86/kernel/cpu/common.c:1141: error: for each function it appears in.)
>make[2]: *** [arch/x86/kernel/cpu/common.o] Error 1
>make[1]: *** [arch/x86/kernel/cpu] Error 2
>make: *** [arch/x86/kernel] Error 2

'boot_cpu_id' only defined at this head file(include/linux/smp_32.h)


Jianjun
--
Jianjun Kong | Happy Hacking
HomePage: http://kongove.cn
Gtalk: [email protected]
Hope is good thing, maybe the best of things, and no good thing ever dies.

2008-11-01 07:46:30

by Amos Kong

[permalink] [raw]
Subject: Re: 2.6.28-rc2-git6 fails compile -- cpu/common.c

On Sat, Nov 01, 2008 at 03:31:56PM +0800, Jianjun Kong wrote:
>On Fri, Oct 31, 2008 at 10:50:53PM -0400, Pete Clements wrote:
>>Fyi
>>2.6.28-rc2-git fails compile, uniprocessor x86. (Missed git4 and git5.)
>>
>> CC arch/x86/kernel/cpu/common.o
>>arch/x86/kernel/cpu/common.c: In function 'cpu_init':
>>arch/x86/kernel/cpu/common.c:1141: error: 'boot_cpu_id' undeclared (first use in this function)
>>arch/x86/kernel/cpu/common.c:1141: error: (Each undeclared identifier is reported only once
>>arch/x86/kernel/cpu/common.c:1141: error: for each function it appears in.)
>>make[2]: *** [arch/x86/kernel/cpu/common.o] Error 1
>>make[1]: *** [arch/x86/kernel/cpu] Error 2
>>make: *** [arch/x86/kernel] Error 2
>
>'boot_cpu_id' only defined at this head file(include/linux/smp_32.h)
>

See http://lkml.org/lkml/2008/10/30/531

Jianjun
--
Jianjun Kong | Happy Hacking
HomePage: http://kongove.cn
Gtalk: [email protected]
Hope is good thing, maybe the best of things, and no good thing ever dies.