Re: [PATCH] net: thunderx: rework mac addresses list to u64 array

Christoph Hellwig
2018-04-05T15:07:54Z

> struct xcast_addr_list {
> - struct list_head list;
> int count;
> + u64 mc[0];

Please use the standard C99 syntax here:

u64 mc[];

> + mc_list = kmalloc(sizeof(*mc_list) +
> + sizeof(u64) * netdev_mc_count(netdev),
> + GFP_ATOMIC);

kmalloc_array(), please.