From: kernel test robot <lkp@intel.com>
To: Yury Norov <yury.norov@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [norov:fnb 16/37] arch/powerpc/kvm/mpic.c:296:26: error: 'irq' undeclared; did you mean 'rq'?
Date: Sat, 12 Jul 2025 05:00:36 +0800 [thread overview]
Message-ID: <202507120418.vAX30xSH-lkp@intel.com> (raw)
tree: https://github.com/norov/linux fnb
head: 870b9f6edf53871a5cc4aaf858054d8362c49989
commit: 0b41d6e7a357f08fd23dec2bc204af5af38d7072 [16/37] power: kvm: use for_each_set_bit() in IRQ_check()
config: powerpc-randconfig-001-20250712 (https://download.01.org/0day-ci/archive/20250712/202507120418.vAX30xSH-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250712/202507120418.vAX30xSH-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/202507120418.vAX30xSH-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/bitmap.h:11,
from include/linux/cpumask.h:12,
from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/spinlock.h:63,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/slab.h:16,
from arch/powerpc/kvm/mpic.c:26:
arch/powerpc/kvm/mpic.c: In function 'IRQ_check':
>> arch/powerpc/kvm/mpic.c:296:26: error: 'irq' undeclared (first use in this function); did you mean 'rq'?
296 | for_each_set_bit(irq, q->queue, opp->max_irq) {
| ^~~
include/linux/find.h:586:15: note: in definition of macro 'for_each_set_bit'
586 | for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
| ^~~
arch/powerpc/kvm/mpic.c:296:26: note: each undeclared identifier is reported only once for each function it appears in
296 | for_each_set_bit(irq, q->queue, opp->max_irq) {
| ^~~
include/linux/find.h:586:15: note: in definition of macro 'for_each_set_bit'
586 | for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
| ^~~
include/linux/find.h:586:69: warning: left-hand operand of comma expression has no effect [-Wunused-value]
586 | for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
| ^
arch/powerpc/kvm/mpic.c:296:9: note: in expansion of macro 'for_each_set_bit'
296 | for_each_set_bit(irq, q->queue, opp->max_irq) {
| ^~~~~~~~~~~~~~~~
vim +296 arch/powerpc/kvm/mpic.c
290
291 static void IRQ_check(struct openpic *opp, struct irq_queue *q)
292 {
293 int next = -1;
294 int priority = -1;
295
> 296 for_each_set_bit(irq, q->queue, opp->max_irq) {
297 pr_debug("IRQ_check: irq %d set ivpr_pr=%d pr=%d\n",
298 irq, IVPR_PRIORITY(opp->src[irq].ivpr), priority);
299
300 if (IVPR_PRIORITY(opp->src[irq].ivpr) > priority) {
301 next = irq;
302 priority = IVPR_PRIORITY(opp->src[irq].ivpr);
303 }
304 }
305
306 q->next = next;
307 q->priority = priority;
308 }
309
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-07-11 21:01 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=202507120418.vAX30xSH-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yury.norov@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.