Messages in this thread | | | Date | Mon, 19 Jul 2021 09:43:58 +0800 | From | kernel test robot <> | Subject | [linux-chenxing:mstar_v5_14_rebase_i2_drm 203/349] drivers/irqchip/irq-msc313-pm-wakeup.c:137:2: warning: ignoring return value of 'request_irq' declared with attribute 'warn_unused_result' |
| |
tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase_i2_drm head: 93dfb2364436067bf34c6d4ddcd282496182cc0f commit: a19d27ac78ef431e6bf1e00a85d676ac5d051650 [203/349] ARM: mstar: wakeup intc 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/a19d27ac78ef431e6bf1e00a85d676ac5d051650 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 a19d27ac78ef431e6bf1e00a85d676ac5d051650 # 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@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:137:2: warning: ignoring return value of 'request_irq' declared with attribute 'warn_unused_result' [-Wunused-result] 137 | request_irq(irq, msc313_pm_wakeup_intc_chainedhandler, IRQF_SHARED, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 138 | "pmsleep", domain); | ~~~~~~~~~~~~~~~~~~
vim +137 drivers/irqchip/irq-msc313-pm-wakeup.c
100 101 static int __init msc313_pm_wakeup_intc_of_init(struct device_node *node, 102 struct device_node *parent) 103 { 104 int ret = 0, irq; 105 struct regmap *pmsleep; 106 struct msc313_sleep_intc *intc; 107 struct irq_domain *domain; 108 109 irq = of_irq_get(node, 0); 110 if (irq <= 0) 111 return irq; 112 113 pmsleep = syscon_regmap_lookup_by_phandle(node, "mstar,pmsleep"); 114 if(IS_ERR(pmsleep)) 115 return PTR_ERR(pmsleep); 116 117 intc = kzalloc(sizeof(*intc), GFP_KERNEL); 118 if (!intc) 119 return -ENOMEM; 120 121 intc->mask = regmap_field_alloc(pmsleep, field_mask); 122 intc->type = regmap_field_alloc(pmsleep, field_type); 123 intc->status = regmap_field_alloc(pmsleep, field_status); 124 125 /* 126 * The masks survive deep sleep so clear them. 127 */ 128 regmap_field_write(intc->mask, ~0); 129 130 domain = irq_domain_add_linear(node, NUM_IRQ, 131 &msc313_pm_wakeup_intc_domain_ops, intc); 132 if (!domain) { 133 ret = -ENOMEM; 134 goto out_free; 135 } 136 > 137 request_irq(irq, msc313_pm_wakeup_intc_chainedhandler, IRQF_SHARED, 138 "pmsleep", domain); 139 140 return 0; 141 142 out_free: 143 kfree(intc); 144 return ret; 145 } 146
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |