All of lore.kernel.org
 help / color / mirror / Atom feed
* [chenxing:mstar_v6_5_reorder 278/700] drivers/irqchip/irq-msc313-pm-wakeup.c:132:9: warning: ignoring return value of 'request_irq' declared with attribute 'warn_unused_result'
@ 2026-08-01  4:33 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-01  4:33 UTC (permalink / raw)
  To: Daniel Palmer; +Cc: oe-kbuild-all

tree:   https://github.com/linux-chenxing/linux.git mstar_v6_5_reorder
head:   1a5c60e65ea399670a5384b869c4958338af2799
commit: f140c99a8d0eb90029eb3e9ebc6077300aaf3d53 [278/700] ARM: mstar: Add header for pmsleep area registers
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260801/202608011202.Oet4bIzN-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260801/202608011202.Oet4bIzN-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/202608011202.Oet4bIzN-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/irqchip/irq-msc313-pm-wakeup.c: In function 'msc313_pm_wakeup_intc_of_init':
>> drivers/irqchip/irq-msc313-pm-wakeup.c:132:9: warning: ignoring return value of 'request_irq' declared with attribute 'warn_unused_result' [-Wunused-result]
     132 |         request_irq(irq, msc313_pm_wakeup_intc_chainedhandler, IRQF_SHARED,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     133 |                                 "pmsleep", domain);
         |                                 ~~~~~~~~~~~~~~~~~~
--
>> drivers/pinctrl/mstar/pinctrl-msc313-pm.c:44:27: warning: 'pm_irin_groups' defined but not used [-Wunused-const-variable=]
      44 | static const char * const pm_irin_groups[] = {
         |                           ^~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313-pm.c:40:27: warning: 'pm_spi_groups' defined but not used [-Wunused-const-variable=]
      40 | static const char * const pm_spi_groups[] = {
         |                           ^~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313-pm.c:36:27: warning: 'pm_uart_groups' defined but not used [-Wunused-const-variable=]
      36 | static const char * const pm_uart_groups[] = {
         |                           ^~~~~~~~~~~~~~


vim +132 drivers/irqchip/irq-msc313-pm-wakeup.c

106aac5fe9efb3c Daniel Palmer 2020-11-23   97  
106aac5fe9efb3c Daniel Palmer 2020-11-23   98  static int __init msc313_pm_wakeup_intc_of_init(struct device_node *node,
106aac5fe9efb3c Daniel Palmer 2020-11-23   99  				   struct device_node *parent)
106aac5fe9efb3c Daniel Palmer 2020-11-23  100  {
106aac5fe9efb3c Daniel Palmer 2020-11-23  101  	int ret = 0, irq;
106aac5fe9efb3c Daniel Palmer 2020-11-23  102  	struct regmap *pmsleep;
106aac5fe9efb3c Daniel Palmer 2020-11-23  103  	struct msc313_sleep_intc *intc;
106aac5fe9efb3c Daniel Palmer 2020-11-23  104  	struct irq_domain *domain;
106aac5fe9efb3c Daniel Palmer 2020-11-23  105  
106aac5fe9efb3c Daniel Palmer 2020-11-23  106  	irq = of_irq_get(node, 0);
106aac5fe9efb3c Daniel Palmer 2020-11-23  107  	if (irq <= 0)
106aac5fe9efb3c Daniel Palmer 2020-11-23  108  		return irq;
106aac5fe9efb3c Daniel Palmer 2020-11-23  109  
106aac5fe9efb3c Daniel Palmer 2020-11-23  110  	pmsleep = syscon_regmap_lookup_by_phandle(node, "mstar,pmsleep");
106aac5fe9efb3c Daniel Palmer 2020-11-23  111  	if (IS_ERR(pmsleep))
106aac5fe9efb3c Daniel Palmer 2020-11-23  112  		return PTR_ERR(pmsleep);
106aac5fe9efb3c Daniel Palmer 2020-11-23  113  
106aac5fe9efb3c Daniel Palmer 2020-11-23  114  	intc = kzalloc(sizeof(*intc), GFP_KERNEL);
106aac5fe9efb3c Daniel Palmer 2020-11-23  115  	if (!intc)
106aac5fe9efb3c Daniel Palmer 2020-11-23  116  		return -ENOMEM;
106aac5fe9efb3c Daniel Palmer 2020-11-23  117  
106aac5fe9efb3c Daniel Palmer 2020-11-23  118  	intc->mask = regmap_field_alloc(pmsleep, mask_field);
106aac5fe9efb3c Daniel Palmer 2020-11-23  119  	intc->type = regmap_field_alloc(pmsleep, type_field);
106aac5fe9efb3c Daniel Palmer 2020-11-23  120  	intc->status = regmap_field_alloc(pmsleep, status_field);
106aac5fe9efb3c Daniel Palmer 2020-11-23  121  
106aac5fe9efb3c Daniel Palmer 2020-11-23  122  	/* The masks survive deep sleep so clear them. */
106aac5fe9efb3c Daniel Palmer 2020-11-23  123  	regmap_field_write(intc->mask, ~0);
106aac5fe9efb3c Daniel Palmer 2020-11-23  124  
106aac5fe9efb3c Daniel Palmer 2020-11-23  125  	domain = irq_domain_add_linear(node, NUM_IRQ,
106aac5fe9efb3c Daniel Palmer 2020-11-23  126  			&msc313_pm_wakeup_intc_domain_ops, intc);
106aac5fe9efb3c Daniel Palmer 2020-11-23  127  	if (!domain) {
106aac5fe9efb3c Daniel Palmer 2020-11-23  128  		ret = -ENOMEM;
106aac5fe9efb3c Daniel Palmer 2020-11-23  129  		goto out_free;
106aac5fe9efb3c Daniel Palmer 2020-11-23  130  	}
106aac5fe9efb3c Daniel Palmer 2020-11-23  131  
106aac5fe9efb3c Daniel Palmer 2020-11-23 @132  	request_irq(irq, msc313_pm_wakeup_intc_chainedhandler, IRQF_SHARED,
106aac5fe9efb3c Daniel Palmer 2020-11-23  133  				"pmsleep", domain);
106aac5fe9efb3c Daniel Palmer 2020-11-23  134  
106aac5fe9efb3c Daniel Palmer 2020-11-23  135  	return 0;
106aac5fe9efb3c Daniel Palmer 2020-11-23  136  
106aac5fe9efb3c Daniel Palmer 2020-11-23  137  out_free:
106aac5fe9efb3c Daniel Palmer 2020-11-23  138  	kfree(intc);
106aac5fe9efb3c Daniel Palmer 2020-11-23  139  	return ret;
106aac5fe9efb3c Daniel Palmer 2020-11-23  140  }
106aac5fe9efb3c Daniel Palmer 2020-11-23  141  

:::::: The code at line 132 was first introduced by commit
:::::: 106aac5fe9efb3c824bae041d1a3ea81eb52b25f irqchip: MStar wakeup intc

:::::: TO: Daniel Palmer <daniel@0x0f.com>
:::::: CC: Daniel Palmer <daniel@0x0f.com>

--
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:[~2026-08-01  4:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-01  4:33 [chenxing:mstar_v6_5_reorder 278/700] drivers/irqchip/irq-msc313-pm-wakeup.c:132:9: warning: ignoring return value of 'request_irq' declared with attribute 'warn_unused_result' 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.