mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Cc: akpm <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] hugetlb: offload per node attribute registrations fix
Date: Mon, 2 Nov 2009 13:59:35 -0800	[thread overview]
Message-ID: <20091102135935.d7bffe05.randy.dunlap@oracle.com> (raw)
In-Reply-To: <1257198615.7401.212.camel@useless.americas.hpqcorp.net>

On Mon, 02 Nov 2009 16:50:15 -0500 Lee Schermerhorn wrote:

> 
> Against:  2.6.32-rc5-mmotm-091101-1001
> 
> Fix build failure when MEMORY_HOTPLUG_SPARSE and !HUGETLBFS:
> 
> drivers/base/node.c:484: error: implicit declaration of function 'init_node_hugetlb_work'
> drivers/base/node.c:582: error: 'node_memory_callback' undeclared (first use in this function)
> 
> Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
> Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>

Ack.  That works_for_me.  Thanks.


>  drivers/base/node.c |    6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> Index: linux-2.6.32-rc5-mmotm-091101-1001/drivers/base/node.c
> ===================================================================
> --- linux-2.6.32-rc5-mmotm-091101-1001.orig/drivers/base/node.c	2009-11-02 15:51:43.000000000 -0500
> +++ linux-2.6.32-rc5-mmotm-091101-1001/drivers/base/node.c	2009-11-02 16:41:36.000000000 -0500
> @@ -445,8 +445,12 @@ static int node_memory_callback(struct n
>  }
>  #endif	/* CONFIG_HUGETLBFS */
>  #else	/* !CONFIG_MEMORY_HOTPLUG_SPARSE */
> +
>  static int link_mem_sections(int nid) { return 0; }
> +#endif	/* CONFIG_MEMORY_HOTPLUG_SPARSE */
>  
> +#if !defined(CONFIG_MEMORY_HOTPLUG_SPARSE) || \
> +    !defined(CONFIG_HUGETLBFS)
>  static inline int node_memory_callback(struct notifier_block *self,
>  				unsigned long action, void *arg)
>  {
> @@ -455,7 +459,7 @@ static inline int node_memory_callback(s
>  
>  static void init_node_hugetlb_work(int nid) { }
>  
> -#endif /* CONFIG_MEMORY_HOTPLUG_SPARSE */
> +#endif
>  
>  int register_one_node(int nid)
>  {
> 
> 


---
~Randy

  reply	other threads:[~2009-11-02 22:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-01 18:07 mmotm 2009-11-01-10-01 uploaded akpm
2009-11-01 21:47 ` vga_arb warning [was: mmotm 2009-11-01-10-01 uploaded] Jiri Slaby
2009-11-04  5:48   ` Andrew Morton
2009-11-02  3:48 ` mmotm 2009-11-01-10-01 uploaded (hugetlbfs) Randy Dunlap
2009-11-02 21:50   ` [PATCH] hugetlb: offload per node attribute registrations fix Lee Schermerhorn
2009-11-02 21:59     ` Randy Dunlap [this message]
2009-11-02 23:11 ` kdump fails to load and crashes [was: mmotm 2009-11-01-10-01 uploaded] Jiri Slaby
2009-11-03 14:44   ` Vivek Goyal
2009-11-03 15:14     ` Jiri Slaby
2009-11-03 15:24       ` Vivek Goyal
2009-11-03 15:46         ` Jiri Slaby
2009-11-05 19:13 ` mmotm 2009-11-01-10-01 uploaded Thomas Gleixner
2009-11-06 11:38   ` Balbir Singh
2009-11-06 12:39     ` Emmanuel Benisty
2009-11-06 18:48       ` Randy Dunlap
2009-11-08 13:46         ` Jiri Slaby
2009-11-08 17:41           ` Randy Dunlap
2009-11-12  8:08   ` KOSAKI Motohiro

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=20091102135935.d7bffe05.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --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®