lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207201330.PNv5wnSX-lkp@intel.com>
Date:   Wed, 20 Jul 2022 13:44:19 +0800
From:   kernel test robot <lkp@...el.com>
To:     Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [rt-devel:linux-5.19.y-rt-rebase 9/51] kernel/sched/core.c:3058:1:
 warning: '__sched_setaffinity' used but never defined

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.19.y-rt-rebase
head:   398bbc77845fdc2ffca4a523eeadd5707338b0d3
commit: 088b0c2db600fb1a2b5687a9a4d1a069a624eee7 [9/51] sched: Consider task_struct::saved_state in wait_task_inactive().
config: s390-randconfig-r044-20220718 (https://download.01.org/0day-ci/archive/20220720/202207201330.PNv5wnSX-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 12.1.0
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://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/commit/?id=088b0c2db600fb1a2b5687a9a4d1a069a624eee7
        git remote add rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
        git fetch --no-tags rt-devel linux-5.19.y-rt-rebase
        git checkout 088b0c2db600fb1a2b5687a9a4d1a069a624eee7
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash kernel/sched/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   kernel/sched/core.c: In function 'wait_task_inactive':
   kernel/sched/core.c:11195:2: error: unterminated argument list invoking macro "if"
   11195 | }
         |  ^
   kernel/sched/core.c:11196: error: expected '(' at end of input
   kernel/sched/core.c:3310:33: note: '-Wmisleading-indentation' is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
    3310 |                                 if (READ_ONCE(p->__state != match_state)
         |                                 ^~
   kernel/sched/core.c:3310:33: note: adding '-flarge-source-files' will allow for more column-tracking support, at the expense of compilation time and memory
   kernel/sched/core.c:3310:33: error: expected declaration or statement at end of input
   kernel/sched/core.c:3308:38: warning: unused variable 'mismatch' [-Wunused-variable]
    3308 |                                 bool mismatch = false;
         |                                      ^~~~~~~~
   kernel/sched/core.c:3310:33: error: expected declaration or statement at end of input
    3310 |                                 if (READ_ONCE(p->__state != match_state)
         |                                 ^~
   kernel/sched/core.c:3310:33: error: expected declaration or statement at end of input
   kernel/sched/core.c:3310:33: error: expected declaration or statement at end of input
   kernel/sched/core.c:3283:14: warning: unused variable 'update_ncsw' [-Wunused-variable]
    3283 |         bool update_ncsw;
         |              ^~~~~~~~~~~
   kernel/sched/core.c:3282:14: warning: unused variable 'saved_state_match' [-Wunused-variable]
    3282 |         bool saved_state_match;
         |              ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:3280:23: warning: unused variable 'ncsw' [-Wunused-variable]
    3280 |         unsigned long ncsw;
         |                       ^~~~
   kernel/sched/core.c:3279:25: warning: unused variable 'rf' [-Wunused-variable]
    3279 |         struct rq_flags rf;
         |                         ^~
   kernel/sched/core.c:3278:22: warning: unused variable 'queued' [-Wunused-variable]
    3278 |         int running, queued;
         |                      ^~~~~~
   kernel/sched/core.c:3278:13: warning: unused variable 'running' [-Wunused-variable]
    3278 |         int running, queued;
         |             ^~~~~~~
   kernel/sched/core.c: At top level:
>> kernel/sched/core.c:3058:1: warning: '__sched_setaffinity' used but never defined
    3058 | __sched_setaffinity(struct task_struct *p, const struct cpumask *mask);
         | ^~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:2210:13: warning: 'migrate_disable_switch' defined but not used [-Wunused-function]
    2210 | static void migrate_disable_switch(struct rq *rq, struct task_struct *p)
         |             ^~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:2142:12: warning: 'effective_prio' defined but not used [-Wunused-function]
    2142 | static int effective_prio(struct task_struct *p)
         |            ^~~~~~~~~~~~~~
   kernel/sched/core.c:2030:13: warning: '__setscheduler_uclamp' defined but not used [-Wunused-function]
    2030 | static void __setscheduler_uclamp(struct task_struct *p,
         |             ^~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:1272:13: warning: 'set_load_weight' defined but not used [-Wunused-function]
    1272 | static void set_load_weight(struct task_struct *p, bool update_load)
         |             ^~~~~~~~~~~~~~~
   kernel/sched/core.c:1165:13: warning: 'nohz_csd_func' defined but not used [-Wunused-function]
    1165 | static void nohz_csd_func(void *info)
         |             ^~~~~~~~~~~~~
   kernel/sched/core.c:931:13: warning: 'set_nr_if_polling' defined but not used [-Wunused-function]
     931 | static bool set_nr_if_polling(struct task_struct *p)
         |             ^~~~~~~~~~~~~~~~~
   kernel/sched/core.c:851:13: warning: 'hrtick_rq_init' defined but not used [-Wunused-function]
     851 | static void hrtick_rq_init(struct rq *rq)
         |             ^~~~~~~~~~~~~~
   kernel/sched/core.c:761:13: warning: 'hrtick_clear' defined but not used [-Wunused-function]
     761 | static void hrtick_clear(struct rq *rq)
         |             ^~~~~~~~~~~~
   kernel/sched/core.c:282:28: warning: 'sched_core_next' defined but not used [-Wunused-function]
     282 | static struct task_struct *sched_core_next(struct task_struct *p, unsigned long cookie)
         |                            ^~~~~~~~~~~~~~~
   kernel/sched/core.c:268:28: warning: 'sched_core_find' defined but not used [-Wunused-function]
     268 | static struct task_struct *sched_core_find(struct rq *rq, unsigned long cookie)
         |                            ^~~~~~~~~~~~~~~


vim +/__sched_setaffinity +3058 kernel/sched/core.c

07ec77a1d4e825 Will Deacon 2021-07-30  3056  
07ec77a1d4e825 Will Deacon 2021-07-30  3057  static int
07ec77a1d4e825 Will Deacon 2021-07-30 @3058  __sched_setaffinity(struct task_struct *p, const struct cpumask *mask);
07ec77a1d4e825 Will Deacon 2021-07-30  3059  

:::::: The code at line 3058 was first introduced by commit
:::::: 07ec77a1d4e82526e1588979fff2f024f8e96df2 sched: Allow task CPU affinity to be restricted on asymmetric systems

:::::: TO: Will Deacon <will@...nel.org>
:::::: CC: Peter Zijlstra <peterz@...radead.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ