[linux-chenxing:mstar_v5_14_rebase_i2_drm 86/349] drivers/irqchip/irq-msc313-pm-intc.c:121:2: warning: ignoring return value of 'request_irq' declared with attribute 'warn_unused_result'

From: kernel test robot
Date: Sun Jul 18 2021 - 18:44:58 EST


tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase_i2_drm
head: 93dfb2364436067bf34c6d4ddcd282496182cc0f
commit: 5ef6feadec2f32e387068db45021b52ef7154d4c [86/349] ARM: mstar: msc313 pm intc driver
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/linux-chenxing/linux/commit/5ef6feadec2f32e387068db45021b52ef7154d4c
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing mstar_v5_14_rebase_i2_drm
git checkout 5ef6feadec2f32e387068db45021b52ef7154d4c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=s390

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

drivers/irqchip/irq-msc313-pm-intc.c: In function 'msc313_sleep_intc_of_init':
>> drivers/irqchip/irq-msc313-pm-intc.c:121:2: warning: ignoring return value of 'request_irq' declared with attribute 'warn_unused_result' [-Wunused-result]
121 | request_irq(gicint, msc313_sleep_intc_chainedhandler, IRQF_SHARED,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | "pmsleep", domain);
| ~~~~~~~~~~~~~~~~~~


vim +121 drivers/irqchip/irq-msc313-pm-intc.c

89
90 static int __init msc313_sleep_intc_of_init(struct device_node *node,
91 struct device_node *parent)
92 {
93 int gicint;
94 struct regmap *pmsleep;
95 struct msc313_sleep_intc *intc;
96 struct irq_domain *domain;
97 int ret;
98
99 gicint = of_irq_get(node, 0);
100 printk("gicint: %d\n", gicint);
101 if (gicint <= 0)
102 return gicint;
103
104 pmsleep = syscon_regmap_lookup_by_phandle(node, "mstar,pmsleep");
105 if(IS_ERR(pmsleep))
106 return PTR_ERR(pmsleep);
107
108 intc = kzalloc(sizeof(*intc), GFP_KERNEL);
109 if (!intc)
110 return -ENOMEM;
111
112 intc->pmsleep = pmsleep;
113
114 domain = irq_domain_add_linear(node, NUM_IRQ,
115 &msc313_pm_intc_domain_ops, intc);
116 if (!domain) {
117 ret = -ENOMEM;
118 goto out_free;
119 }
120
> 121 request_irq(gicint, msc313_sleep_intc_chainedhandler, IRQF_SHARED,
122 "pmsleep", domain);
123
124 return 0;
125
126 out_free:
127 kfree(intc);
128 return ret;
129 }
130

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip