linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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'
@ 2021-07-18 22:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-18 22:44 UTC (permalink / raw)
  To: Daniel Palmer; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2820 bytes --]

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@intel.com>

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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 66986 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-18 22:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-18 22:44 [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' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).