From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8074011289410326038==" 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 11:30:26 +0800 Message-ID: <202111301155.7gf5aKBg-lkp@intel.com> In-Reply-To: <20211130012948.380602-5-haoluo@google.com> List-Id: --===============8074011289410326038== 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: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/202111= 30/202111301155.7gf5aKBg-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # 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 make W=3D1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash kernel/ 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:8: warning: type qualifiers ignored on functio= n return type [-Wignored-qualifiers] 533 | static const char * const reg_type_str(enum bpf_reg_type type) | ^~~~~ kernel/bpf/verifier.c: In function 'check_helper_call': kernel/bpf/verifier.c:6544:39: warning: format '%d' expects argument of = type 'int', but argument 3 has type 'long unsigned int' [-Wformat=3D] 6544 | verbose(env, "invalid return type %d of func %s#%d\n", | ~^ | | | int | %ld kernel/bpf/verifier.c:6555:38: warning: format '%d' expects argument of = type 'int', but argument 3 has type 'long unsigned int' [-Wformat=3D] 6555 | verbose(env, "unknown return type %d of func %s#%d\n", | ~^ | | | int | %ld vim +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 --===============8074011289410326038==--