* arch/parisc/kernel/perf_regs.c:30:2-3: Unneeded semicolon
@ 2025-11-08 19:58 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-08 19:58 UTC (permalink / raw)
To: Helge Deller; +Cc: oe-kbuild-all, linux-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7bb4d6512545a792a6cd8d6c8be5718920b9b11a
commit: 610cb23bcc75bcd9fead3e41cbd867cccd0eb229 parisc: Add initial kernel-side perf_event support
date: 5 weeks ago
config: parisc-randconfig-r062-20251109 (https://download.01.org/0day-ci/archive/20251109/202511090323.OwYsZkev-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 11.5.0
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/202511090323.OwYsZkev-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> arch/parisc/kernel/perf_regs.c:30:2-3: Unneeded semicolon
vim +30 arch/parisc/kernel/perf_regs.c
8
9 u64 perf_reg_value(struct pt_regs *regs, int idx)
10 {
11 switch (idx) {
12 case PERF_REG_PARISC_R0 ... PERF_REG_PARISC_R31:
13 return regs->gr[idx - PERF_REG_PARISC_R0];
14 case PERF_REG_PARISC_SR0 ... PERF_REG_PARISC_SR7:
15 return regs->sr[idx - PERF_REG_PARISC_SR0];
16 case PERF_REG_PARISC_IASQ0 ... PERF_REG_PARISC_IASQ1:
17 return regs->iasq[idx - PERF_REG_PARISC_IASQ0];
18 case PERF_REG_PARISC_IAOQ0 ... PERF_REG_PARISC_IAOQ1:
19 return regs->iasq[idx - PERF_REG_PARISC_IAOQ0];
20 case PERF_REG_PARISC_SAR: /* CR11 */
21 return regs->sar;
22 case PERF_REG_PARISC_IIR: /* CR19 */
23 return regs->iir;
24 case PERF_REG_PARISC_ISR: /* CR20 */
25 return regs->isr;
26 case PERF_REG_PARISC_IOR: /* CR21 */
27 return regs->ior;
28 case PERF_REG_PARISC_IPSW: /* CR22 */
29 return regs->ipsw;
> 30 };
31 WARN_ON_ONCE((u32)idx >= PERF_REG_PARISC_MAX);
32 return 0;
33 }
34
--
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-11-08 19:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-08 19:58 arch/parisc/kernel/perf_regs.c:30:2-3: Unneeded semicolon 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
all inboxes | Powered by JetHome®