tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 5d562c48a21eeb029a8fd3f18e1b31fd83660474 commit: e634ac4a8aaab37bdc69177df9b40acf92eccc6d [11911/13282] crypto: api - Add crypto_tfm_ctx_dma config: powerpc-randconfig-r012-20221206 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 6e4cea55f0d1104408b26ac574566a0e4de48036) 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 # install powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e634ac4a8aaab37bdc69177df9b40acf92eccc6d git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout e634ac4a8aaab37bdc69177df9b40acf92eccc6d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/crypto/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot Note: the linux-next/master HEAD 5d562c48a21eeb029a8fd3f18e1b31fd83660474 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): In file included from arch/powerpc/crypto/md5-glue.c:10: In file included from include/crypto/internal/hash.h:11: In file included from include/crypto/algapi.h:10: arch/powerpc/include/asm/cache.h:78:15: error: unknown type name 'u32' static inline u32 l1_dcache_shift(void) ^ arch/powerpc/include/asm/cache.h:83:15: error: unknown type name 'u32' static inline u32 l1_dcache_bytes(void) ^ arch/powerpc/include/asm/cache.h:88:15: error: unknown type name 'u32' static inline u32 l1_icache_shift(void) ^ arch/powerpc/include/asm/cache.h:93:15: error: unknown type name 'u32' static inline u32 l1_icache_bytes(void) ^ In file included from arch/powerpc/crypto/md5-glue.c:13: In file included from include/linux/mm.h:737: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: >> include/linux/signal.h:97:11: error: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Werror,-Warray-bounds] return (set->sig[3] | set->sig[2] | ^ ~ arch/powerpc/include/uapi/asm/signal.h:18:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/powerpc/crypto/md5-glue.c:13: In file included from include/linux/mm.h:737: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:97:25: error: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Werror,-Warray-bounds] return (set->sig[3] | set->sig[2] | ^ ~ arch/powerpc/include/uapi/asm/signal.h:18:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/powerpc/crypto/md5-glue.c:13: In file included from include/linux/mm.h:737: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: >> include/linux/signal.h:113:11: error: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Werror,-Warray-bounds] return (set1->sig[3] == set2->sig[3]) && ^ ~ arch/powerpc/include/uapi/asm/signal.h:18:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/powerpc/crypto/md5-glue.c:13: In file included from include/linux/mm.h:737: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:113:27: error: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Werror,-Warray-bounds] return (set1->sig[3] == set2->sig[3]) && ^ ~ arch/powerpc/include/uapi/asm/signal.h:18:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/powerpc/crypto/md5-glue.c:13: In file included from include/linux/mm.h:737: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:114:5: error: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Werror,-Warray-bounds] (set1->sig[2] == set2->sig[2]) && ^ ~ arch/powerpc/include/uapi/asm/signal.h:18:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/powerpc/crypto/md5-glue.c:13: In file included from include/linux/mm.h:737: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:114:21: error: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Werror,-Warray-bounds] (set1->sig[2] == set2->sig[2]) && ^ ~ arch/powerpc/include/uapi/asm/signal.h:18:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/powerpc/crypto/md5-glue.c:13: In file included from include/linux/mm.h:737: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:156:1: error: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Werror,-Warray-bounds] _SIG_SET_BINOP(sigorsets, _sig_or) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:137:8: note: expanded from macro '_SIG_SET_BINOP' a3 = a->sig[3]; a2 = a->sig[2]; \ ^ ~ arch/powerpc/include/uapi/asm/signal.h:18:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/powerpc/crypto/md5-glue.c:13: In file included from include/linux/mm.h:737: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:156:1: error: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Werror,-Warray-bounds] _SIG_SET_BINOP(sigorsets, _sig_or) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:137:24: note: expanded from macro '_SIG_SET_BINOP' a3 = a->sig[3]; a2 = a->sig[2]; \ ^ ~ arch/powerpc/include/uapi/asm/signal.h:18:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/powerpc/crypto/md5-glue.c:13: In file included from include/linux/mm.h:737: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:156:1: error: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Werror,-Warray-bounds] _SIG_SET_BINOP(sigorsets, _sig_or) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:138:8: note: expanded from macro '_SIG_SET_BINOP' b3 = b->sig[3]; b2 = b->sig[2]; \ ^ ~ arch/powerpc/include/uapi/asm/signal.h:18:2: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/powerpc/crypto/md5-glue.c:13: In file included from include/linux/mm.h:737: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:156:1: error: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Werror,-Warray-bounds] vim +97 include/linux/signal.h ^1da177e4c3f41 Linus Torvalds 2005-04-16 92 71fabd5e483530 George Anzinger 2006-01-08 93 static inline int sigisemptyset(sigset_t *set) 71fabd5e483530 George Anzinger 2006-01-08 94 { 71fabd5e483530 George Anzinger 2006-01-08 95 switch (_NSIG_WORDS) { 71fabd5e483530 George Anzinger 2006-01-08 96 case 4: 71fabd5e483530 George Anzinger 2006-01-08 @97 return (set->sig[3] | set->sig[2] | 71fabd5e483530 George Anzinger 2006-01-08 98 set->sig[1] | set->sig[0]) == 0; 71fabd5e483530 George Anzinger 2006-01-08 99 case 2: 71fabd5e483530 George Anzinger 2006-01-08 100 return (set->sig[1] | set->sig[0]) == 0; 71fabd5e483530 George Anzinger 2006-01-08 101 case 1: 71fabd5e483530 George Anzinger 2006-01-08 102 return set->sig[0] == 0; 71fabd5e483530 George Anzinger 2006-01-08 103 default: 1c3bea0e71892e Oleg Nesterov 2014-10-13 104 BUILD_BUG(); 71fabd5e483530 George Anzinger 2006-01-08 105 return 0; 71fabd5e483530 George Anzinger 2006-01-08 106 } 71fabd5e483530 George Anzinger 2006-01-08 107 } 71fabd5e483530 George Anzinger 2006-01-08 108 c7be96af89d4b5 Waiman Long 2016-12-14 109 static inline int sigequalsets(const sigset_t *set1, const sigset_t *set2) c7be96af89d4b5 Waiman Long 2016-12-14 110 { c7be96af89d4b5 Waiman Long 2016-12-14 111 switch (_NSIG_WORDS) { c7be96af89d4b5 Waiman Long 2016-12-14 112 case 4: c7be96af89d4b5 Waiman Long 2016-12-14 @113 return (set1->sig[3] == set2->sig[3]) && c7be96af89d4b5 Waiman Long 2016-12-14 114 (set1->sig[2] == set2->sig[2]) && c7be96af89d4b5 Waiman Long 2016-12-14 115 (set1->sig[1] == set2->sig[1]) && c7be96af89d4b5 Waiman Long 2016-12-14 116 (set1->sig[0] == set2->sig[0]); c7be96af89d4b5 Waiman Long 2016-12-14 117 case 2: c7be96af89d4b5 Waiman Long 2016-12-14 118 return (set1->sig[1] == set2->sig[1]) && c7be96af89d4b5 Waiman Long 2016-12-14 119 (set1->sig[0] == set2->sig[0]); c7be96af89d4b5 Waiman Long 2016-12-14 120 case 1: c7be96af89d4b5 Waiman Long 2016-12-14 121 return set1->sig[0] == set2->sig[0]; c7be96af89d4b5 Waiman Long 2016-12-14 122 } c7be96af89d4b5 Waiman Long 2016-12-14 123 return 0; c7be96af89d4b5 Waiman Long 2016-12-14 124 } c7be96af89d4b5 Waiman Long 2016-12-14 125 :::::: The code at line 97 was first introduced by commit :::::: 71fabd5e4835309b4feca6209122ce56c595c461 [PATCH] sigaction should clear all signals on SIG_IGN, not just < 32 :::::: TO: George Anzinger :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://01.org/lkp