From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============2565550513148471961==" MIME-Version: 1.0 From: Philip Li To: kbuild-all@lists.01.org Subject: Re: [linux-next:master 10017/14131] kernel/sched/cpuacct.c:350:3: error: invalid input size for constraint 'qi' Date: Tue, 02 Jun 2020 08:06:36 +0800 Message-ID: <20200602000636.GA28064@intel.com> In-Reply-To: List-Id: --===============2565550513148471961== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Mon, Jun 01, 2020 at 11:02:52AM -0700, Nick Desaulniers wrote: > Nevermind this failure, Clang doesn't support i386 yet (WIP) sorry for the noise, we will disable this. > = > On Mon, Jun 1, 2020 at 4:39 AM kbuild test robot wrote: > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next= .git master > > head: e7b08814b16b80a0bf76eeca16317f8c2ed23b8c > > commit: 12aa2587388de6697fd2e585ae6a90f70249540b [10017/14131] sched/cp= uacct: Use __this_cpu_add() instead of this_cpu_ptr() > > config: i386-randconfig-a012-20200601 (attached as .config) > > compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 23= 88a096e7865c043e83ece4e26654bd3d1a20d5) > > reproduce (this is a W=3D1 build): > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/s= bin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # install i386 cross compiling tool for clang build > > # apt-get install binutils-i386-linux-gnu > > git checkout 12aa2587388de6697fd2e585ae6a90f70249540b > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross = ARCH=3Di386 > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kbuild test robot > > > > All errors (new ones prefixed by >>, old ones prefixed by <<): > > > > >> kernel/sched/cpuacct.c:350:3: error: invalid input size for constrai= nt 'qi' > > __this_cpu_add(ca->cpuusage->usages[index], cputime); > > ^ > > include/linux/percpu-defs.h:458:2: note: expanded from macro '__this_cp= u_add' > > raw_cpu_add(pcp, val); = ^ > > include/linux/percpu-defs.h:422:32: note: expanded from macro 'raw_cpu_= add' > > #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, = pcp, val) > > ^ > > include/linux/percpu-defs.h:377:11: note: expanded from macro '__pcpu_s= ize_call' > > case 1: stem##1(variable, __VA_ARGS__);break; = ^ > > :35:1: note: expanded from here > > raw_cpu_add_1 > > ^ > > arch/x86/include/asm/percpu.h:401:34: note: expanded from macro 'raw_cp= u_add_1' > > #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) > > ^ > > arch/x86/include/asm/percpu.h:147:16: note: expanded from macro 'percpu= _add_op' > > : "qi" ((pao_T__)(val))); = ^ > > >> kernel/sched/cpuacct.c:350:3: error: invalid input size for constrai= nt 'qi' > > include/linux/percpu-defs.h:458:2: note: expanded from macro '__this_cp= u_add' > > raw_cpu_add(pcp, val); = ^ > > include/linux/percpu-defs.h:422:32: note: expanded from macro 'raw_cpu_= add' > > #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, = pcp, val) > > ^ > > include/linux/percpu-defs.h:378:11: note: expanded from macro '__pcpu_s= ize_call' > > case 2: stem##2(variable, __VA_ARGS__);break; = ^ > > :60:1: note: expanded from here > > raw_cpu_add_2 > > ^ > > arch/x86/include/asm/percpu.h:402:34: note: expanded from macro 'raw_cp= u_add_2' > > #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) > > ^ > > arch/x86/include/asm/percpu.h:147:16: note: expanded from macro 'percpu= _add_op' > > : "qi" ((pao_T__)(val))); = ^ > > >> kernel/sched/cpuacct.c:350:3: error: invalid input size for constrai= nt 'qi' > > include/linux/percpu-defs.h:458:2: note: expanded from macro '__this_cp= u_add' > > raw_cpu_add(pcp, val); = ^ > > include/linux/percpu-defs.h:422:32: note: expanded from macro 'raw_cpu_= add' > > #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, = pcp, val) > > ^ > > include/linux/percpu-defs.h:379:11: note: expanded from macro '__pcpu_s= ize_call' > > case 4: stem##4(variable, __VA_ARGS__);break; = ^ > > :85:1: note: expanded from here > > raw_cpu_add_4 > > ^ > > arch/x86/include/asm/percpu.h:403:34: note: expanded from macro 'raw_cp= u_add_4' > > #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) > > ^ > > arch/x86/include/asm/percpu.h:147:16: note: expanded from macro 'percpu= _add_op' > > : "qi" ((pao_T__)(val))); = ^ > > kernel/sched/cpuacct.c:366:3: error: invalid input size for constraint = 'qi' > > __this_cpu_add(ca->cpustat->cpustat[index], val); > > ^ > > include/linux/percpu-defs.h:458:2: note: expanded from macro '__this_cp= u_add' > > raw_cpu_add(pcp, val); = ^ > > include/linux/percpu-defs.h:422:32: note: expanded from macro 'raw_cpu_= add' > > #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, = pcp, val) > > ^ > > include/linux/percpu-defs.h:377:11: note: expanded from macro '__pcpu_s= ize_call' > > case 1: stem##1(variable, __VA_ARGS__);break; = ^ > > :113:1: note: expanded from here > > raw_cpu_add_1 > > ^ > > arch/x86/include/asm/percpu.h:401:34: note: expanded from macro 'raw_cp= u_add_1' > > #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) > > ^ > > arch/x86/include/asm/percpu.h:147:16: note: expanded from macro 'percpu= _add_op' > > : "qi" ((pao_T__)(val))); = ^ > > kernel/sched/cpuacct.c:366:3: error: invalid input size for constraint = 'qi' > > include/linux/percpu-defs.h:458:2: note: expanded from macro '__this_cp= u_add' > > raw_cpu_add(pcp, val); = ^ > > include/linux/percpu-defs.h:422:32: note: expanded from macro 'raw_cpu_= add' > > #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, = pcp, val) > > ^ > > include/linux/percpu-defs.h:378:11: note: expanded from macro '__pcpu_s= ize_call' > > case 2: stem##2(variable, __VA_ARGS__);break; = ^ > > :138:1: note: expanded from here > > raw_cpu_add_2 > > ^ > > arch/x86/include/asm/percpu.h:402:34: note: expanded from macro 'raw_cp= u_add_2' > > #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) > > ^ > > arch/x86/include/asm/percpu.h:147:16: note: expanded from macro 'percpu= _add_op' > > : "qi" ((pao_T__)(val))); = ^ > > kernel/sched/cpuacct.c:366:3: error: invalid input size for constraint = 'qi' > > include/linux/percpu-defs.h:458:2: note: expanded from macro '__this_cp= u_add' > > raw_cpu_add(pcp, val); = ^ > > include/linux/percpu-defs.h:422:32: note: expanded from macro 'raw_cpu_= add' > > #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, = pcp, val) > > ^ > > include/linux/percpu-defs.h:379:11: note: expanded from macro '__pcpu_s= ize_call' > > case 4: stem##4(variable, __VA_ARGS__);break; = ^ > > :163:1: note: expanded from here > > raw_cpu_add_4 > > ^ > > arch/x86/include/asm/percpu.h:403:34: note: expanded from macro 'raw_cp= u_add_4' > > #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) > > ^ > > arch/x86/include/asm/percpu.h:147:16: note: expanded from macro 'percpu= _add_op' > > : "qi" ((pao_T__)(val))); = ^ > > 6 errors generated. > > > > vim +/qi +350 kernel/sched/cpuacct.c > > > > 332 > > 333 /* > > 334 * charge this task's execution time to its accounting group. > > 335 * > > 336 * called with rq->lock held. > > 337 */ > > 338 void cpuacct_charge(struct task_struct *tsk, u64 cputime) > > 339 { > > 340 struct cpuacct *ca; > > 341 int index =3D CPUACCT_STAT_SYSTEM; > > 342 struct pt_regs *regs =3D task_pt_regs(tsk); > > 343 > > 344 if (regs && user_mode(regs)) > > 345 index =3D CPUACCT_STAT_USER; > > 346 > > 347 rcu_read_lock(); > > 348 > > 349 for (ca =3D task_ca(tsk); ca; ca =3D parent_ca(ca)) > > > 350 __this_cpu_add(ca->cpuusage->usages[index], cpu= time); > > 351 > > 352 rcu_read_unlock(); > > 353 } > > 354 > > > > --- > > 0-DAY CI Kernel Test Service, Intel Corporation > > https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org > > > > -- > > You received this message because you are subscribed to the Google Grou= ps "Clang Built Linux" group. > > To unsubscribe from this group and stop receiving emails from it, send = an email to clang-built-linux+unsubscribe(a)googlegroups.com. > > To view this discussion on the web visit https://groups.google.com/d/ms= gid/clang-built-linux/202006011945.SmpRQmd0%25lkp%40intel.com. > = > = > = > -- = > Thanks, > ~Nick Desaulniers --===============2565550513148471961==--