From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [tglx-devel:timers/cleanup 58/59] arch/x86/kernel/apic/hw_nmi.c:30:1: warning: control reaches end of non-void function
Date: Sun, 12 Jul 2026 02:23:08 +0200 [thread overview]
Message-ID: <202607120242.GGYE86Th-lkp@intel.com> (raw)
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
next reply other threads:[~2026-07-12 0:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-12 0:23 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-07-14 5:43 [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
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=202607120242.GGYE86Th-lkp@intel.com \
--to=lkp@intel.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.