All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:irq/core 10/15] kernel/irq/manage.c:2069:15: warning: unused variable 'ret'
@ 2026-03-31  2:51 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-31  2:51 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: oe-kbuild-all, Dmitry Ilvokhin

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: x86_64-rhel-9.4-ltp (https://download.01.org/0day-ci/archive/20260331/202603310450.oEYtwqul-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260331/202603310450.oEYtwqul-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/202603310450.oEYtwqul-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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tglx-devel:irq/core 10/15] kernel/irq/manage.c:2069:15: warning: unused variable 'ret'
@ 2026-03-31 13:16 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-31 13:16 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: oe-kbuild-all, Dmitry Ilvokhin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-31 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-31 13:16 [tglx-devel:irq/core 10/15] kernel/irq/manage.c:2069:15: warning: unused variable 'ret' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-03-31  2:51 kernel test robot

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.