From: kernel test robot <lkp@intel.com>
To: Helge Deller <deller@gmx.de>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: arch/parisc/kernel/perf_regs.c:30:2-3: Unneeded semicolon
Date: Sun, 9 Nov 2025 03:58:34 +0800 [thread overview]
Message-ID: <202511090323.OwYsZkev-lkp@intel.com> (raw)
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
reply other threads:[~2025-11-08 19:58 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=202511090323.OwYsZkev-lkp@intel.com \
--to=lkp@intel.com \
--cc=deller@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®