error: implicit declaration of function 'cpu_die'

3 messages, 2 authors, 2005-10-10 · open the first message on its own page

error: implicit declaration of function 'cpu_die'

From: Olaf Hering <hidden>
Date: 2005-10-10 16:33:52

How can I fix this properly?
arch/ppc/kernel/idle.c includes linux/smp.h, which includes asm-smp.h
only if CONFIG_SMP is defined.
As a result, cpu_die remains undefined for non-SMP builds.

The include order was changed recently, as this kernel .config built ok with 2.6.13.
I see cpu_die was introduced recently in include/asm-ppc/smp.h, in 2.6.14-rc1.


  CC      arch/ppc/kernel/idle.o
arch/ppc/kernel/idle.c: In function 'default_idle':
arch/ppc/kernel/idle.c:58: error: implicit declaration of function 'cpu_die'
make[1]: *** [arch/ppc/kernel/idle.o] Error 1


-- 
short story of a lazy sysadmin:
 alias appserv=wotan

Re: error: implicit declaration of function 'cpu_die'

From: Simon Richter <hidden>
Date: 2005-10-10 16:49:37

Hi,
arch/ppc/kernel/idle.c includes linux/smp.h, which includes asm-smp.h
only if CONFIG_SMP is defined.
As a result, cpu_die remains undefined for non-SMP builds.
I have used the attached patch for my tree[1], but this needs to be 
cross-checked with the other architectures.

    Simon

[1] where I merge the APUS stuff by Roman Zippel -- 
http://www.psi5.com/~geier/linux-2.6-apus.git

Re: error: implicit declaration of function 'cpu_die'

From: Olaf Hering <hidden>
Date: 2005-10-10 19:40:31

 On Mon, Oct 10, Simon Richter wrote:
Hi,
quoted
arch/ppc/kernel/idle.c includes linux/smp.h, which includes asm-smp.h
only if CONFIG_SMP is defined.
As a result, cpu_die remains undefined for non-SMP builds.
I have used the attached patch for my tree[1], but this needs to be 
cross-checked with the other architectures.
Looks good, should go into 2.6.14.



-- 
short story of a lazy sysadmin:
 alias appserv=wotan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help