All of lore.kernel.org
 help / color / mirror / Atom feed
* [norov:fnb 16/37] arch/powerpc/kvm/mpic.c:296:26: error: 'irq' undeclared; did you mean 'rq'?
@ 2025-07-11 21:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-11 21:00 UTC (permalink / raw)
  To: Yury Norov; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-11 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-11 21:00 [norov:fnb 16/37] arch/powerpc/kvm/mpic.c:296:26: error: 'irq' undeclared; did you mean 'rq'? kernel test robot

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.