public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Palmer <daniel@0x0f.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
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'
Date: Mon, 19 Jul 2021 09:43:58 +0800	[thread overview]
Message-ID: <202107190956.jdaaLrZs-lkp@intel.com> (raw)

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

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

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

                 reply	other threads:[~2021-07-19  1:45 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=202107190956.jdaaLrZs-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=daniel@0x0f.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox