[android-common:android17-6.18 1/1] drivers/irqchip/irq-aspeed-scu-ic.c:107:27: warning: variable 'mask' set but not used

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
Hi Ryan,

FYI, the error/warning still remains.

tree:   https://android.googlesource.com/kernel/common android17-6.18
head:   ec3601aba611c7d6da822a2807464da60e185790
commit: b2a0c13f8b4fc3f6c8b279fdc4395a5fa57dda5d [1/1] irqchip/aspeed-scu-ic: Add support for AST2700 SCU interrupt controllers
config: arm-randconfig-003-20260822 (https://download.01.org/0day-ci/archive/20260822/[email protected]/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260822/[email protected]/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
| Fixes: b2a0c13f8b4f ("irqchip/aspeed-scu-ic: Add support for AST2700 SCU interrupt controllers")
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

   drivers/irqchip/irq-aspeed-scu-ic.c: In function 'aspeed_scu_ic_irq_handler_split':
>> drivers/irqchip/irq-aspeed-scu-ic.c:107:27: warning: variable 'mask' set but not used [-Wunused-but-set-variable]
     107 |         unsigned int sts, mask;
         |                           ^~~~


vim +/mask +107 drivers/irqchip/irq-aspeed-scu-ic.c

   101	
   102	static void aspeed_scu_ic_irq_handler_split(struct irq_desc *desc)
   103	{
   104		struct aspeed_scu_ic *scu_ic = irq_desc_get_handler_data(desc);
   105		struct irq_chip *chip = irq_desc_get_chip(desc);
   106		unsigned long bit, enabled, max, status;
 > 107		unsigned int sts, mask;
   108	
   109		chained_irq_enter(chip, desc);
   110	
   111		mask = scu_ic->irq_enable;
   112		sts = readl(scu_ic->base + scu_ic->isr);
   113		enabled = sts & scu_ic->irq_enable;
   114		sts = readl(scu_ic->base + scu_ic->isr);
   115		status = sts & enabled;
   116	
   117		bit = scu_ic->irq_shift;
   118		max = scu_ic->num_irqs + bit;
   119	
   120		for_each_set_bit_from(bit, &status, max) {
   121			generic_handle_domain_irq(scu_ic->irq_domain, bit - scu_ic->irq_shift);
   122			/* Clear interrupt */
   123			writel(BIT(bit), scu_ic->base + scu_ic->isr);
   124		}
   125	
   126		chained_irq_exit(chip, desc);
   127	}
   128	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.