[linux-next:master 4594/4626] drivers/base/firmware_loader/fallback_table.c:60:53: error: macro "EXPORT_SYMBOL_NS_GPL" requires 2 arguments, but only 1 given
From: kernel test robot <hidden>
Date: 2021-12-02 03:19:26
Also in:
oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 048aeae86c3967f4c40666cd26f2c1eb73a4b805 commit: 8419b29bbf5484acc46e4b1881787d55292b7a7d [4594/4626] firmware_loader-move-firmware-sysctl-to-its-own-files-fix-fix config: i386-randconfig-a014-20211128 (https://download.01.org/0day-ci/archive/20211202/202112021147.0YgA5BF8-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8419b29bbf5484acc46e4b1881787d55292b7a7d git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 8419b29bbf5484acc46e4b1881787d55292b7a7d # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> Note: the linux-next/master HEAD 048aeae86c3967f4c40666cd26f2c1eb73a4b805 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>):
quoted
drivers/base/firmware_loader/fallback_table.c:60:53: error: macro "EXPORT_SYMBOL_NS_GPL" requires 2 arguments, but only 1 given
60 | EXPORT_SYMBOL_NS_GPL(register_firmware_config_sysctl);
| ^
In file included from include/linux/linkage.h:7,
from include/linux/printk.h:8,
from include/asm-generic/bug.h:22,
from arch/x86/include/asm/bug.h:84,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/base/firmware_loader/fallback_table.c:6:
include/linux/export.h:166: note: macro "EXPORT_SYMBOL_NS_GPL" defined here
166 | #define EXPORT_SYMBOL_NS_GPL(sym, ns) __EXPORT_SYMBOL(sym, "_gpl", #ns)
|
drivers/base/firmware_loader/fallback_table.c:60:1: warning: data definition has no type or storage class
60 | EXPORT_SYMBOL_NS_GPL(register_firmware_config_sysctl);
| ^~~~~~~~~~~~~~~~~~~~quoted
drivers/base/firmware_loader/fallback_table.c:60:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_NS_GPL' [-Werror=implicit-int]
drivers/base/firmware_loader/fallback_table.c:67:55: error: macro "EXPORT_SYMBOL_NS_GPL" requires 2 arguments, but only 1 given
67 | EXPORT_SYMBOL_NS_GPL(unregister_firmware_config_sysctl);
| ^
In file included from include/linux/linkage.h:7,
from include/linux/printk.h:8,
from include/asm-generic/bug.h:22,
from arch/x86/include/asm/bug.h:84,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/base/firmware_loader/fallback_table.c:6:
include/linux/export.h:166: note: macro "EXPORT_SYMBOL_NS_GPL" defined here
166 | #define EXPORT_SYMBOL_NS_GPL(sym, ns) __EXPORT_SYMBOL(sym, "_gpl", #ns)
|
drivers/base/firmware_loader/fallback_table.c:67:1: warning: data definition has no type or storage class
67 | EXPORT_SYMBOL_NS_GPL(unregister_firmware_config_sysctl);
| ^~~~~~~~~~~~~~~~~~~~
drivers/base/firmware_loader/fallback_table.c:67:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_NS_GPL' [-Werror=implicit-int]
cc1: some warnings being treated as errors
vim +/EXPORT_SYMBOL_NS_GPL +60 drivers/base/firmware_loader/fallback_table.c
49
50 static struct ctl_table_header *firmware_config_sysct_table_header;
51 int register_firmware_config_sysctl(void)
52 {
53 firmware_config_sysct_table_header =
54 register_sysctl("kernel/firmware_config",
55 firmware_config_table);
56 if (!firmware_config_sysct_table_header)
57 return -ENOMEM;
58 return 0;
59 }
> 60 EXPORT_SYMBOL_NS_GPL(register_firmware_config_sysctl);
61
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org