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

Christoph Hellwig hch at infradead.org
Thu Apr 5 08:07:48 PDT 2018


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



More information about the linux-arm-kernel mailing list