[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1384768638.17916.2.camel@jlt4.sipsolutions.net>
Date: Mon, 18 Nov 2013 10:57:18 +0100
From: Johannes Berg <johannes@...solutions.net>
To: David Laight <David.Laight@...LAB.COM>
Cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH] genetlink: unify registration functions
On Mon, 2013-11-18 at 09:54 +0000, David Laight wrote:
> Or does ARRAY_SIZE(x) already contain a check that
> sizeof(x) % sizeof(*(x)) is zero?
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
__must_be_array() only works for gcc apparently, but that should be good
enough?
johannes
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists