* [linux-next:master 13225/13339] arch/riscv/errata/andes/errata.c:68:45: error: 'RISCV_VENDOR_EXT_ALTERNATIVES_BASE' undeclared
@ 2024-05-16 9:29 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-16 9:29 UTC (permalink / raw)
To: Palmer Dabbelt; +Cc: oe-kbuild-all, Linux Memory Management List
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: dbd9e2e056d8577375ae4b31ada94f8aa3769e8a
commit: 37235efc056ab6df9316c50f65355cfff4554bf6 [13225/13339] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git
config: riscv-randconfig-r051-20231214 (https://download.01.org/0day-ci/archive/20240516/202405161715.aW57SJuh-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240516/202405161715.aW57SJuh-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405161715.aW57SJuh-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from <command-line>:
arch/riscv/errata/andes/errata.c: In function 'andes_errata_patch_func':
>> arch/riscv/errata/andes/errata.c:68:45: error: 'RISCV_VENDOR_EXT_ALTERNATIVES_BASE' undeclared (first use in this function)
68 | BUILD_BUG_ON(ERRATA_ANDES_NUMBER >= RISCV_VENDOR_EXT_ALTERNATIVES_BASE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:458:23: note: in definition of macro '__compiletime_assert'
458 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:478:9: note: in expansion of macro '_compiletime_assert'
478 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
arch/riscv/errata/andes/errata.c:68:9: note: in expansion of macro 'BUILD_BUG_ON'
68 | BUILD_BUG_ON(ERRATA_ANDES_NUMBER >= RISCV_VENDOR_EXT_ALTERNATIVES_BASE);
| ^~~~~~~~~~~~
arch/riscv/errata/andes/errata.c:68:45: note: each undeclared identifier is reported only once for each function it appears in
68 | BUILD_BUG_ON(ERRATA_ANDES_NUMBER >= RISCV_VENDOR_EXT_ALTERNATIVES_BASE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:458:23: note: in definition of macro '__compiletime_assert'
458 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:478:9: note: in expansion of macro '_compiletime_assert'
478 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
arch/riscv/errata/andes/errata.c:68:9: note: in expansion of macro 'BUILD_BUG_ON'
68 | BUILD_BUG_ON(ERRATA_ANDES_NUMBER >= RISCV_VENDOR_EXT_ALTERNATIVES_BASE);
| ^~~~~~~~~~~~
vim +/RISCV_VENDOR_EXT_ALTERNATIVES_BASE +68 arch/riscv/errata/andes/errata.c
e021ae7f5145d4 Lad Prabhakar 2023-08-18 63
e021ae7f5145d4 Lad Prabhakar 2023-08-18 64 void __init_or_module andes_errata_patch_func(struct alt_entry *begin, struct alt_entry *end,
e021ae7f5145d4 Lad Prabhakar 2023-08-18 65 unsigned long archid, unsigned long impid,
e021ae7f5145d4 Lad Prabhakar 2023-08-18 66 unsigned int stage)
e021ae7f5145d4 Lad Prabhakar 2023-08-18 67 {
589e2fc8585098 Charlie Jenkins 2024-05-03 @68 BUILD_BUG_ON(ERRATA_ANDES_NUMBER >= RISCV_VENDOR_EXT_ALTERNATIVES_BASE);
:::::: The code at line 68 was first introduced by commit
:::::: 589e2fc8585098e66cf5dace3806b4737edd0fd1 riscv: Convert xandespmu to use the vendor extension framework
:::::: TO: Charlie Jenkins <charlie@rivosinc.com>
:::::: CC: Palmer Dabbelt <palmer@rivosinc.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-16 9:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-16 9:29 [linux-next:master 13225/13339] arch/riscv/errata/andes/errata.c:68:45: error: 'RISCV_VENDOR_EXT_ALTERNATIVES_BASE' undeclared kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).