Hi Johan, On Fri, Nov 11, 2011 at 10:18 AM, <johan.hedberg@xxxxxxxxx> wrote: > +#ifndef NELEM > +#define NELEM(arr) (sizeof(arr) / sizeof((arr)[0])) > +#endif > + What about using ARRAY_SIZE() from kernel.h ? include/linux/kernel.h:#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) Regards, -- Anderson Lizardo Instituto Nokia de Tecnologia - INdT Manaus - Brazil -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html