Quantcast
Channel: lkml.org : Ganesh Sittampalam
Viewing all articles
Browse latest Browse all 627

Re: [PATCH v3 00/16] Provide saturating helpers for allocation

$
0
0
Linus Torvalds writes: (Summary) Why can't you just have a separate set of coccinelle scripts that do the simple and clean cases?
the simple and clean cases?
So *before* doing any array_size() conversions, just do So *before* doing any array_size() conversions, just do kzalloc(a*b, ...) -> kcalloc(a, b, ...)
kmalloc(a*b,..) -> Only after doing the ones that don't have the nice obvious helpers, do the remaining ones with array_size(), ie
the remaining ones with array_size(), ie
*alloc(a*b, ..) ->

Viewing all articles
Browse latest Browse all 627

Trending Articles