lkml.org 
[lkml]   [2006]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: 2.6.18-rc6-mm1
    On Fri, Sep 08, 2006 at 01:13:17AM -0700, Andrew Morton wrote:
    >
    > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.18-rc6/2.6.18-rc6-mm1/
    >
    Hi,

    2.6.18-rc6-mm1 fails to build on x86 with !CONFIG_SMP with the following
    message:
    CHK include/linux/version.h
    CHK include/linux/utsrelease.h
    CHK include/linux/compile.h
    UPD include/linux/compile.h
    CC init/version.o
    LD init/built-in.o
    CC arch/i386/kernel/cpu/common.o
    arch/i386/kernel/cpu/common.c: In function `init_gdt':
    arch/i386/kernel/cpu/common.c:667: warning: implicit declaration of function `early_smp_processor_id'
    LD arch/i386/kernel/cpu/built-in.o
    LD arch/i386/kernel/built-in.o
    GEN .version
    CHK include/linux/compile.h
    UPD include/linux/compile.h
    CC init/version.o
    LD init/built-in.o
    LD .tmp_vmlinux1
    arch/i386/kernel/built-in.o: In function `init_gdt':
    arch/i386/kernel/cpu/common.c:667: undefined reference to `early_smp_processor_id'
    arch/i386/kernel/built-in.o: In function `cpu_init':
    arch/i386/kernel/cpu/common.c:737: undefined reference to `early_smp_processor_id'
    make: *** [.tmp_vmlinux1] Error 1

    We need to include <asm/smp.h> to define early_smp_processor_id().

    Regards,
    Frederik


    Signed-off-by: Frederik Deweerdt <frederik.deweerdt@gmail.com>

    --- arch/i386/kernel/cpu/common.c~ 2006-09-08 11:57:09.000000000 +0200
    +++ arch/i386/kernel/cpu/common.c 2006-09-08 11:57:24.000000000 +0200
    @@ -13,6 +13,7 @@
    #include <asm/mmu_context.h>
    #include <asm/mtrr.h>
    #include <asm/mce.h>
    +#include <asm/smp.h>
    #ifdef CONFIG_X86_LOCAL_APIC
    #include <asm/mpspec.h>
    #include <asm/apic.h>
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2006-09-08 12:15    [W:0.021 / U:122.636 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site