Hi Kees, I love your patch! Perhaps something to improve: [auto build test WARNING on xfs-linux/for-next] [also build test WARNING on kees/for-next/pstore drm-tip/drm-tip linus/master v6.1-rc2 next-20221025] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Kees-Cook/Introduce-flexible-array-struct-helpers/20221025-031100 base: https://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git for-next patch link: https://lore.kernel.org/r/20221024172058.534477-1-keescook%40chromium.org patch subject: [PATCH v2 1/2] Introduce flexible array struct helpers config: arm-allyesconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0 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 # https://github.com/intel-lab-lkp/linux/commit/04402c9f14fd381697b7aa744713a81aca0077cc git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Kees-Cook/Introduce-flexible-array-struct-helpers/20221025-031100 git checkout 04402c9f14fd381697b7aa744713a81aca0077cc # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/crypto/caam/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): In file included from include/linux/string.h:259, 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/flex_array.h:9:33: warning: argument 2 null where non-null expected [-Wnonnull] 9 | #define __underlying_memcpy __builtin_memcpy include/linux/fortify-string.h:451:9: note: in expansion of macro '__underlying_memcpy' 451 | __underlying_##op(p, q, __fortify_size); \ | ^~~~~~~~~~~~~ include/linux/fortify-string.h:496:26: note: in expansion of macro '__fortify_memcpy_chk' 496 | #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/flex_array.h:9:33: note: in a call to built-in function '__builtin_memcpy' 9 | #define __underlying_memcpy __builtin_memcpy include/linux/fortify-string.h:451:9: note: in expansion of macro '__underlying_memcpy' 451 | __underlying_##op(p, q, __fortify_size); \ | ^~~~~~~~~~~~~ include/linux/fortify-string.h:496:26: note: in expansion of macro '__fortify_memcpy_chk' 496 | #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); | ^~~~~~ vim +9 include/linux/flex_array.h 6 7 /* Make sure we compose correctly with KASAN. */ 8 #ifndef __underlying_memcpy > 9 #define __underlying_memcpy __builtin_memcpy 10 #endif 11 #ifndef __underlying_memset 12 #define __underlying_memset __builtin_memset 13 #endif 14 -- 0-DAY CI Kernel Test Service https://01.org/lkp
Attachment:
.config.gz
Description: application/gzip