[thomas-weissschuh:b4/auxclock-nanosleep 16/39] kernel/time/timekeeping.h:44:72: error: 'symbol' undeclared here (not in a function)
kernel test robot <[email protected]> Wed, 05 Aug 2026 00:50:03 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/auxclock-nanosleep head: 67005bd34e048d0f0fb4f5762d159093fac52cb7 commit: dcfa56542ac7fa99290449e0a2409b2d9e875e1c [16/39] timekeeping: time_test: Add a test for auxiliary to monotonic clock conversions config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20260805/[email protected]/config) compiler: powerpc64-linux-gcc (GCC) 16.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260805/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): In file included from include/linux/linkage.h:7, from include/linux/printk.h:8, from include/asm-generic/bug.h:31, from arch/powerpc/include/asm/bug.h:116, from include/linux/bug.h:5, from include/linux/fortify-string.h:5, from include/linux/string.h:383, from arch/powerpc/include/asm/paca.h:16, from arch/powerpc/include/asm/current.h:13, from include/linux/sched.h:12, from include/linux/audit.h:12, from kernel/time/timekeeping.c:6: >> kernel/time/timekeeping.h:44:72: error: 'symbol' undeclared here (not in a function) 44 | #define EXPORT_SYMBOL_FOR_TIME_TEST(_symbol) EXPORT_SYMBOL_FOR_MODULES(symbol, "time_test"); | ^~~~~~ include/linux/export.h:76:23: note: in definition of macro '__EXPORT_SYMBOL' 76 | extern typeof(sym) sym; \ | ^~~ kernel/time/timekeeping.h:44:46: note: in expansion of macro 'EXPORT_SYMBOL_FOR_MODULES' 44 | #define EXPORT_SYMBOL_FOR_TIME_TEST(_symbol) EXPORT_SYMBOL_FOR_MODULES(symbol, "time_test"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ kernel/time/timekeeping.c:156:1: note: in expansion of macro 'EXPORT_SYMBOL_FOR_TIME_TEST' 156 | EXPORT_SYMBOL_FOR_TIME_TEST(tk_aux_capture_mono_conv); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/symbol +44 kernel/time/timekeeping.h 42 43 #if IS_MODULE(CONFIG_TIME_KUNIT_TEST) > 44 #define EXPORT_SYMBOL_FOR_TIME_TEST(_symbol) EXPORT_SYMBOL_FOR_MODULES(symbol, "time_test"); 45 #else 46 #define EXPORT_SYMBOL_FOR_TIME_TEST(_symbol) 47 #endif 48 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki