From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 44D1BB7D69 for ; Mon, 1 Feb 2010 13:09:57 +1100 (EST) Subject: Re: [PATCH] nodmask.h: remove macro any_online_node From: Benjamin Herrenschmidt To: H Hartley Sweeten In-Reply-To: <201001061624.59118.hartleys@visionengravers.com> References: <201001061624.59118.hartleys@visionengravers.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 01 Feb 2010 13:05:58 +1100 Message-ID: <1264989958.8287.13.camel@pasglop> Mime-Version: 1.0 Cc: neilb@suse.de, Trond.Myklebust@netapp.com, bfields@fieldses.org, linuxppc-dev@ozlabs.org, paulus@samba.org, Ricardo.Labiaga@netapp.com, rientjes@google.com, mel@csn.ul.ie, devicetree-discuss@lists.ozlabs.org, akpm@linux-foundation.org, kamezawa.hiroyu@jp.fujitsu.com, lee.schermerhorn@hp.com, linux-nfs@vger.kernel.org, netdev@vger.kernel.org, Linux Kernel , miltonm@bga.com, dave@linux.vnet.ibm.com, chuck.lever@oracle.com, bhalevy@panasas.com, davem@davemloft.net List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 is either > NODE_MASK_ALL or node_online_map) just use the first_online_node > macro and remove the any_online_node macro since there are no users. > > Signed-off-by: H Hartley Sweeten > Cc: Andrew Morton > Cc: David Rientjes > Cc: KAMEZAWA Hiroyuki > Cc: Mel Gorman > Cc: Lee Schermerhorn Acked-by: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Dave Hansen > Cc: Milton Miller > Cc: Nathan Fontenot > Cc: Geoff Levand > Cc: Grant Likely > Cc: J. Bruce Fields > Cc: Neil Brown > Cc: Trond Myklebust > Cc: David S. Miller > Cc: Benny Halevy > Cc: Chuck Lever > Cc: Ricardo Labiaga Cheers, Ben.