]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add new alloc functions to alloc with multiplies check
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 26 Apr 2022 05:32:12 +0000 (00:32 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 26 Apr 2022 06:30:33 +0000 (01:30 -0500)
commit1ca30a532dc91173dad015f3c58ff1cc233f453e
tree7d23df4ddcdf7e00860edac6041665168d40c213
parentef8e7cd3bfb3e514a5772f2c5874cf0913238d68
checkpatch: add new alloc functions to alloc with multiplies check

kvmalloc() and kvzalloc() functions have now 2-factor multiplication
argument forms kvmalloc_array() and kvcalloc(), correspondingly.

Add alloc-with-multiplies checks for these new functions.

Link: https://github.com/KSPP/linux/issues/187
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
scripts/checkpatch.pl