From: Randy Dunlap <rdunlap@xenotime.net>
To: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] numa x86_64 use generic percpu var numa_node_id implementation fix3 [was Re: mmotm 2010-05-14-13-33 uploaded]
Date: Mon, 17 May 2010 20:41:40 -0700 [thread overview]
Message-ID: <20100517204140.b396ea83.rdunlap@xenotime.net> (raw)
In-Reply-To: <1274147210.24007.146.camel@useless.americas.hpqcorp.net>
On Mon, 17 May 2010 21:46:50 -0400 Lee Schermerhorn wrote:
> On Sun, 2010-05-16 at 16:37 -0700, Randy Dunlap wrote:
> > include/linux/topology.h:248: error: implicit declaration of function 'cpu_to_node'
> >
> >
> > config attached.
>
> Hmmm, i386 NUMA.
>
> With the following patch, your config builds correctly. !NUMA i386
> still builds, as well.
Yes, thanks.
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
> Lee
>
> Fix i386 numa build: define cpu_to_node() stub same as
> early_cpu_to_node() for i386 numa builds. Just return node
> from cpu_to_node_map[].
>
> Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
>
> arch/x86/include/asm/topology.h | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletion(-)
>
> Index: linux-2.6.34-rc7-mmotm-100514-1333/arch/x86/include/asm/topology.h
> ===================================================================
> --- linux-2.6.34-rc7-mmotm-100514-1333.orig/arch/x86/include/asm/topology.h 2010-05-17 08:40:47.000000000 -0400
> +++ linux-2.6.34-rc7-mmotm-100514-1333/arch/x86/include/asm/topology.h 2010-05-17 10:49:08.000000000 -0400
> @@ -53,10 +53,12 @@
> extern int cpu_to_node_map[];
>
> /* Returns the number of the node containing CPU 'cpu' */
> -static inline int early_cpu_to_node(int cpu)
> +static inline int __cpu_to_node(int cpu)
> {
> return cpu_to_node_map[cpu];
> }
> +#define early_cpu_to_node __cpu_to_node
> +#define cpu_to_node __cpu_to_node
>
> #else /* CONFIG_X86_64 */
>
>
>
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
prev parent reply other threads:[~2010-05-18 3:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-14 20:33 mmotm 2010-05-14-13-33 uploaded akpm
2010-05-15 7:47 ` Jiri Slaby
2010-05-16 23:37 ` Randy Dunlap
2010-05-18 1:46 ` [PATCH] numa x86_64 use generic percpu var numa_node_id implementation fix3 [was Re: mmotm 2010-05-14-13-33 uploaded] Lee Schermerhorn
2010-05-18 3:41 ` Randy Dunlap [this message]
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=20100517204140.b396ea83.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=Lee.Schermerhorn@hp.com \
--cc=akpm@linux-foundation.org \
--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®