• Mikael Pettersson's avatar
    [PATCH] arch/i386/kernel/smp.c gcc341 inlining fix · 581851ea
    Mikael Pettersson authored
    gcc-3.4.1 errors out in 2.6.8-rc1-mm1 at arch/i386/kernel/smp.c:
    
    arch/i386/kernel/smp.c: In function `flush_tlb_others':
    arch/i386/kernel/smp.c:161: sorry, unimplemented: inlining failed in call to 'send_IPI_mask_bitmask': function not considered for inlining
    arch/i386/kernel/smp.c:9: sorry, unimplemented: called from here
    make[1]: *** [arch/i386/kernel/smp.o] Error 1
    make: *** [arch/i386/kernel] Error 2
    
    The <mach_ipi.h> inlines depend on functions defined further down in smp.c.
     Moving the #include eliminates the problem.
    Signed-off-by: default avatarMikael Pettersson <mikpe@csd.uu.se>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    581851ea
smp.c 15.3 KB