All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:timers/cleanup 58/59] arch/x86/kernel/apic/hw_nmi.c:30:1: warning: control reaches end of non-void function
@ 2026-07-12  0:23 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-07-12  0:23 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git timers/cleanup
head:   0ad363c8e014568032d53fe2c7ab288de68373f4
commit: 27019f00127af90a16c3b8c54e976cdc8a711b0a [58/59] x86: Select ARCH_HAS_RANDOM_ENTROPY
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260712/202607120242.GGYE86Th-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/20260712/202607120242.GGYE86Th-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/202607120242.GGYE86Th-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/x86/kernel/apic/hw_nmi.c: In function 'hw_nmi_get_sample_period':
   arch/x86/kernel/apic/hw_nmi.c:29:22: error: 'cpu_khz' undeclared (first use in this function)
      29 |         return (u64)(cpu_khz) * 1000 * watchdog_thresh;
         |                      ^~~~~~~
   arch/x86/kernel/apic/hw_nmi.c:29:22: note: each undeclared identifier is reported only once for each function it appears in
>> arch/x86/kernel/apic/hw_nmi.c:30:1: warning: control reaches end of non-void function [-Wreturn-type]
      30 | }
         | ^


vim +30 arch/x86/kernel/apic/hw_nmi.c

28b8235238fa39 Dave Hansen          2023-08-09  25  
05a4a95279311c Nicholas Piggin      2017-07-12  26  #ifdef CONFIG_HARDLOCKUP_DETECTOR_PERF
4eec42f3920430 Mandeep Singh Baines 2011-05-22  27  u64 hw_nmi_get_sample_period(int watchdog_thresh)
504d7cf10ee42b Don Zickus           2010-02-12  28  {
4eec42f3920430 Mandeep Singh Baines 2011-05-22  29  	return (u64)(cpu_khz) * 1000 * watchdog_thresh;
504d7cf10ee42b Don Zickus           2010-02-12 @30  }
5f2b0ba4d94b3a Don Zickus           2010-11-12  31  #endif
504d7cf10ee42b Don Zickus           2010-02-12  32  

:::::: The code at line 30 was first introduced by commit
:::::: 504d7cf10ee42bb76b9556859f23d4121dee0a77 nmi_watchdog: Compile and portability fixes

:::::: TO: Don Zickus <dzickus@redhat.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

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

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

* [tglx-devel:timers/cleanup 58/59] arch/x86/kernel/apic/hw_nmi.c:30:1: warning: control reaches end of non-void function
@ 2026-07-14  5:43 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-07-14  5:43 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git timers/cleanup
head:   0ad363c8e014568032d53fe2c7ab288de68373f4
commit: 27019f00127af90a16c3b8c54e976cdc8a711b0a [58/59] x86: Select ARCH_HAS_RANDOM_ENTROPY
config: i386-randconfig-141-20260713 (https://download.01.org/0day-ci/archive/20260714/202607141354.j2DgSzBp-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9185-gbcc58b9c
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260714/202607141354.j2DgSzBp-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/202607141354.j2DgSzBp-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/x86/kernel/apic/hw_nmi.c: In function 'hw_nmi_get_sample_period':
   arch/x86/kernel/apic/hw_nmi.c:29:22: error: 'cpu_khz' undeclared (first use in this function)
      29 |         return (u64)(cpu_khz) * 1000 * watchdog_thresh;
         |                      ^~~~~~~
   arch/x86/kernel/apic/hw_nmi.c:29:22: note: each undeclared identifier is reported only once for each function it appears in
>> arch/x86/kernel/apic/hw_nmi.c:30:1: warning: control reaches end of non-void function [-Wreturn-type]
      30 | }
         | ^


vim +30 arch/x86/kernel/apic/hw_nmi.c

28b8235238fa39 Dave Hansen          2023-08-09  25  
05a4a95279311c Nicholas Piggin      2017-07-12  26  #ifdef CONFIG_HARDLOCKUP_DETECTOR_PERF
4eec42f3920430 Mandeep Singh Baines 2011-05-22  27  u64 hw_nmi_get_sample_period(int watchdog_thresh)
504d7cf10ee42b Don Zickus           2010-02-12  28  {
4eec42f3920430 Mandeep Singh Baines 2011-05-22 @29  	return (u64)(cpu_khz) * 1000 * watchdog_thresh;
504d7cf10ee42b Don Zickus           2010-02-12 @30  }
5f2b0ba4d94b3a Don Zickus           2010-11-12  31  #endif
504d7cf10ee42b Don Zickus           2010-02-12  32  

:::::: The code at line 30 was first introduced by commit
:::::: 504d7cf10ee42bb76b9556859f23d4121dee0a77 nmi_watchdog: Compile and portability fixes

:::::: TO: Don Zickus <dzickus@redhat.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

--
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-07-14  5:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-12  0:23 [tglx-devel:timers/cleanup 58/59] arch/x86/kernel/apic/hw_nmi.c:30:1: warning: control reaches end of non-void function kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-07-14  5:43 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.