oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [peterz-queue:sched/eevdf2 9/13] kernel/sched/sched.h:2036:24: error: implicit declaration of function 'static_branch_PRESERVE_LAG'; did you mean 'static_branch_EEVDF'?
@ 2023-03-13 12:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-13 12:18 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/eevdf2
head:   5734abcb1bd3cbd294000aeac90aeebaa85bcd13
commit: f8a629a6be085929177393b769505b277e9c9171 [9/13] sched: Commit to lag based placement
config: x86_64-randconfig-r006-20230313 (https://download.01.org/0day-ci/archive/20230313/202303132020.4wMf3VYD-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=f8a629a6be085929177393b769505b277e9c9171
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/eevdf2
        git checkout f8a629a6be085929177393b769505b277e9c9171
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303132020.4wMf3VYD-lkp@intel.com/

Note: the peterz-queue/sched/eevdf2 HEAD 5734abcb1bd3cbd294000aeac90aeebaa85bcd13 builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   kernel/sched/fair.c:937:5: warning: no previous prototype for 'sched_update_scaling' [-Wmissing-prototypes]
     937 | int sched_update_scaling(void)
         |     ^~~~~~~~~~~~~~~~~~~~
   In file included from kernel/sched/fair.c:56:
   kernel/sched/fair.c: In function 'dequeue_entity':
>> kernel/sched/sched.h:2036:24: error: implicit declaration of function 'static_branch_PRESERVE_LAG'; did you mean 'static_branch_EEVDF'? [-Werror=implicit-function-declaration]
    2036 | #define sched_feat(x) (static_branch_##x(&sched_feat_keys[__SCHED_FEAT_##x]))
         |                        ^~~~~~~~~~~~~~
   kernel/sched/fair.c:5138:13: note: in expansion of macro 'sched_feat'
    5138 |         if (sched_feat(PRESERVE_LAG) && (flags & DEQUEUE_SLEEP))
         |             ^~~~~~~~~~
>> kernel/sched/sched.h:2036:59: error: '__SCHED_FEAT_PRESERVE_LAG' undeclared (first use in this function); did you mean '__SCHED_FEAT_EEVDF'?
    2036 | #define sched_feat(x) (static_branch_##x(&sched_feat_keys[__SCHED_FEAT_##x]))
         |                                                           ^~~~~~~~~~~~~
   kernel/sched/fair.c:5138:13: note: in expansion of macro 'sched_feat'
    5138 |         if (sched_feat(PRESERVE_LAG) && (flags & DEQUEUE_SLEEP))
         |             ^~~~~~~~~~
   kernel/sched/sched.h:2036:59: note: each undeclared identifier is reported only once for each function it appears in
    2036 | #define sched_feat(x) (static_branch_##x(&sched_feat_keys[__SCHED_FEAT_##x]))
         |                                                           ^~~~~~~~~~~~~
   kernel/sched/fair.c:5138:13: note: in expansion of macro 'sched_feat'
    5138 |         if (sched_feat(PRESERVE_LAG) && (flags & DEQUEUE_SLEEP))
         |             ^~~~~~~~~~
   cc1: some warnings being treated as errors


vim +2036 kernel/sched/sched.h

f8b6d1cc7dc15c Peter Zijlstra  2011-07-06  2034  
c5905afb0ee655 Ingo Molnar     2012-02-24  2035  extern struct static_key sched_feat_keys[__SCHED_FEAT_NR];
f8b6d1cc7dc15c Peter Zijlstra  2011-07-06 @2036  #define sched_feat(x) (static_branch_##x(&sched_feat_keys[__SCHED_FEAT_##x]))
765cc3a4b224e2 Patrick Bellasi 2017-11-08  2037  

:::::: The code at line 2036 was first introduced by commit
:::::: f8b6d1cc7dc15cf3de538b864eefaedad7a84d85 sched: Use jump_labels for sched_feat

:::::: TO: Peter Zijlstra <a.p.zijlstra@chello.nl>
:::::: CC: Ingo Molnar <mingo@elte.hu>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

only message in thread, other threads:[~2023-03-13 12:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-13 12:18 [peterz-queue:sched/eevdf2 9/13] kernel/sched/sched.h:2036:24: error: implicit declaration of function 'static_branch_PRESERVE_LAG'; did you mean 'static_branch_EEVDF'? 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;
as well as URLs for NNTP newsgroup(s).