Content-Type: multipart/mixed; boundary="===============6591280561936057339==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [RFC PATCH bpf-next v2 4/9] bpf: Replace PTR_TO_XXX_OR_NULL with PTR_TO_XXX | PTR_MAYBE_NULL Date: Tue, 30 Nov 2021 12:21:27 +0800 Message-ID: <202111301214.JYWypTyw-lkp@intel.com> In-Reply-To: <20211130012948.380602-5-haoluo@google.com> List-Id: --===============6591280561936057339== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Hao, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Hao-Luo/Introduce-composab= le-bpf-types/20211130-093143 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git ma= ster config: arm-buildonly-randconfig-r005-20211128 (https://download.01.org/0da= y-ci/archive/20211130/202111301214.JYWypTyw-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 25eb7f= a01d7ebbe67648ea03841cda55b4239ab2) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/0day-ci/linux/commit/9e92c0a723fc173ac102b3bb2= 7df479a01f32896 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Hao-Luo/Introduce-composable-bpf-t= ypes/20211130-093143 git checkout 9e92c0a723fc173ac102b3bb27df479a01f32896 # 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=3Darm SHELL=3D/bin/bash kernel/bpf/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/bpf/verifier.c:533:21: warning: 'const' type qualifier on return = type has no effect [-Wignored-qualifiers] static const char * const reg_type_str(enum bpf_reg_type type) ^~~~~~ kernel/bpf/verifier.c:6545:5: warning: format specifies type 'int' but t= he argument has type 'unsigned long' [-Wformat] BPF_BASE_TYPE(ret_type), func_id_name(fu= nc_id), ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/bpf.h:326:26: note: expanded from macro 'BPF_BASE_TYPE' #define BPF_BASE_TYPE(x) ((x) & BPF_BASE_TYPE_MASK) ^~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/bpf/verifier.c:6556:4: warning: format specifies type 'int' but t= he argument has type 'unsigned long' [-Wformat] BPF_BASE_TYPE(ret_type), func_id_name(func_id), = func_id); ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/bpf.h:326:26: note: expanded from macro 'BPF_BASE_TYPE' #define BPF_BASE_TYPE(x) ((x) & BPF_BASE_TYPE_MASK) ^~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. vim +/const +533 kernel/bpf/verifier.c 531 = 532 /* string representation of 'enum bpf_reg_type' */ > 533 static const char * const reg_type_str(enum bpf_reg_type type) 534 { 535 static const char * const str[] =3D { 536 [NOT_INIT] =3D "?", 537 [SCALAR_VALUE] =3D "inv", 538 [PTR_TO_CTX] =3D "ctx", 539 [CONST_PTR_TO_MAP] =3D "map_ptr", 540 [PTR_TO_MAP_VALUE] =3D "map_value", 541 [PTR_TO_STACK] =3D "fp", 542 [PTR_TO_PACKET] =3D "pkt", 543 [PTR_TO_PACKET_META] =3D "pkt_meta", 544 [PTR_TO_PACKET_END] =3D "pkt_end", 545 [PTR_TO_FLOW_KEYS] =3D "flow_keys", 546 [PTR_TO_SOCKET] =3D "sock", 547 [PTR_TO_SOCK_COMMON] =3D "sock_common", 548 [PTR_TO_TCP_SOCK] =3D "tcp_sock", 549 [PTR_TO_TP_BUFFER] =3D "tp_buffer", 550 [PTR_TO_XDP_SOCK] =3D "xdp_sock", 551 [PTR_TO_BTF_ID] =3D "ptr_", 552 [PTR_TO_PERCPU_BTF_ID] =3D "percpu_ptr_", 553 [PTR_TO_MEM] =3D "mem", 554 [PTR_TO_RDONLY_BUF] =3D "rdonly_buf", 555 [PTR_TO_RDWR_BUF] =3D "rdwr_buf", 556 [PTR_TO_FUNC] =3D "func", 557 [PTR_TO_MAP_KEY] =3D "map_key", 558 }; 559 = 560 return str[BPF_BASE_TYPE(type)]; 561 } 562 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6591280561936057339==--