mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yasunori Goto <y-goto@jp.fujitsu.com>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Subject: Re: [BUG[[PATCH] register_one_node compile fix.
Date: Fri, 25 Aug 2006 11:52:20 +0900	[thread overview]
Message-ID: <20060825115024.076F.Y-GOTO@jp.fujitsu.com> (raw)
In-Reply-To: <20060825105755.55b15220.kamezawa.hiroyu@jp.fujitsu.com>

Looks good.
Thanks.

Acked-by: Yasunori Goto <y-goto@jp.fujitsu.com>

> register_one_node()'s should be defined under CONFIG_NUMA=n.
> fixes following bug.
> --
>   CC	  init/version.o
>   LD	  init/built-in.o
>   LD	  .tmp_vmlinux1
> mm/built-in.o: In function `add_memory':
> : undefined reference to `register_one_node'
> --
> 
> Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> 
> Index: linux-2.6.18-rc4/include/linux/node.h
> ===================================================================
> --- linux-2.6.18-rc4.orig/include/linux/node.h
> +++ linux-2.6.18-rc4/include/linux/node.h
> @@ -30,12 +30,20 @@ extern struct node node_devices[];
>  
>  extern int register_node(struct node *, int, struct node *);
>  extern void unregister_node(struct node *node);
> +#ifdef CONFIG_NUMA
>  extern int register_one_node(int nid);
>  extern void unregister_one_node(int nid);
> -#ifdef CONFIG_NUMA
>  extern int register_cpu_under_node(unsigned int cpu, unsigned int nid);
>  extern int unregister_cpu_under_node(unsigned int cpu, unsigned int nid);
>  #else
> +static inline int register_one_node(int nid)
> +{
> +	return 0;
> +}
> +static inline int unregister_one_node(int nid)
> +{
> +	return 0;
> +}
>  static inline int register_cpu_under_node(unsigned int cpu, unsigned int nid)
>  {
>  	return 0;
> 
> -
> 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/

-- 
Yasunori Goto 



      reply	other threads:[~2006-08-25  2:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-25  1:57 KAMEZAWA Hiroyuki
2006-08-25  2:52 ` Yasunori Goto [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=20060825115024.076F.Y-GOTO@jp.fujitsu.com \
    --to=y-goto@jp.fujitsu.com \
    --cc=akpm@osdl.org \
    --cc=kamezawa.hiroyu@jp.fujitsu.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®