[PATCH] missing export of cpu_2_node

From: Patrick Mansfield (patmans_at_us.ibm.com)
Date: 01/30/04

  • Next message: Miquel van Smoorenburg: "Re: 2.6.2-rc2 nfsd+xfs spins in i_size_read()"
    Date:	Fri, 30 Jan 2004 12:20:36 -0800
    To: Andrew Morton <akpm@digeo.com>, Matthew Dobson <colpatch@us.ibm.com>, linux-kernel@vger.kernel.org
    
    

    Hi -

    While compiling on a NUMAQ with st as a module, cpu_2_node comes up as
    undefined:

    WARNING: /lib/modules/2.6.2-rc2/kernel/drivers/scsi/st.ko needs unknown symbol cpu_2_node

    This patch exports cpu_2_node.

    ===== arch/i386/kernel/smpboot.c 1.67 vs edited =====
    --- 1.67/arch/i386/kernel/smpboot.c Sun Oct 5 01:07:44 2003
    +++ edited/arch/i386/kernel/smpboot.c Fri Jan 30 10:16:05 2004
    @@ -33,6 +33,7 @@
      * Dave Jones : Report invalid combinations of Athlon CPUs.
     * Rusty Russell : Hacked into shape for new "hotplug" boot process. */
     
    +#include <linux/module.h>
     #include <linux/config.h>
     #include <linux/init.h>
     #include <linux/kernel.h>
    @@ -503,6 +504,7 @@
                                     { [0 ... MAX_NUMNODES-1] = CPU_MASK_NONE };
     /* which node each logical CPU is on */
     int cpu_2_node[NR_CPUS] = { [0 ... NR_CPUS-1] = 0 };
    +EXPORT_SYMBOL(cpu_2_node);
     
     /* set up a mapping between cpu and node. */
     static inline void map_cpu_to_node(int cpu, int node)
    -
    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: Miquel van Smoorenburg: "Re: 2.6.2-rc2 nfsd+xfs spins in i_size_read()"

    Relevant Pages