Re: [PATCH 2/3] Bluetooth: Create a unique mgmt error code hierarchy From: Anderson Lizardo <hidden> Date: 2011-11-11 14:37:53 Hi Johan, On Fri, Nov 11, 2011 at 10:18 AM, [off-list ref] 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
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help