diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-01-16 10:18:48 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2014-01-16 10:23:02 +1030 |
commit | 7b4ec8dd7d4ac467e9eee4d49f2c9574d773efbb (patch) | |
tree | e23b69d94fe0cc82a67c6b281ca4d0d2c4d4855e /include | |
parent | 74e22fac8858f83af9b589f1dcb004ccf4991003 (diff) | |
download | linux-7b4ec8dd7d4ac467e9eee4d49f2c9574d773efbb.tar.gz linux-7b4ec8dd7d4ac467e9eee4d49f2c9574d773efbb.tar.bz2 linux-7b4ec8dd7d4ac467e9eee4d49f2c9574d773efbb.zip |
export: declare ksymtab symbols
sparse complains about any __ksymtab symbols with the following:
warning: symbol '__ksymtab_...' was not declared. Should it be static?
due to Andi's patch making it non-static.
Mollify sparse by declaring the symbol extern, otherwise we get
drowned in sparse warnings for anything that uses EXPORT_SYMBOL
in the sources, making it easy to miss real warnings.
Fixes: e0f244c63fc9 ("asmlinkage, module: Make ksymtab [...] __visible")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/export.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/export.h b/include/linux/export.h index 3f2793d51899..96e45ea463e7 100644 --- a/include/linux/export.h +++ b/include/linux/export.h @@ -59,6 +59,7 @@ extern struct module __this_module; static const char __kstrtab_##sym[] \ __attribute__((section("__ksymtab_strings"), aligned(1))) \ = VMLINUX_SYMBOL_STR(sym); \ + extern const struct kernel_symbol __ksymtab_##sym; \ __visible const struct kernel_symbol __ksymtab_##sym \ __used \ __attribute__((section("___ksymtab" sec "+" #sym), unused)) \ |