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

From: Christoph Hellwig
Date: Thu Apr 05 2018 - 11:07:57 EST


> 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.