Content-Type: multipart/mixed; boundary="===============6952653394139884816==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH bpf-next v2] libbpf: Add documentation for bpf_map batch operations Date: Mon, 27 Dec 2021 12:32:36 +0800 Message-ID: <202112271230.YWo0e6o5-lkp@intel.com> In-Reply-To: <20211225203717.35718-1-grantseltzer@gmail.com> List-Id: --===============6952653394139884816== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi grantseltzer, Thank you for the patch! Yet something to improve: [auto build test ERROR on bpf-next/master] url: https://github.com/0day-ci/linux/commits/grantseltzer/libbpf-Add-do= cumentation-for-bpf_map-batch-operations/20211226-043930 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git ma= ster config: x86_64-randconfig-a004-20211227 (https://download.01.org/0day-ci/ar= chive/20211227/202112271230.YWo0e6o5-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 511726= c64d3b6cca66f7c54d457d586aa3129f67) 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/f8daffaa56bc1d00f28a1bc7d= b7ca91d98ae3c53 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review grantseltzer/libbpf-Add-documentat= ion-for-bpf_map-batch-operations/20211226-043930 git checkout f8daffaa56bc1d00f28a1bc7db7ca91d98ae3c53 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> bpf.c:698:15: error: passing 'const void *' to parameter of type 'void *= ' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualif= iers] NULL, keys, NULL, count, opts); ^~~~ bpf.c:668:28: note: passing argument to parameter 'keys' here void *out_batch, void *keys, void *value= s, ^ bpf.c:722:9: error: passing 'const void *' to parameter of type 'void *'= discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifi= ers] keys, values, count, opts); ^~~~ bpf.c:668:28: note: passing argument to parameter 'keys' here void *out_batch, void *keys, void *value= s, ^ bpf.c:722:15: error: passing 'const void *' to parameter of type 'void *= ' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualif= iers] keys, values, count, opts); ^~~~~~ bpf.c:668:40: note: passing argument to parameter 'values' here void *out_batch, void *keys, void *value= s, ^ 3 errors generated. make[6]: *** [tools/build/Makefile.build:97: kernel/bpf/preload/libbpf/s= taticobjs/bpf.o] Error 1 make[6]: Target '__build' not remade because of errors. --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6952653394139884816==--