lkml.org 
[lkml]   [2018]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 2/8] mm: Add kvmalloc_ab_c and kvzalloc_struct
From
Date
On Wed, 2018-02-14 at 13:24 -0800, Joe Perches wrote:
> Look at your patch 4
>
> - dev_dax = kzalloc(sizeof(*dev_dax) + sizeof(*res) * count, GFP_KERNEL);
> + dev_dax = kvzalloc_struct(dev_dax, res, count, GFP_KERNEL);
>
> Here what is being allocated is exactly a struct
> and an array.
>
> And this doesn't compile either.

apologies, my mistake.

\
 
 \ /
  Last update: 2018-02-14 22:28    [W:0.137 / U:0.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site