lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20091102135935.d7bffe05.randy.dunlap@oracle.com>
Date:	Mon, 2 Nov 2009 13:59:35 -0800
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	Lee Schermerhorn <Lee.Schermerhorn@...com>
Cc:	akpm <akpm@...ux-foundation.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] hugetlb: offload per node attribute registrations fix

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@...cle.com>
> Signed-off-by: Lee Schermerhorn <lee.schermerhorn@...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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ