False positive EXPORT_SYMBOL warning with NS variants

From: Ian Pilcher
Date: Fri Sep 03 2021 - 12:01:28 EST


$ 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!
========================================================================