public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* rfc: ARRAY_AND_SIZE
@ 2013-08-09  8:07 walter harms
  2013-08-09  8:15 ` Julia Lawall
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: walter harms @ 2013-08-09  8:07 UTC (permalink / raw)
  To: kernel-janitors

hi list,
while looking at Julias nice patch. i notice the ARRAY_AND_SIZE macro
it looks like that:

#define ARRAY_AND_SIZE(x)       (x), ARRAY_SIZE(x)

I see problem: hiding an argument in function calls is bad.
(personally i hate hiding arguments in function calls therefore i am not objective)

the next problem is that it is defined 6 times in different locations.
(see:http://lxr.free-electrons.com/ident?i=ARRAY_AND_SIZE)

But so far it is used in the ARM tree mostly.

Is there any policy on that ?

re,
 wh

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-08-09 12:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-09  8:07 rfc: ARRAY_AND_SIZE walter harms
2013-08-09  8:15 ` Julia Lawall
2013-08-09  9:10 ` Dan Carpenter
2013-08-09  9:23 ` Julia Lawall
2013-08-09  9:36 ` Dan Carpenter
2013-08-09 12:32 ` walter harms

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox