On Mon, Aug 03, 2026 at 12:00:01PM +0300, Mike Rapoport wrote:

> > +#ifndef ARRAY_SIZE
> > +#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
> > +#endif

> We already have ~20 of those in tools, so one more won't hurt :)

> But really definition of ARRAY_SIZE() belogs to a header, maybe
> something to cleanup later.

tools/include/linux/kernel.h.

Attachment: signature.asc
Description: PGP signature

Reply via email to