[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <202205010106.06xRBR2C-lkp@intel.com>
Date: Sun, 1 May 2022 01:51:52 +0800
From: kernel test robot <lkp@...el.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
x86@...nel.org, "Rafael J. Wysocki" <rjw@...ysocki.net>
Subject: [tip:x86/cleanups 7/11] arch/x86/kernel/cpu/aperfmperf.c:502:6:
warning: no previous prototype for 'arch_scale_freq_tick'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cleanups
head: fb4c77c21aba03677f283acda3cae748ef866abf
commit: bb6e89df9028b2fab0ce6ac71cd9ef25b6ada32d [7/11] x86/aperfmperf: Make parts of the frequency invariance code unconditional
config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20220501/202205010106.06xRBR2C-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=bb6e89df9028b2fab0ce6ac71cd9ef25b6ada32d
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip x86/cleanups
git checkout bb6e89df9028b2fab0ce6ac71cd9ef25b6ada32d
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/cpu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/cpu/aperfmperf.c:502:6: warning: no previous prototype for 'arch_scale_freq_tick' [-Wmissing-prototypes]
502 | void arch_scale_freq_tick(void)
| ^~~~~~~~~~~~~~~~~~~~
vim +/arch_scale_freq_tick +502 arch/x86/kernel/cpu/aperfmperf.c
73a5fa7d51366a Thomas Gleixner 2022-04-15 501
73a5fa7d51366a Thomas Gleixner 2022-04-15 @502 void arch_scale_freq_tick(void)
73a5fa7d51366a Thomas Gleixner 2022-04-15 503 {
73a5fa7d51366a Thomas Gleixner 2022-04-15 504 struct aperfmperf *s = this_cpu_ptr(&cpu_samples);
73a5fa7d51366a Thomas Gleixner 2022-04-15 505 u64 acnt, mcnt, aperf, mperf;
73a5fa7d51366a Thomas Gleixner 2022-04-15 506
bb6e89df9028b2 Thomas Gleixner 2022-04-15 507 if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF))
73a5fa7d51366a Thomas Gleixner 2022-04-15 508 return;
73a5fa7d51366a Thomas Gleixner 2022-04-15 509
73a5fa7d51366a Thomas Gleixner 2022-04-15 510 rdmsrl(MSR_IA32_APERF, aperf);
73a5fa7d51366a Thomas Gleixner 2022-04-15 511 rdmsrl(MSR_IA32_MPERF, mperf);
73a5fa7d51366a Thomas Gleixner 2022-04-15 512 acnt = aperf - s->aperf;
73a5fa7d51366a Thomas Gleixner 2022-04-15 513 mcnt = mperf - s->mperf;
73a5fa7d51366a Thomas Gleixner 2022-04-15 514
73a5fa7d51366a Thomas Gleixner 2022-04-15 515 s->aperf = aperf;
73a5fa7d51366a Thomas Gleixner 2022-04-15 516 s->mperf = mperf;
73a5fa7d51366a Thomas Gleixner 2022-04-15 517
73a5fa7d51366a Thomas Gleixner 2022-04-15 518 scale_freq_tick(acnt, mcnt);
73a5fa7d51366a Thomas Gleixner 2022-04-15 519 }
bb6e89df9028b2 Thomas Gleixner 2022-04-15 520
:::::: The code at line 502 was first introduced by commit
:::::: 73a5fa7d51366a549a9f2e3ee875ae51aa0b5580 x86/aperfmperf: Restructure arch_scale_freq_tick()
:::::: TO: Thomas Gleixner <tglx@...utronix.de>
:::::: CC: Thomas Gleixner <tglx@...utronix.de>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists