Thread (26 messages) 26 messages, 3 authors, 2021-11-19

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

+		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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help