* [avpatel:riscv_acpi_apei_v1 35/55] arch/riscv/kernel/hw_breakpoint.c:109:9: warning: variable 'rc' is uninitialized when used here
@ 2025-08-11 11:36 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-11 11:36 UTC (permalink / raw)
To: Himanshu Chauhan; +Cc: llvm, oe-kbuild-all, Anup Patel, Jesse Taube
tree: https://github.com/avpatel/linux.git riscv_acpi_apei_v1
head: eaca137f211dcb260f7eb52d983ddad7f27277f3
commit: df85c5a81bf62ede57ad6bdfa14482907dee11cf [35/55] riscv: Introduce support for hardware break/watchpoints
config: riscv-randconfig-002-20250811 (https://download.01.org/0day-ci/archive/20250811/202508111923.YBAEfI8R-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 3769ce013be2879bf0b329c14a16f5cb766f26ce)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250811/202508111923.YBAEfI8R-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/202508111923.YBAEfI8R-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/riscv/kernel/hw_breakpoint.c:109:9: warning: variable 'rc' is uninitialized when used here [-Wuninitialized]
109 | return rc;
| ^~
arch/riscv/kernel/hw_breakpoint.c:90:8: note: initialize the variable 'rc' to silence this warning
90 | int rc;
| ^
| = 0
1 warning generated.
vim +/rc +109 arch/riscv/kernel/hw_breakpoint.c
84
85 static int arch_smp_setup_sbi_shmem(unsigned int cpu)
86 {
87 union sbi_dbtr_shmem_entry *dbtr_shmem;
88 unsigned long shmem_pa;
89 struct sbiret ret;
90 int rc;
91
92 dbtr_shmem = per_cpu_ptr(&sbi_dbtr_shmem, cpu);
93 if (!dbtr_shmem) {
94 pr_err("Invalid per-cpu shared memory for debug triggers\n");
95 return -ENODEV;
96 }
97
98 shmem_pa = virt_to_phys(dbtr_shmem);
99
100 ret = sbi_ecall(SBI_EXT_DBTR, SBI_EXT_DBTR_SETUP_SHMEM,
101 SBI_SHMEM_LO(shmem_pa), SBI_SHMEM_HI(shmem_pa), 0, 0, 0, 0);
102 if (ret.error) {
103 pr_warn("%s: failed to setup shared memory. error: %ld\n", __func__, ret.error);
104 return sbi_err_map_linux_errno(ret.error);
105 }
106
107 pr_debug("CPU %d: HW Breakpoint shared memory registered.\n", cpu);
108
> 109 return rc;
110 }
111
--
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:[~2025-08-11 11:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-11 11:36 [avpatel:riscv_acpi_apei_v1 35/55] arch/riscv/kernel/hw_breakpoint.c:109:9: warning: variable 'rc' is uninitialized when used here 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).