tree: https://github.com/ammarfaizi2/linux-block herbert/cryptodev-2.6/master head: 453de3eb08c4b7e31b3019a4b0cc3ebce51a6219 commit: e634ac4a8aaab37bdc69177df9b40acf92eccc6d [143/186] crypto: api - Add crypto_tfm_ctx_dma config: powerpc-randconfig-c003-20221211 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://github.com/ammarfaizi2/linux-block/commit/e634ac4a8aaab37bdc69177df9b40acf92eccc6d git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block herbert/cryptodev-2.6/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 lib/crypto/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot Note: the ammarfaizi2-block/herbert/cryptodev-2.6/master HEAD 453de3eb08c4b7e31b3019a4b0cc3ebce51a6219 builds fine. It only hurts bisectability. All errors (new ones prefixed by >>): In file included from lib/crypto/curve25519-generic.c:12: In file included from include/crypto/curve25519.h:9: 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) ^ 4 errors generated. -- In file included from lib/crypto/chacha20poly1305.c:10: 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 lib/crypto/chacha20poly1305.c:11: In file included from include/crypto/chacha20poly1305.h:10: In file included from include/linux/scatterlist.h:8: 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: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-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 lib/crypto/chacha20poly1305.c:11: In file included from include/crypto/chacha20poly1305.h:10: In file included from include/linux/scatterlist.h:8: 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: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-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 lib/crypto/chacha20poly1305.c:11: In file included from include/crypto/chacha20poly1305.h:10: In file included from include/linux/scatterlist.h:8: 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: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-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 lib/crypto/chacha20poly1305.c:11: In file included from include/crypto/chacha20poly1305.h:10: In file included from include/linux/scatterlist.h:8: 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: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-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 lib/crypto/chacha20poly1305.c:11: In file included from include/crypto/chacha20poly1305.h:10: In file included from include/linux/scatterlist.h:8: 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: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-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 lib/crypto/chacha20poly1305.c:11: In file included from include/crypto/chacha20poly1305.h:10: In file included from include/linux/scatterlist.h:8: 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: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-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]; vim +/u32 +78 arch/powerpc/include/asm/cache.h 7a0745c5e03ff1 Alastair D'Silva 2019-11-04 72 7a0745c5e03ff1 Alastair D'Silva 2019-11-04 73 static inline u32 l1_icache_bytes(void) 7a0745c5e03ff1 Alastair D'Silva 2019-11-04 74 { 7a0745c5e03ff1 Alastair D'Silva 2019-11-04 75 return ppc64_caches.l1i.block_size; 7a0745c5e03ff1 Alastair D'Silva 2019-11-04 76 } d98fc70fc139b7 Christophe Leroy 2019-05-14 77 #else 7a0745c5e03ff1 Alastair D'Silva 2019-11-04 @78 static inline u32 l1_dcache_shift(void) d98fc70fc139b7 Christophe Leroy 2019-05-14 79 { d98fc70fc139b7 Christophe Leroy 2019-05-14 80 return L1_CACHE_SHIFT; d98fc70fc139b7 Christophe Leroy 2019-05-14 81 } d98fc70fc139b7 Christophe Leroy 2019-05-14 82 :::::: The code at line 78 was first introduced by commit :::::: 7a0745c5e03ff1129864bc6d80f5c4417e8d7893 powerpc: define helpers to get L1 icache sizes :::::: TO: Alastair D'Silva :::::: CC: Michael Ellerman -- 0-DAY CI Kernel Test Service https://01.org/lkp