GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
* [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'
@ 2022-03-03  3:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-03  3:12 UTC (permalink / raw)
  To: Srinath Sridharan
  Cc: kbuild-all, GNU/Weeb Mailing List, linux-kernel, Chris Redpath,
	martin_liu, Andres Oportus

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/[email protected]/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 <[email protected]>

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/[email protected]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-03  3:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-03  3:12 [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' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox