From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail191.messagelabs.com (mail191.messagelabs.com [216.82.242.19]) by kanga.kvack.org (Postfix) with ESMTP id 1AC736B0242 for ; Mon, 10 May 2010 17:53:42 -0400 (EDT) Subject: Re: [PATCH 03/25] lmb: Introduce for_each_lmb() and new accessors, and use it From: Benjamin Herrenschmidt In-Reply-To: References: <1273484339-28911-1-git-send-email-benh@kernel.crashing.org> <1273484339-28911-2-git-send-email-benh@kernel.crashing.org> <1273484339-28911-3-git-send-email-benh@kernel.crashing.org> <1273484339-28911-4-git-send-email-benh@kernel.crashing.org> Content-Type: text/plain; charset="UTF-8" Date: Tue, 11 May 2010 07:52:52 +1000 Message-ID: <1273528372.23699.108.camel@pasglop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Thomas Gleixner Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, tglx@linuxtronix.de, mingo@elte.hu, davem@davemloft.net, lethal@linux-sh.org List-ID: On Mon, 2010-05-10 at 17:39 +0200, Thomas Gleixner wrote: > Can you please make this: > > #define for_each_lmb(lmb_type, region, __iter) \ > for (__iter = lmb.lmb_type.regions; \ > region < (lmb.lmb_type.regions + lmb.lmb_type.cnt); \ > region++) > > so we do not have the iterator name hardcoded inside the macro body. Oops, you are right, that's a thinko. I'll fix that. Cheers, Ben. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org