From: kernel test robot <lkp@intel.com>
To: Daniel Palmer <daniel@0x0f.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Sat, 01 Aug 2026 12:33:26 +0800 [thread overview]
Message-ID: <202608011202.Oet4bIzN-lkp@intel.com> (raw)
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
reply other threads:[~2026-08-01 4:34 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=202608011202.Oet4bIzN-lkp@intel.com \
--to=lkp@intel.com \
--cc=daniel@0x0f.com \
--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 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.