From: kernel test robot <[email protected]>
To: Thomas Gleixner <[email protected]>
Cc: [email protected], [email protected],
GNU/Weeb Mailing List <[email protected]>,
[email protected]
Subject: [ammarfaizi2-block:tglx/devel/x86/amperf 7/10] arch/x86/kernel/cpu/aperfmperf.c:502:6: warning: no previous prototype for function 'arch_scale_freq_tick'
Date: Wed, 20 Apr 2022 12:04:42 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
tree: https://github.com/ammarfaizi2/linux-block tglx/devel/x86/amperf
head: 9968b9bf69c36ec939d25ac6e0cc8e1d52075490
commit: 1d1a6fffce4ecc387d657ef959e5b7519098265e [7/10] x86/aperfmperf: Make parts of the frequency invariance code unconditional
config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20220420/[email protected]/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project bac6cd5bf85669e3376610cfc4c4f9ca015e7b9b)
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
# https://github.com/ammarfaizi2/linux-block/commit/1d1a6fffce4ecc387d657ef959e5b7519098265e
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block tglx/devel/x86/amperf
git checkout 1d1a6fffce4ecc387d657ef959e5b7519098265e
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/cpu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/cpu/aperfmperf.c:502:6: warning: no previous prototype for function 'arch_scale_freq_tick' [-Wmissing-prototypes]
void arch_scale_freq_tick(void)
^
arch/x86/kernel/cpu/aperfmperf.c:502:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void arch_scale_freq_tick(void)
^
static
1 warning generated.
vim +/arch_scale_freq_tick +502 arch/x86/kernel/cpu/aperfmperf.c
a700c9188e7c84 Thomas Gleixner 2022-04-13 501
a700c9188e7c84 Thomas Gleixner 2022-04-13 @502 void arch_scale_freq_tick(void)
a700c9188e7c84 Thomas Gleixner 2022-04-13 503 {
a700c9188e7c84 Thomas Gleixner 2022-04-13 504 struct aperfmperf *s = this_cpu_ptr(&cpu_samples);
a700c9188e7c84 Thomas Gleixner 2022-04-13 505 u64 acnt, mcnt, aperf, mperf;
a700c9188e7c84 Thomas Gleixner 2022-04-13 506
1d1a6fffce4ecc Thomas Gleixner 2022-04-13 507 if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF))
a700c9188e7c84 Thomas Gleixner 2022-04-13 508 return;
a700c9188e7c84 Thomas Gleixner 2022-04-13 509
a700c9188e7c84 Thomas Gleixner 2022-04-13 510 rdmsrl(MSR_IA32_APERF, aperf);
a700c9188e7c84 Thomas Gleixner 2022-04-13 511 rdmsrl(MSR_IA32_MPERF, mperf);
a700c9188e7c84 Thomas Gleixner 2022-04-13 512 acnt = aperf - s->aperf;
a700c9188e7c84 Thomas Gleixner 2022-04-13 513 mcnt = mperf - s->mperf;
a700c9188e7c84 Thomas Gleixner 2022-04-13 514
a700c9188e7c84 Thomas Gleixner 2022-04-13 515 s->aperf = aperf;
a700c9188e7c84 Thomas Gleixner 2022-04-13 516 s->mperf = mperf;
a700c9188e7c84 Thomas Gleixner 2022-04-13 517
a700c9188e7c84 Thomas Gleixner 2022-04-13 518 scale_freq_tick(acnt, mcnt);
a700c9188e7c84 Thomas Gleixner 2022-04-13 519 }
1d1a6fffce4ecc Thomas Gleixner 2022-04-13 520
:::::: The code at line 502 was first introduced by commit
:::::: a700c9188e7c842054b480a303988ea37e111e8b x86/aperfmperf: Restructure arch_scale_freq_tick()
:::::: TO: Thomas Gleixner <[email protected]>
:::::: CC: Thomas Gleixner <[email protected]>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-04-20 4:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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 \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox