[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130813003407.GA1390@venom>
Date: Tue, 13 Aug 2013 02:34:07 +0200
From: Tomas Cech <sleep_walker@...e.cz>
To: Julia Lawall <Julia.Lawall@...6.fr>
Cc: Tomas Cech <sleep_walker@...e.cz>, kernel-janitors@...r.kernel.org,
Eric Miao <eric.y.miao@...il.com>,
Russell King <linux@....linux.org.uk>,
Haojian Zhuang <haojian.zhuang@...il.com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 11/16] arch/arm/mach-pxa/palmtreo.c: Avoid using
ARRAY_AND_SIZE(e) as a function argument
On Sun, Aug 11, 2013 at 06:51:52PM +0200, Julia Lawall wrote:
>From: Julia Lawall <Julia.Lawall@...6.fr>
>
>Replace ARRAY_AND_SIZE(e) in function argument position to avoid hiding the
>arity of the called function.
>
>The semantic match that makes this change is as follows:
>(http://coccinelle.lip6.fr/)
>
>// <smpl>
>@@
>expression e,f;
>@@
>
>f(...,
>- ARRAY_AND_SIZE(e)
>+ e,ARRAY_SIZE(e)
> ,...)
>// </smpl>
>
>Signed-off-by: Julia Lawall <Julia.Lawall@...6.fr>
I used to be happy with this macro as it improves readability.
but ack.
Tomas Cech
Download attachment "signature.asc" of type "application/pgp-signature" (199 bytes)
Powered by blists - more mailing lists