Hi Jiri,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
url:
https://github.com/0day-ci/linux/commits/Jiri-Pirko/introduce-line-card-s...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
f50e2f9f791647aa4e5b19d0064f5cabf630bf6e
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/0day-ci/linux/commit/30560ca5d609ffb9625ef9fbf02daa8c9...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Jiri-Pirko/introduce-line-card-support-for-modular-switch/20210113-201955
git checkout 30560ca5d609ffb9625ef9fbf02daa8c994f3223
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/linkage.h:7,
from include/linux/kernel.h:7,
from net/core/devlink.c:10:
> include/linux/export.h:67:36: error: redefinition of
'__ksymtab_devlink_linecard_create'
67 | static const struct
kernel_symbol __ksymtab_##sym \
| ^~~~~~~~~~
include/linux/export.h:108:2: note: in expansion of macro '__KSYMTAB_ENTRY'
108 | __KSYMTAB_ENTRY(sym, sec)
| ^~~~~~~~~~~~~~~
include/linux/export.h:147:39: note: in expansion of macro '___EXPORT_SYMBOL'
147 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
net/core/devlink.c:8654:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
8654 | EXPORT_SYMBOL_GPL(devlink_linecard_create);
| ^~~~~~~~~~~~~~~~~
include/linux/export.h:67:36: note: previous definition of
'__ksymtab_devlink_linecard_create' was here
67 | static const struct kernel_symbol __ksymtab_##sym \
| ^~~~~~~~~~
include/linux/export.h:108:2: note: in expansion of macro '__KSYMTAB_ENTRY'
108 | __KSYMTAB_ENTRY(sym, sec)
| ^~~~~~~~~~~~~~~
include/linux/export.h:147:39: note: in expansion of macro '___EXPORT_SYMBOL'
147 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
net/core/devlink.c:8638:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
8638 | EXPORT_SYMBOL_GPL(devlink_linecard_create);
| ^~~~~~~~~~~~~~~~~
vim +/__ksymtab_devlink_linecard_create +67 include/linux/export.h
f50169324df4ad94 Paul Gortmaker 2011-05-23 41
7290d58095712a89 Ard Biesheuvel 2018-08-21 42 #ifdef
CONFIG_HAVE_ARCH_PREL32_RELOCATIONS
7290d58095712a89 Ard Biesheuvel 2018-08-21 43 #include <linux/compiler.h>
7290d58095712a89 Ard Biesheuvel 2018-08-21 44 /*
7290d58095712a89 Ard Biesheuvel 2018-08-21 45 * Emit the ksymtab entry as a pair of
relative references: this reduces
7290d58095712a89 Ard Biesheuvel 2018-08-21 46 * the size by half on 64-bit
architectures, and eliminates the need for
7290d58095712a89 Ard Biesheuvel 2018-08-21 47 * absolute relocations that require
runtime processing on relocatable
7290d58095712a89 Ard Biesheuvel 2018-08-21 48 * kernels.
7290d58095712a89 Ard Biesheuvel 2018-08-21 49 */
7290d58095712a89 Ard Biesheuvel 2018-08-21 50 #define __KSYMTAB_ENTRY(sym,
sec) \
7290d58095712a89 Ard Biesheuvel 2018-08-21 51 __ADDRESSABLE(sym) \
7290d58095712a89 Ard Biesheuvel 2018-08-21 52 asm(" .section
\"___ksymtab" sec "+" #sym "\", \"a\" \n" \
ed13fc33f763035a Matthias Maennich 2019-09-06 53 " .balign 4 \n" \
7290d58095712a89 Ard Biesheuvel 2018-08-21 54 "__ksymtab_" #sym
": \n" \
7290d58095712a89 Ard Biesheuvel 2018-08-21 55 " .long " #sym "-
. \n" \
7290d58095712a89 Ard Biesheuvel 2018-08-21 56 " .long __kstrtab_" #sym
"- . \n" \
c3a6cf19e695c8b0 Masahiro Yamada 2019-10-18 57 " .long __kstrtabns_"
#sym "- . \n" \
7290d58095712a89 Ard Biesheuvel 2018-08-21 58 " .previous \n")
7290d58095712a89 Ard Biesheuvel 2018-08-21 59
7290d58095712a89 Ard Biesheuvel 2018-08-21 60 struct kernel_symbol {
7290d58095712a89 Ard Biesheuvel 2018-08-21 61 int value_offset;
7290d58095712a89 Ard Biesheuvel 2018-08-21 62 int name_offset;
8651ec01daedad26 Matthias Maennich 2019-09-06 63 int namespace_offset;
7290d58095712a89 Ard Biesheuvel 2018-08-21 64 };
7290d58095712a89 Ard Biesheuvel 2018-08-21 65 #else
7290d58095712a89 Ard Biesheuvel 2018-08-21 66 #define __KSYMTAB_ENTRY(sym,
sec) \
7290d58095712a89 Ard Biesheuvel 2018-08-21 @67 static const struct kernel_symbol
__ksymtab_##sym \
7290d58095712a89 Ard Biesheuvel 2018-08-21 68
__attribute__((section("___ksymtab" sec "+" #sym), used)) \
ed13fc33f763035a Matthias Maennich 2019-09-06 69 __aligned(sizeof(void *)) \
c3a6cf19e695c8b0 Masahiro Yamada 2019-10-18 70 = { (unsigned long)&sym,
__kstrtab_##sym, __kstrtabns_##sym }
7290d58095712a89 Ard Biesheuvel 2018-08-21 71
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org