• Oleg Nesterov's avatar
    [PATCH] fix conflicting cpu_idle() declarations · 2612d7a4
    Oleg Nesterov authored
    cpu_idle() is referenced from generic code (init/main.c).  It is
    declared/defined in
    
    init/main.c:				void cpu_idle(void)
    
    i386/kernel/process.c			void cpu_idle(void)
    i386/kernel/smpboot.c:			int  cpu_idle(void)
    i386/mach-voyager/voyager_smp.c:	int  cpu_idle(void)
    
    ppc/kernel/idle.c:			int  cpu_idle(void)
    ppc/kernel/smp.c:			int  cpu_idle(void *unused)
    
    ppc64/kernel/idle.c:			int  cpu_idle(void)
    ppc64/kernel/smp.c:			int  cpu_idle(void *unused)
    
    sparc/kernel/process.c:			int  cpu_idle(void)
    
    sparc64/kernel/process.c:		int  cpu_idle(void)
    
    sh/kernel/process.c:			void cpu_idle(void *unused)
    sh/kernel/smp.c:			int  cpu_idle(void *unused)
    
    ia64/kernel/smpboot.c:			int  cpu_idle(void)
    ia64/kernel/process.c:			void cpu_idle(void *unused)
    
    sh64/kernel/process.c:			void cpu_idle(void *unused)
    
    s390/kernel/process.c:			int  cpu_idle(void)
    s390/kernel/smp.c:			int  cpu_idle(void * unused)
    
    m32r/kernel/process.c:			void cpu_idle(void)
    m32r/kernel/smpboot.c			int  cpu_idle(void)
    
    Other arches beleive that cpu_idle is void(void).
    
    This patch puts 'void cpu_idle(void)' in include/linux/smp.h
    and fixes conflicting definitions.
    
    Also removes now unneeded declarations in x86_64, alpha, parisc.
    
    Only i386 part is tested.
    Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    2612d7a4
process.c 11.1 KB