CC: kbuild-...@lists.01.org In-Reply-To: <20200523060537.264096-2-liuhang...@gmail.com> References: <20200523060537.264096-2-liuhang...@gmail.com> TO: Hangbin Liu <liuhang...@gmail.com> TO: b...@vger.kernel.org CC: net...@vger.kernel.org CC: "Toke Høiland-Jørgensen" <t...@redhat.com> CC: Jiri Benc <jb...@redhat.com> CC: Jesper Dangaard Brouer <bro...@redhat.com> CC: Eelco Chaudron <echau...@redhat.com> CC: a...@kernel.org CC: Daniel Borkmann <dan...@iogearbox.net> CC: Lorenzo Bianconi <lorenzo.bianc...@redhat.com> CC: Hangbin Liu <liuhang...@gmail.com>
Hi Hangbin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on bpf-next/master] [also build test WARNING on net-next/master next-20200522] [cannot apply to bpf/master net/master linus/master v5.7-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Hangbin-Liu/xdp-add-dev-map-multicast-support/20200523-141019 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master :::::: branch date: 2 days ago :::::: commit date: 2 days ago config: s390-randconfig-s002-20200524 (attached as .config) compiler: s390-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty # save the attached .config to linux build tree make W=1 C=1 ARCH=s390 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot <l...@intel.com> sparse warnings: (new ones prefixed by >>) net/core/filter.c:400:33: sparse: sparse: subtraction of functions? Share your drugs net/core/filter.c:403:33: sparse: sparse: subtraction of functions? Share your drugs net/core/filter.c:406:33: sparse: sparse: subtraction of functions? Share your drugs net/core/filter.c:409:33: sparse: sparse: subtraction of functions? Share your drugs net/core/filter.c:412:33: sparse: sparse: subtraction of functions? Share your drugs net/core/filter.c:486:27: sparse: sparse: subtraction of functions? Share your drugs net/core/filter.c:489:27: sparse: sparse: subtraction of functions? Share your drugs net/core/filter.c:492:27: sparse: sparse: subtraction of functions? Share your drugs net/core/filter.c:1380:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct sock_filter const *filter @@ got struct sock_struct sock_filter const *filter @@ net/core/filter.c:1380:39: sparse: expected struct sock_filter const *filter net/core/filter.c:1380:39: sparse: got struct sock_filter [noderef] <asn:1> *filter net/core/filter.c:1458:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct sock_filter const *filter @@ got struct sock_struct sock_filter const *filter @@ net/core/filter.c:1458:39: sparse: expected struct sock_filter const *filter net/core/filter.c:1458:39: sparse: got struct sock_filter [noderef] <asn:1> *filter net/core/filter.c:7011:27: sparse: sparse: subtraction of functions? Share your drugs net/core/filter.c:7014:27: sparse: sparse: subtraction of functions? Share your drugs net/core/filter.c:7017:27: sparse: sparse: subtraction of functions? Share your drugs net/core/filter.c:215:32: sparse: sparse: cast to restricted __be16 net/core/filter.c:242:32: sparse: sparse: cast to restricted __be32 net/core/filter.c:1880:43: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted __wsum [usertype] diff @@ got urestricted __wsum [usertype] diff @@ net/core/filter.c:1880:43: sparse: expected restricted __wsum [usertype] diff net/core/filter.c:1880:43: sparse: got unsigned long long [usertype] to net/core/filter.c:1883:36: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted __be16 [usertype] old @@ got urestricted __be16 [usertype] old @@ net/core/filter.c:1883:36: sparse: expected restricted __be16 [usertype] old net/core/filter.c:1883:36: sparse: got unsigned long long [usertype] from net/core/filter.c:1883:42: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __be16 [usertype] new @@ got urestricted __be16 [usertype] new @@ net/core/filter.c:1883:42: sparse: expected restricted __be16 [usertype] new net/core/filter.c:1883:42: sparse: got unsigned long long [usertype] to net/core/filter.c:1886:36: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted __be32 [usertype] from @@ got urestricted __be32 [usertype] from @@ net/core/filter.c:1886:36: sparse: expected restricted __be32 [usertype] from net/core/filter.c:1886:36: sparse: got unsigned long long [usertype] from net/core/filter.c:1886:42: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __be32 [usertype] to @@ got urestricted __be32 [usertype] to @@ net/core/filter.c:1886:42: sparse: expected restricted __be32 [usertype] to net/core/filter.c:1886:42: sparse: got unsigned long long [usertype] to net/core/filter.c:1931:59: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __wsum [usertype] diff @@ got urestricted __wsum [usertype] diff @@ net/core/filter.c:1931:59: sparse: expected restricted __wsum [usertype] diff net/core/filter.c:1931:59: sparse: got unsigned long long [usertype] to net/core/filter.c:1934:52: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __be16 [usertype] from @@ got urestricted __be16 [usertype] from @@ net/core/filter.c:1934:52: sparse: expected restricted __be16 [usertype] from net/core/filter.c:1934:52: sparse: got unsigned long long [usertype] from net/core/filter.c:1934:58: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __be16 [usertype] to @@ got urestricted __be16 [usertype] to @@ net/core/filter.c:1934:58: sparse: expected restricted __be16 [usertype] to net/core/filter.c:1934:58: sparse: got unsigned long long [usertype] to net/core/filter.c:1937:52: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __be32 [usertype] from @@ got urestricted __be32 [usertype] from @@ net/core/filter.c:1937:52: sparse: expected restricted __be32 [usertype] from net/core/filter.c:1937:52: sparse: got unsigned long long [usertype] from net/core/filter.c:1937:58: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __be32 [usertype] to @@ got urestricted __be32 [usertype] to @@ net/core/filter.c:1937:58: sparse: expected restricted __be32 [usertype] to net/core/filter.c:1937:58: sparse: got unsigned long long [usertype] to net/core/filter.c:1983:28: sparse: sparse: incorrect type in return expression (different base types) @@ expected unsigned long long @@ got nsigned long long @@ net/core/filter.c:1983:28: sparse: expected unsigned long long net/core/filter.c:1983:28: sparse: got restricted __wsum net/core/filter.c:2005:35: sparse: sparse: incorrect type in return expression (different base types) @@ expected unsigned long long @@ got restricted unsigned long long @@ net/core/filter.c:2005:35: sparse: expected unsigned long long net/core/filter.c:2005:35: sparse: got restricted __wsum [usertype] csum net/core/filter.c:4720:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] spi @@ got restricted unsigned int [usertype] spi @@ net/core/filter.c:4720:17: sparse: expected unsigned int [usertype] spi net/core/filter.c:4720:17: sparse: got restricted __be32 const [usertype] spi net/core/filter.c:4728:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] remote_ipv4 @@ got restricted unsigned int [usertype] remote_ipv4 @@ net/core/filter.c:4728:33: sparse: expected unsigned int [usertype] remote_ipv4 net/core/filter.c:4728:33: sparse: got restricted __be32 const [usertype] a4 net/core/filter.c:3534:25: sparse: sparse: non size-preserving integer to pointer cast net/core/filter.c:3786:10: sparse: sparse: Initializer entry defined twice >> net/core/filter.c:3787:10: sparse: also defined here net/core/filter.c:4062:21: sparse: sparse: non size-preserving integer to pointer cast # https://github.com/0day-ci/linux/commit/b5e5f70cd41c3958d6bf936874f6774a0e965bf0 git remote add linux-review https://github.com/0day-ci/linux git remote update linux-review git checkout b5e5f70cd41c3958d6bf936874f6774a0e965bf0 vim +3787 net/core/filter.c b5e5f70cd41c39 Hangbin Liu 2020-05-23 3781 b5e5f70cd41c39 Hangbin Liu 2020-05-23 3782 static const struct bpf_func_proto bpf_xdp_redirect_map_multi_proto = { b5e5f70cd41c39 Hangbin Liu 2020-05-23 3783 .func = bpf_xdp_redirect_map_multi, b5e5f70cd41c39 Hangbin Liu 2020-05-23 3784 .gpl_only = false, b5e5f70cd41c39 Hangbin Liu 2020-05-23 3785 .ret_type = RET_INTEGER, b5e5f70cd41c39 Hangbin Liu 2020-05-23 3786 .arg1_type = ARG_CONST_MAP_PTR, b5e5f70cd41c39 Hangbin Liu 2020-05-23 @3787 .arg1_type = ARG_CONST_MAP_PTR, b5e5f70cd41c39 Hangbin Liu 2020-05-23 3788 .arg3_type = ARG_ANYTHING, b5e5f70cd41c39 Hangbin Liu 2020-05-23 3789 }; b5e5f70cd41c39 Hangbin Liu 2020-05-23 3790 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org