[PATCH][2.6.7-mm4] perfctr update 1/6: fix linkage error

From: Mikael Pettersson (mikpe_at_csd.uu.se)
Date: 06/30/04

  • Next message: Mikael Pettersson: "[PATCH][2.6.7-mm4] perfctr update 2/6: Kconfig-related updates"
    Date:	Wed, 30 Jun 2004 14:19:11 +0200 (MEST)
    To: akpm@osdl.org
    
    

    - fix linkage error caused by drivers/perfctr/x86_tests.c
      using apic_write() even when !CONFIG_X86_LOCAL_APIC

    Signed-off-by: Mikael Pettersson <mikpe@csd.uu.se>

    --- linux-2.6.7-mm4/drivers/perfctr/x86_tests.c.~1~ 2004-06-29 12:43:27.000000000 +0200
    +++ linux-2.6.7-mm4/drivers/perfctr/x86_tests.c 2004-06-29 13:26:26.000000000 +0200
    @@ -44,6 +44,11 @@
     #define CR4MOV "movl"
     #endif
     
    +#ifndef PERFCTR_INTERRUPT_SUPPORT
    +#undef apic_write
    +#define apic_write(reg,vector) do{}while(0)
    +#endif
    +
     static void __init do_rdpmc(unsigned pmc, unsigned unused2)
     {
             unsigned i;
    -
    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/


  • Next message: Mikael Pettersson: "[PATCH][2.6.7-mm4] perfctr update 2/6: Kconfig-related updates"

    Relevant Pages

    • [PATCH] shrink inode when quota is disabled
      ... drop quota array in inode struct if no quota support ... +#ifdef CONFIG_QUOTA ... 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/ ...
      (Linux-Kernel)
    • Re: 2.6.7-mm4 compile buglet
      ... static void __init do_rdpmc(unsigned pmc, unsigned unused2) ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [-mm patch] arch/i386/kernel/traps.c: fix SYSFS=n compile
      ... : undefined reference to `last_sysfs_file' ... +#ifdef CONFIG_SYSFS ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Entry points for execution
      ... #ifdef CONFIG_LINUX_JAIL ... Powered by Linare Corporation ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.1-mm1: sound/pci/cmipci.c compile error
      ... > I got the following compile error when trying to compile ... #ifdef SUPPORT_JOYSTICK ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)