From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6946160657275801869==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v2 1/4] panic: Add panic_in_progress helper Date: Thu, 27 Jan 2022 08:40:13 +0800 Message-ID: <202201270843.6F0l6Ntb-lkp@intel.com> In-Reply-To: <20220126230236.750229-2-stephen.s.brennan@oracle.com> List-Id: --===============6946160657275801869== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Stephen, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.17-rc1 next-20220125] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Stephen-Brennan/printk-red= uce-deadlocks-during-panic/20220127-070450 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = 0280e3c58f92b2fe0e8fbbdf8d386449168de4a8 config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/2022012= 7/202201270843.6F0l6Ntb-lkp(a)intel.com/config) compiler: riscv64-linux-gcc (GCC) 11.2.0 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/1a13d274a7781724644b4267d= ce99e45c9232a29 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Stephen-Brennan/printk-reduce-dead= locks-during-panic/20220127-070450 git checkout 1a13d274a7781724644b4267dce99e45c9232a29 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Driscv prepare If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/riscv/include/asm/atomic.h:19, from include/linux/atomic.h:7, from include/linux/panic.h:7, from include/asm-generic/bug.h:21, from arch/riscv/include/asm/bug.h:83, from include/linux/bug.h:5, from include/linux/page-flags.h:10, from kernel/bounds.c:10: arch/riscv/include/asm/atomic.h: In function 'arch_atomic_xchg_relaxed': >> arch/riscv/include/asm/cmpxchg.h:35:17: error: implicit declaration of f= unction 'BUILD_BUG' [-Werror=3Dimplicit-function-declaration] 35 | BUILD_BUG(); = \ | ^~~~~~~~~ arch/riscv/include/asm/atomic.h:249:16: note: in expansion of macro '__x= chg_relaxed' 249 | return __xchg_relaxed(&(v->counter), n, size); = \ | ^~~~~~~~~~~~~~ arch/riscv/include/asm/atomic.h:295:9: note: in expansion of macro 'ATOM= IC_OP' 295 | ATOMIC_OP(int, , 4) = \ | ^~~~~~~~~ arch/riscv/include/asm/atomic.h:299:1: note: in expansion of macro 'ATOM= IC_OPS' 299 | ATOMIC_OPS() | ^~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:121: kernel/bounds.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1191: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +/BUILD_BUG +35 arch/riscv/include/asm/cmpxchg.h fab957c11efe2f Palmer Dabbelt 2017-07-10 13 = 5ce6c1f3535fa8 Andrea Parri 2018-03-09 14 #define __xchg_relaxed(ptr, n= ew, size) \ fab957c11efe2f Palmer Dabbelt 2017-07-10 15 ({ \ fab957c11efe2f Palmer Dabbelt 2017-07-10 16 __typeof__(ptr) __ptr =3D (p= tr); \ fab957c11efe2f Palmer Dabbelt 2017-07-10 17 __typeof__(new) __new =3D (n= ew); \ fab957c11efe2f Palmer Dabbelt 2017-07-10 18 __typeof__(*(ptr)) __ret; = \ fab957c11efe2f Palmer Dabbelt 2017-07-10 19 switch (size) { \ fab957c11efe2f Palmer Dabbelt 2017-07-10 20 case 4: \ fab957c11efe2f Palmer Dabbelt 2017-07-10 21 __asm__ __volatile__ ( \ 5ce6c1f3535fa8 Andrea Parri 2018-03-09 22 " amoswap.w %0, %2, %1\n" = \ fab957c11efe2f Palmer Dabbelt 2017-07-10 23 : "=3Dr" (__ret), "+A" (*_= _ptr) \ fab957c11efe2f Palmer Dabbelt 2017-07-10 24 : "r" (__new) \ fab957c11efe2f Palmer Dabbelt 2017-07-10 25 : "memory"); \ fab957c11efe2f Palmer Dabbelt 2017-07-10 26 break; \ fab957c11efe2f Palmer Dabbelt 2017-07-10 27 case 8: \ fab957c11efe2f Palmer Dabbelt 2017-07-10 28 __asm__ __volatile__ ( \ 5ce6c1f3535fa8 Andrea Parri 2018-03-09 29 " amoswap.d %0, %2, %1\n" = \ fab957c11efe2f Palmer Dabbelt 2017-07-10 30 : "=3Dr" (__ret), "+A" (*_= _ptr) \ fab957c11efe2f Palmer Dabbelt 2017-07-10 31 : "r" (__new) \ fab957c11efe2f Palmer Dabbelt 2017-07-10 32 : "memory"); \ fab957c11efe2f Palmer Dabbelt 2017-07-10 33 break; \ fab957c11efe2f Palmer Dabbelt 2017-07-10 34 default: \ fab957c11efe2f Palmer Dabbelt 2017-07-10 @35 BUILD_BUG(); \ fab957c11efe2f Palmer Dabbelt 2017-07-10 36 } \ fab957c11efe2f Palmer Dabbelt 2017-07-10 37 __ret; \ fab957c11efe2f Palmer Dabbelt 2017-07-10 38 }) fab957c11efe2f Palmer Dabbelt 2017-07-10 39 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6946160657275801869==--