From: kernel test robot <lkp@intel.com>
To: Atish Patra <atishp@rivosinc.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Atish Patra <Atish.Patra@wdc.com>
Subject: [atishp04:kvm_pmu_snapshot_v5 12/26] arch/riscv/kernel/paravirt.c:65:13: error: use of undeclared identifier 'SBI_STA_SHMEM_DISABLE'
Date: Wed, 3 Apr 2024 07:27:03 +0800 [thread overview]
Message-ID: <202404030746.BC3MI8IG-lkp@intel.com> (raw)
tree: https://github.com/atishp04/linux kvm_pmu_snapshot_v5
head: cdddc91e3f95ed945d275254a88f64fc64b62f96
commit: b02b0545bb76e198b4a7e481866b42596e15bb00 [12/26] RISC-V: KVM: Rename the SBI_STA_SHMEM_DISABLE to a generic
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20240403/202404030746.BC3MI8IG-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 546dc2245ffc4cccd0b05b58b7a5955e355a3b27)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240403/202404030746.BC3MI8IG-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/202404030746.BC3MI8IG-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/riscv/kernel/paravirt.c:65:13: error: use of undeclared identifier 'SBI_STA_SHMEM_DISABLE'
65 | if (lo == SBI_STA_SHMEM_DISABLE && hi == SBI_STA_SHMEM_DISABLE)
| ^
arch/riscv/kernel/paravirt.c:65:44: error: use of undeclared identifier 'SBI_STA_SHMEM_DISABLE'
65 | if (lo == SBI_STA_SHMEM_DISABLE && hi == SBI_STA_SHMEM_DISABLE)
| ^
arch/riscv/kernel/paravirt.c:87:38: error: use of undeclared identifier 'SBI_STA_SHMEM_DISABLE'
87 | return sbi_sta_steal_time_set_shmem(SBI_STA_SHMEM_DISABLE,
| ^
arch/riscv/kernel/paravirt.c:88:10: error: use of undeclared identifier 'SBI_STA_SHMEM_DISABLE'
88 | SBI_STA_SHMEM_DISABLE, 0);
| ^
4 errors generated.
vim +/SBI_STA_SHMEM_DISABLE +65 arch/riscv/kernel/paravirt.c
323925ed6dbb0e Andrew Jones 2023-12-20 56
fdf68acccfc6af Andrew Jones 2023-12-20 57 static int sbi_sta_steal_time_set_shmem(unsigned long lo, unsigned long hi,
fdf68acccfc6af Andrew Jones 2023-12-20 58 unsigned long flags)
323925ed6dbb0e Andrew Jones 2023-12-20 59 {
fdf68acccfc6af Andrew Jones 2023-12-20 60 struct sbiret ret;
fdf68acccfc6af Andrew Jones 2023-12-20 61
fdf68acccfc6af Andrew Jones 2023-12-20 62 ret = sbi_ecall(SBI_EXT_STA, SBI_EXT_STA_STEAL_TIME_SET_SHMEM,
fdf68acccfc6af Andrew Jones 2023-12-20 63 lo, hi, flags, 0, 0, 0);
fdf68acccfc6af Andrew Jones 2023-12-20 64 if (ret.error) {
fdf68acccfc6af Andrew Jones 2023-12-20 @65 if (lo == SBI_STA_SHMEM_DISABLE && hi == SBI_STA_SHMEM_DISABLE)
fdf68acccfc6af Andrew Jones 2023-12-20 66 pr_warn("Failed to disable steal-time shmem");
fdf68acccfc6af Andrew Jones 2023-12-20 67 else
fdf68acccfc6af Andrew Jones 2023-12-20 68 pr_warn("Failed to set steal-time shmem");
fdf68acccfc6af Andrew Jones 2023-12-20 69 return sbi_err_map_linux_errno(ret.error);
fdf68acccfc6af Andrew Jones 2023-12-20 70 }
fdf68acccfc6af Andrew Jones 2023-12-20 71
323925ed6dbb0e Andrew Jones 2023-12-20 72 return 0;
323925ed6dbb0e Andrew Jones 2023-12-20 73 }
323925ed6dbb0e Andrew Jones 2023-12-20 74
:::::: The code at line 65 was first introduced by commit
:::::: fdf68acccfc6af9497c34ee411d89af13b6516ed RISC-V: paravirt: Implement steal-time support
:::::: TO: Andrew Jones <ajones@ventanamicro.com>
:::::: CC: Anup Patel <anup@brainfault.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-04-02 23:28 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=202404030746.BC3MI8IG-lkp@intel.com \
--to=lkp@intel.com \
--cc=Atish.Patra@wdc.com \
--cc=atishp@rivosinc.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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