]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: improve k.alloc with multiplication and sizeof test
authorJoe Perches <joe@perches.com>
Mon, 8 May 2017 22:55:57 +0000 (15:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 May 2017 00:15:11 +0000 (17:15 -0700)
commit52eec29f8d229c868ea5a752143f3dd686d755c7
tree626671fa831a57cbf9f55653eba2284fe5343c45
parentae1843a4d98d4266f905e41c5de7a483c339eec3
checkpatch: improve k.alloc with multiplication and sizeof test

Find multi-line uses of k.alloc by using the $stat variable and not the
$line variable.  This can still --fix only the single line variant
though.

Link: http://lkml.kernel.org/r/3f4b23d37cd4c7d8628eefc25afe83ba8fb3ab55.1493167076.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl