From: Patrick Mansfield <patmans@us.ibm.com>
To: Andrew Morton <akpm@digeo.com>,
Matthew Dobson <colpatch@us.ibm.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH] missing export of cpu_2_node
Date: Fri, 30 Jan 2004 12:20:36 -0800 [thread overview]
Message-ID: <20040130122036.A12659@beaverton.ibm.com> (raw)
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)
next reply other threads:[~2004-01-30 20:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-30 20:20 Patrick Mansfield [this message]
2004-01-30 20:37 ` Andrew Morton
2004-01-30 21:04 ` Patrick Mansfield
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040130122036.A12659@beaverton.ibm.com \
--to=patmans@us.ibm.com \
--cc=akpm@digeo.com \
--cc=colpatch@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®