[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.1005101735560.3401@localhost.localdomain>
Date: Mon, 10 May 2010 17:39:48 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Benjamin Herrenschmidt <benh@...nel.crashing.org>
cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
tglx@...uxtronix.de, mingo@...e.hu, davem@...emloft.net,
lethal@...ux-sh.org
Subject: Re: [PATCH 03/25] lmb: Introduce for_each_lmb() and new accessors,
and use it
On Mon, 10 May 2010, Benjamin Herrenschmidt wrote:
>
> +#define for_each_lmb(lmb_type, region) \
> + for (reg = lmb.lmb_type.regions; \
> + region < (lmb.lmb_type.regions + lmb.lmb_type.cnt); \
> + region++)
> +
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.
Thanks,
tglx
--
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