Messages in this thread | | | From | Ian Pilcher <> | Subject | False positive EXPORT_SYMBOL warning with NS variants | Date | Fri, 3 Sep 2021 11:01:23 -0500 |
| |
$ cat foo.c // SPDX-License-Identifier: GPL-2.0-only void (*foo)(void); EXPORT_SYMBOL_NS(foo, FOO);
$ scripts/checkpatch.pl -f foo.c WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable #3: FILE: foo.c:3: +EXPORT_SYMBOL_NS(foo, FOO);
The non-NS EXPORT_SYMBOL variants don't trigger this warning.
-- ======================================================================== In Soviet Russia, Google searches you! ========================================================================
| |