From: kernel test robot <lkp@intel.com>
To: Srinath Sridharan <srinathsr@google.com>
Cc: kbuild-all@lists.01.org,
GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>,
linux-kernel@vger.kernel.org,
Chris Redpath <chris.redpath@arm.com>,
martin_liu <martin_liu@htc.com>,
Andres Oportus <andresoportus@google.com>
Subject: [ammarfaizi2-block:google/android/kernel/common/deprecated/android-4.14-p-release 319/6167] kernel/sched/fair.c:5461:15: warning: no previous declaration for 'capacity_curr_of'
Date: Thu, 3 Mar 2022 11:12:40 +0800 [thread overview]
Message-ID: <202203031041.POPBDV5c-lkp@intel.com> (raw)
Hi Srinath,
FYI, the error/warning still remains.
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/deprecated/android-4.14-p-release
head: 0ca5d5ac9152d01b3494fb2efb5390319eb9904a
commit: 7f6fb825d6bc1e980181ca19adb2ef090001c882 [319/6167] ANDROID: sched: EAS: take cstate into account when selecting idle core
config: i386-randconfig-r024-20211019 (https://download.01.org/0day-ci/archive/20220303/202203031041.POPBDV5c-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/7f6fb825d6bc1e980181ca19adb2ef090001c882
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/deprecated/android-4.14-p-release
git checkout 7f6fb825d6bc1e980181ca19adb2ef090001c882
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash kernel/sched/ kernel/trace/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from kernel/sched/fair.c:25:0:
include/linux/sched/topology.h:196:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^~~~~
In file included from kernel/sched/fair.c:39:0:
kernel/sched/sched.h:1094:34: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const struct sched_group_energy const *sge;
^~~~~
kernel/sched/fair.c:3407:5: warning: no previous declaration for 'update_rt_rq_load_avg' [-Wmissing-declarations]
int update_rt_rq_load_avg(u64 now, int cpu, struct rt_rq *rt_rq, int running)
^~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:3545:6: warning: no previous declaration for 'sync_entity_load_avg' [-Wmissing-declarations]
void sync_entity_load_avg(struct sched_entity *se)
^~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:3558:6: warning: no previous declaration for 'remove_entity_load_avg' [-Wmissing-declarations]
void remove_entity_load_avg(struct sched_entity *se)
^~~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/fair.c:5461:15: warning: no previous declaration for 'capacity_curr_of' [-Wmissing-declarations]
unsigned long capacity_curr_of(int cpu)
^~~~~~~~~~~~~~~~
kernel/sched/fair.c:5558:34: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const struct sched_group_energy const *sge)
^~~~~
kernel/sched/fair.c: In function 'select_idle_sibling_cstate_aware':
kernel/sched/fair.c:6339:17: error: implicit declaration of function 'boosted_task_util'; did you mean 'task_util'? [-Werror=implicit-function-declaration]
new_usage = boosted_task_util(p);
^~~~~~~~~~~~~~~~~
task_util
arch/x86/include/asm/bitops.h: Assembler messages:
arch/x86/include/asm/bitops.h:225: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
cc1: some warnings being treated as errors
vim +/capacity_curr_of +5461 kernel/sched/fair.c
5456
5457 /*
5458 * Returns the current capacity of cpu after applying both
5459 * cpu and freq scaling.
5460 */
> 5461 unsigned long capacity_curr_of(int cpu)
5462 {
5463 unsigned long max_cap = cpu_rq(cpu)->cpu_capacity_orig;
5464 unsigned long scale_freq = arch_scale_freq_capacity(NULL, cpu);
5465
5466 return cap_scale(max_cap, scale_freq);
5467 }
5468
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-03-03 3:13 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 \
--in-reply-to=202203031041.POPBDV5c-lkp@intel.com \
--to=lkp@intel.com \
--cc=andresoportus@google.com \
--cc=chris.redpath@arm.com \
--cc=gwml@vger.gnuweeb.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin_liu@htc.com \
--cc=srinathsr@google.com \
/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