lkml.org 
[lkml]   [2010]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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



\
 
 \ /
  Last update: 2010-05-10 17:43    [W:1.618 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site