Re: [PATCH] nodmask.h: remove macro any_online_node

2010-01-31 Thread Benjamin Herrenschmidt
On Wed, 2010-01-06 at 16:24 -0700, H Hartley Sweeten wrote: > nodmask.h: remove macro any_online_node > > The macro any_online_node is prone to producing sparse warnings > due to the local symbol 'node'. Since all the in-tree users are really > requesting the first online node (the mask argument i

Re: [PATCH] nodmask.h: remove macro any_online_node

2010-01-06 Thread KAMEZAWA Hiroyuki
On Wed, 6 Jan 2010 16:24:58 -0700 H Hartley Sweeten wrote: > nodmask.h: remove macro any_online_node > > The macro any_online_node is prone to producing sparse warnings > due to the local symbol 'node'. Since all the in-tree users are really > requesting the first online node (the mask argument

Re: [PATCH] nodmask.h: remove macro any_online_node

2010-01-06 Thread David Rientjes
On Wed, 6 Jan 2010, H Hartley Sweeten wrote: > nodmask.h: remove macro any_online_node > > The macro any_online_node is prone to producing sparse warnings > due to the local symbol 'node'. Since all the in-tree users are really > requesting the first online node (the mask argument is either > NOD

[PATCH] nodmask.h: remove macro any_online_node

2010-01-06 Thread H Hartley Sweeten
nodmask.h: remove macro any_online_node The macro any_online_node is prone to producing sparse warnings due to the local symbol 'node'. Since all the in-tree users are really requesting the first online node (the mask argument is either NODE_MASK_ALL or node_online_map) just use the first_online_n