Re: [PATCH v5 6/8] device-dax: use struct_size()
From: Christoph Hellwig <hch@lst.de>
Date: 2021-11-17 09:37:48
Also in:
linux-mm, nvdimm
From: Christoph Hellwig <hch@lst.de>
Date: 2021-11-17 09:37:48
Also in:
linux-mm, nvdimm
+ pgmap = devm_kzalloc( + dev, struct_size(pgmap, ranges, dev_dax->nr_range - 1), + GFP_KERNEL);
Keeping the dev argument on the previous line would not only make this much more readable but also avoid the overly long line.