Re: [PATCH 03/25] lmb: Introduce for_each_lmb() and new accessors, and use it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]