linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ti:ti-rt-linux-5.10.y 10090/10108] drivers/clocksource/timer-ti-dm-systimer.c:528:13: warning: variable 'val' set but not used
@ 2021-10-25 12:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-25 12:32 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: kbuild-all, linux-kernel, Praneeth Bajjuri, Dave Gerlach

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

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head:   b9f28fcb222bc4508077366b05ad5d44984087b0
commit: 7a20bf8a5be4f31f38b9315ecea07ee30697650d [10090/10108] clocksource/drivers/timer-ti-dm: Extend pending interrupt ACK for gic
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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
        git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
        git fetch --no-tags ti ti-rt-linux-5.10.y
        git checkout 7a20bf8a5be4f31f38b9315ecea07ee30697650d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm 

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/clocksource/timer-ti-dm-systimer.c: In function 'omap_clockevent_late_ack':
>> drivers/clocksource/timer-ti-dm-systimer.c:528:13: warning: variable 'val' set but not used [-Wunused-but-set-variable]
     528 |         u32 val;
         |             ^~~
   drivers/clocksource/timer-ti-dm-systimer.c: In function 'dmtimer_clockevent_init':
   drivers/clocksource/timer-ti-dm-systimer.c:671:46: warning: passing argument 1 of 'irq_to_desc' makes integer from pointer without a cast [-Wint-conversion]
     671 |                 clkev_irq_desc = irq_to_desc(&clkevt->dev.irq);
         |                                              ^~~~~~~~~~~~~~~~
         |                                              |
         |                                              int *
   In file included from include/linux/interrupt.h:10,
                    from drivers/clocksource/timer-ti-dm-systimer.c:6:
   include/linux/irqnr.h:9:50: note: expected 'unsigned int' but argument is of type 'int *'
       9 | extern struct irq_desc *irq_to_desc(unsigned int irq);
         |                                     ~~~~~~~~~~~~~^~~


vim +/val +528 drivers/clocksource/timer-ti-dm-systimer.c

   525	
   526	static void omap_clockevent_late_ack(void)
   527	{
 > 528		u32 val;
   529	
   530		if (!clkev_irq_chip)
   531			return;
   532	
   533		/*
   534		 * For the gic to properly clear an interrupt it must be read
   535		 * from INTACK register
   536		 */
   537		if (gic_cpu_base)
   538			val = readl_relaxed(gic_cpu_base + GIC_CPU_INTACK);
   539		if (clkev_irq_chip->irq_ack)
   540			clkev_irq_chip->irq_ack(&clkev_irq_desc->irq_data);
   541		if (clkev_irq_chip->irq_eoi)
   542			clkev_irq_chip->irq_eoi(&clkev_irq_desc->irq_data);
   543	
   544		clkev_irq_chip->irq_unmask(&clkev_irq_desc->irq_data);
   545	}
   546	

---
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: 53692 bytes --]

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

only message in thread, other threads:[~2021-10-25 12:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-25 12:32 [ti:ti-rt-linux-5.10.y 10090/10108] drivers/clocksource/timer-ti-dm-systimer.c:528:13: warning: variable 'val' set but not used 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).