[PATCH] missing export of cpu_2_node
From: Patrick Mansfield (patmans_at_us.ibm.com)
Date: 01/30/04
- Previous message: Andrew Morton: "Re: Redundant uses of might_sleep_if()"
- Next in thread: Andrew Morton: "Re: [PATCH] missing export of cpu_2_node"
- Reply: Andrew Morton: "Re: [PATCH] missing export of cpu_2_node"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Previous message: Andrew Morton: "Re: Redundant uses of might_sleep_if()"
- Next in thread: Andrew Morton: "Re: [PATCH] missing export of cpu_2_node"
- Reply: Andrew Morton: "Re: [PATCH] missing export of cpu_2_node"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: sched_yield behavior
... >> CPU, to give to other tasks a chance to run. ... >> higher
priority task, and the only of its priority list). ... > the exact nature of the real
time constraint? ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: [patch] Real-Time Preemption, -RT-2.6.10-rc1-mm2-V0.7.1
... >X should be scheduled on the other CPU just fine. ... Only per-CPU kernel
... those should schedule fine too. ... send the line "unsubscribe linux-kernel"
in ... (Linux-Kernel) - Re: [PATCH] implement nice support across physical cpus on SMP
... PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND ... send the line "unsubscribe
linux-kernel" in ... (Linux-Kernel) - Re: OOPS: Something about kswapd
... > CPU: AMD Athlon XP ... > OOPS during ROCK linux compilation,
... > entry unable to handle kernel NULL pointer dereference at virtual ... send
the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: non-free firmware in kernel modules, aggregation and unclear copyright notice.
... Since the main cpu does not actually run the binary firmware, ... ie.
system memory). ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel)