lkml.org 
[lkml]   [2018]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] net: thunderx: rework mac addresses list to u64 array
>  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.

\
 
 \ /
  Last update: 2018-04-05 17:08    [W:0.434 / U:0.964 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site