]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: improve EXPORT_SYMBOL test for EXPORT_SYMBOL_NS uses
authorJoe Perches <joe@perches.com>
Tue, 9 Nov 2021 02:33:31 +0000 (18:33 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Nov 2021 18:02:50 +0000 (10:02 -0800)
commit721e3b5cefc6b54aaf9bd73c72af7e8944fd077c
treedf4c3ac67bbc130ff933873c41af8e790e65a9ad
parent4500ee5b3440b8b9e2660c5065e5ec27168eca92
checkpatch: improve EXPORT_SYMBOL test for EXPORT_SYMBOL_NS uses

The EXPORT_SYMBOL test expects a single argument but definitions of
EXPORT_SYMBOL_NS have multiple arguments.

Update the test to extract only the first argument from any
EXPORT_SYMBOL related definition.

Link: https://lkml.kernel.org/r/9e8f251b42e405f460f26a23ba9b33ef45a94adc.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Reported-by: Ian Pilcher <arequipeno@gmail.com>
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl