<stdin>:4:15: error: 'cmpxchg8b_emu' undeclared here (not in a function)

From: kernel test robot
Date: Tue Mar 25 2025 - 01:10:47 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2f2d529458523f6d889a926623f4ddc7de4df063
commit: 9c3681f9b9fd12cdbc4a542df599f1837512f3d5 kbuild: Add gendwarfksyms as an alternative to genksyms
date: 2 months ago
config: um-randconfig-r123-20250325 (https://download.01.org/0day-ci/archive/20250325/202503251216.lE4t9Ikj-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250325/202503251216.lE4t9Ikj-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503251216.lE4t9Ikj-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from include/linux/linkage.h:7,
from include/linux/kernel.h:18,
from <stdin>:1:
>> <stdin>:4:15: error: 'cmpxchg8b_emu' undeclared here (not in a function)
include/linux/export.h:70:23: note: in definition of macro '__EXPORT_SYMBOL'
70 | extern typeof(sym) sym; \
| ^~~
include/linux/export.h:83:41: note: in expansion of macro '_EXPORT_SYMBOL'
83 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "")
| ^~~~~~~~~~~~~~
<stdin>:4:1: note: in expansion of macro 'EXPORT_SYMBOL'
--
In file included from include/linux/linkage.h:7,
from include/linux/kernel.h:18,
from <stdin>:1:
>> <stdin>:4:15: error: 'csum_partial' undeclared here (not in a function)
include/linux/export.h:70:23: note: in definition of macro '__EXPORT_SYMBOL'
70 | extern typeof(sym) sym; \
| ^~~
include/linux/export.h:83:41: note: in expansion of macro '_EXPORT_SYMBOL'
83 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "")
| ^~~~~~~~~~~~~~
<stdin>:4:1: note: in expansion of macro 'EXPORT_SYMBOL'
>> <stdin>:5:15: error: 'csum_partial_copy_generic' undeclared here (not in a function)
include/linux/export.h:70:23: note: in definition of macro '__EXPORT_SYMBOL'
70 | extern typeof(sym) sym; \
| ^~~
include/linux/export.h:83:41: note: in expansion of macro '_EXPORT_SYMBOL'
83 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "")
| ^~~~~~~~~~~~~~
<stdin>:5:1: note: in expansion of macro 'EXPORT_SYMBOL'

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki