On Tue, Dec 13, 2022 at 10:39:30AM +0000, Sudip Mukherjee wrote: > On Tue, 13 Dec 2022 at 10:26, Sudip Mukherjee (Codethink) > <sudipm.mukherjee@xxxxxxxxx> wrote: > > > > Hi All, > > > > The latest mainline kernel branch fails to build xtensa allmodconfig > > with gcc-11 with the error: > > And, also powerpc allmodconfig with the error: > Plus arm:allmodconfig, with gcc 11.3. In file included from include/linux/string.h:253, from include/linux/bitmap.h:11, from include/linux/cpumask.h:12, from include/linux/mm_types_task.h:14, from include/linux/mm_types.h:5, from include/linux/buildid.h:5, from include/linux/module.h:14, from drivers/crypto/caam/compat.h:10, from drivers/crypto/caam/key_gen.c:8: drivers/crypto/caam/desc_constr.h: In function 'append_data.constprop': include/linux/fortify-string.h:57:33: error: argument 2 null where non-null expected [-Werror=nonnull] 57 | #define __underlying_memcpy __builtin_memcpy | ^ include/linux/fortify-string.h:469:9: note: in expansion of macro '__underlying_memcpy' 469 | __underlying_##op(p, q, __fortify_size); \ | ^~~~~~~~~~~~~ include/linux/fortify-string.h:514:26: note: in expansion of macro '__fortify_memcpy_chk' 514 | #define memcpy(p, q, s) __fortify_memcpy_chk(p, q, s, \ | ^~~~~~~~~~~~~~~~~~~~ drivers/crypto/caam/desc_constr.h:167:17: note: in expansion of macro 'memcpy' 167 | memcpy(offset, data, len); | ^~~~~~ include/linux/fortify-string.h:57:33: note: in a call to built-in function '__builtin_memcpy' 57 | #define __underlying_memcpy __builtin_memcpy | ^ include/linux/fortify-string.h:469:9: note: in expansion of macro '__underlying_memcpy' 469 | __underlying_##op(p, q, __fortify_size); \ | ^~~~~~~~~~~~~ include/linux/fortify-string.h:514:26: note: in expansion of macro '__fortify_memcpy_chk' 514 | #define memcpy(p, q, s) __fortify_memcpy_chk(p, q, s, \ | ^~~~~~~~~~~~~~~~~~~~ drivers/crypto/caam/desc_constr.h:167:17: note: in expansion of macro 'memcpy' 167 | memcpy(offset, data, len); Guenter