• Don Zickus's avatar
    nmi_watchdog: Fix undefined 'apic' build bug · 2cc4452b
    Don Zickus authored
    Ingo provided me a config that fails to compile with:
    
      arch/x86/built-in.o: In function
      `arch_trigger_all_cpu_backtrace': (.text+0x17e78): undefined
      reference to `apic' make: *** [.tmp_vmlinux1] Error 1
    
    I realized I changed the compile behaviour of the nmi code by
    not wrapping it with CONFIG_LOCAL_APIC.  To fix this I add a
    compile check for ARCH_HAS_NMI_WATCHDOG around
    arch_trigger_all_cpu_backtrace.
    Signed-off-by: default avatarDon Zickus <dzickus@redhat.com>
    Cc: a.p.zijlstra@chello.nl
    Cc: gorcunov@gmail.com
    Cc: aris@redhat.com
    LKML-Reference: <1266548212-24243-1-git-send-email-dzickus@redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    2cc4452b
hw_nmi.c 3.18 KB