From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============2499910750439588180==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [ti:ti-rt-linux-5.10.y 8412/9956] drivers/clocksource/timer-ti-dm-systimer.c:528:13: warning: variable 'val' set but not used Date: Tue, 04 Jan 2022 18:10:17 +0800 Message-ID: <202201041817.pLd03apR-lkp@intel.com> List-Id: --===============2499910750439588180== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Kevin, FYI, the error/warning still remains. tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.= 10.y head: 8681404176ca3a84a8ada5135ca4046ef86b06e8 commit: 7a20bf8a5be4f31f38b9315ecea07ee30697650d [8412/9956] clocksource/dr= ivers/timer-ti-dm: Extend pending interrupt ACK for gic config: arm-defconfig (https://download.01.org/0day-ci/archive/20220104/202= 201041817.pLd03apR-lkp(a)intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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 config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Darm SHELL=3D/bin/bash drivers/clocksource/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot 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 'va= l' set but not used [-Wunused-but-set-variable] 528 | u32 val; | ^~~ drivers/clocksource/timer-ti-dm-systimer.c: In function 'dmtimer_clockev= ent_init': drivers/clocksource/timer-ti-dm-systimer.c:671:46: warning: passing argu= ment 1 of 'irq_to_desc' makes integer from pointer without a cast [-Wint-co= nversion] 671 | clkev_irq_desc =3D 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 i= s 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 =3D 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(a)lists.01.org --===============2499910750439588180==--