All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, Dmitry Ilvokhin <d@ilvokhin.com>
Subject: [tglx-devel:irq/core 10/15] kernel/irq/manage.c:2069:15: warning: unused variable 'ret'
Date: Tue, 31 Mar 2026 21:16:47 +0800	[thread overview]
Message-ID: <202603312110.BKMoS9yE-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git irq/core
head:   441c9c1a006b0553ee042b3bd979e3f004b3292c
commit: 2e6275cf004188e749d79ba9b357ab47a94c4bfd [10/15] genirq: Cache the condition for /proc/interrupts exposure
config: nios2-allnoconfig (https://download.01.org/0day-ci/archive/20260331/202603312110.BKMoS9yE-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/20260331/202603312110.BKMoS9yE-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/202603312110.BKMoS9yE-lkp@intel.com/

All warnings (new ones prefixed by >>):

   kernel/irq/manage.c: In function 'free_nmi':
>> kernel/irq/manage.c:2069:15: warning: unused variable 'ret' [-Wunused-variable]
    2069 |         void *ret;
         |               ^~~


vim +/ret +2069 kernel/irq/manage.c

  2065	
  2066	const void *free_nmi(unsigned int irq, void *dev_id)
  2067	{
  2068		struct irq_desc *desc = irq_to_desc(irq);
> 2069		void *ret;
  2070	
  2071		if (!desc || WARN_ON(!irq_is_nmi(desc)))
  2072			return NULL;
  2073	
  2074		if (WARN_ON(irq_settings_is_per_cpu_devid(desc)))
  2075			return NULL;
  2076	
  2077		/* NMI still enabled */
  2078		if (WARN_ON(desc->depth == 0))
  2079			disable_nmi_nosync(irq);
  2080	
  2081		return __cleanup_nmi(irq, desc);
  2082	}
  2083	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2026-03-31 13:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-31 13:16 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-03-31  2:51 [tglx-devel:irq/core 10/15] kernel/irq/manage.c:2069:15: warning: unused variable 'ret' kernel test robot

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=202603312110.BKMoS9yE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=d@ilvokhin.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tglx@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 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.