Content-Type: multipart/mixed; boundary="===============2472905023035732822==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [RFC 15/16] sched/fair: Account kthread runtime debt for CFS bandwidth Date: Thu, 06 Jan 2022 14:47:17 +0800 Message-ID: <202201061412.xko6OiVF-lkp@intel.com> In-Reply-To: <20220106004656.126790-16-daniel.m.jordan@oracle.com> List-Id: --===============2472905023035732822== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Daniel, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on 7d2a07b769330c34b4deabeed939325c77a7ec2f] url: https://github.com/0day-ci/linux/commits/Daniel-Jordan/padata-vfio-= sched-Multithreaded-VFIO-page-pinning/20220106-084934 base: 7d2a07b769330c34b4deabeed939325c77a7ec2f config: hexagon-buildonly-randconfig-r001-20220105 (https://download.01.org= /0day-ci/archive/20220106/202201061412.xko6OiVF-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ca7ffe= 09dc6e525109e3cd570cc5182ce568be13) reproduce (this is a W=3D1 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/0day-ci/linux/commit/4c1eb3c284a7aac84110e3197= 00d89e847dd0874 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Daniel-Jordan/padata-vfio-sched-Mu= ltithreaded-VFIO-page-pinning/20220106-084934 git checkout 4c1eb3c284a7aac84110e319700d89e847dd0874 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dhexagon SHELL=3D/bin/bash kernel/sched/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): kernel/sched/core.c:3282:13: warning: variable 'rq' set but not used [-W= unused-but-set-variable] struct rq *rq; ^ >> kernel/sched/core.c:10199:6: warning: no previous prototype for function= 'cpu_cgroup_remote_begin' [-Wmissing-prototypes] void cpu_cgroup_remote_begin(struct task_struct *p, ^ kernel/sched/core.c:10199:1: note: declare 'static' if the function is n= ot intended to be used outside of this translation unit void cpu_cgroup_remote_begin(struct task_struct *p, ^ static = >> kernel/sched/core.c:10216:6: warning: no previous prototype for function= 'cpu_cgroup_remote_charge' [-Wmissing-prototypes] void cpu_cgroup_remote_charge(struct task_struct *p, ^ kernel/sched/core.c:10216:1: note: declare 'static' if the function is n= ot intended to be used outside of this translation unit void cpu_cgroup_remote_charge(struct task_struct *p, ^ static = kernel/sched/core.c:3272:20: warning: unused function 'rq_has_pinned_tas= ks' [-Wunused-function] static inline bool rq_has_pinned_tasks(struct rq *rq) ^ kernel/sched/core.c:5123:20: warning: unused function 'sched_tick_start'= [-Wunused-function] static inline void sched_tick_start(int cpu) { } ^ kernel/sched/core.c:5124:20: warning: unused function 'sched_tick_stop' = [-Wunused-function] static inline void sched_tick_stop(int cpu) { } ^ kernel/sched/core.c:5853:20: warning: unused function 'sched_core_cpu_st= arting' [-Wunused-function] static inline void sched_core_cpu_starting(unsigned int cpu) {} ^ kernel/sched/core.c:5854:20: warning: unused function 'sched_core_cpu_de= activate' [-Wunused-function] static inline void sched_core_cpu_deactivate(unsigned int cpu) {} ^ kernel/sched/core.c:5855:20: warning: unused function 'sched_core_cpu_dy= ing' [-Wunused-function] static inline void sched_core_cpu_dying(unsigned int cpu) {} ^ 9 warnings generated. vim +/cpu_cgroup_remote_begin +10199 kernel/sched/core.c 10185 = 10186 /** 10187 * cpu_cgroup_remote_begin - begin charging p's CPU usage to a remot= e css 10188 * @p: the kernel thread whose CPU usage should be accounted 10189 * @css: the css to which the CPU usage should be accounted 10190 * 10191 * Begin charging a kernel thread's CPU usage to a remote (non-root)= task group 10192 * to account CPU time that the kernel thread spends working on beha= lf of the 10193 * group. Pair with at least one subsequent call to cpu_cgroup_remo= te_charge() 10194 * to complete the charge. 10195 * 10196 * Supports CFS bandwidth and cgroup2 CPU accounting stats but not w= eight-based 10197 * control for now. 10198 */ 10199 void cpu_cgroup_remote_begin(struct task_struct *p, 10200 struct cgroup_subsys_state *css) 10201 { 10202 if (p->sched_class =3D=3D &fair_sched_class) 10203 cpu_cgroup_remote_begin_fair(p, css_tg(css)); 10204 } 10205 = 10206 /** 10207 * cpu_cgroup_remote_charge - account p's CPU usage to a remote css 10208 * @p: the kernel thread whose CPU usage should be accounted 10209 * @css: the css to which the CPU usage should be accounted 10210 * 10211 * Account a kernel thread's CPU usage to a remote (non-root) task g= roup. Pair 10212 * with a previous call to cpu_cgroup_remote_begin() with the same @= p and @css. 10213 * This may be invoked multiple times after the initial 10214 * cpu_cgroup_remote_begin() to account additional CPU usage. 10215 */ 10216 void cpu_cgroup_remote_charge(struct task_struct *p, 10217 struct cgroup_subsys_state *css) 10218 { 10219 if (p->sched_class =3D=3D &fair_sched_class) 10220 cpu_cgroup_remote_charge_fair(p, css_tg(css)); 10221 } 10222 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============2472905023035732822==--