From: kernel test robot <lkp@intel.com>
To: Palmer Dabbelt <palmer@rivosinc.com>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 13225/13339] arch/riscv/errata/andes/errata.c:68:45: error: 'RISCV_VENDOR_EXT_ALTERNATIVES_BASE' undeclared
Date: Thu, 16 May 2024 17:29:39 +0800 [thread overview]
Message-ID: <202405161715.aW57SJuh-lkp@intel.com> (raw)
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
reply other threads:[~2024-05-16 9:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202405161715.aW57SJuh-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=palmer@rivosinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).