From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: Re: [PATCH net-next v2 2/3] ipv6: support sport and dport in RTM_GETROUTE Date: Mon, 7 May 2018 14:23:06 +0800 Message-ID: <201805071454.M3MseL9U%fengguang.wu@intel.com> References: <1525654787-21990-3-git-send-email-roopa@cumulusnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kbuild-all@01.org, davem@davemloft.net, netdev@vger.kernel.org, dsa@cumulusnetworks.com, nikolay@cumulusnetworks.com, idosch@mellanox.com To: Roopa Prabhu Return-path: Received: from mga11.intel.com ([192.55.52.93]:44455 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716AbeEGGXi (ORCPT ); Mon, 7 May 2018 02:23:38 -0400 Content-Disposition: inline In-Reply-To: <1525654787-21990-3-git-send-email-roopa@cumulusnetworks.com> Sender: netdev-owner@vger.kernel.org List-ID: Hi Roopa, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Roopa-Prabhu/fib-rule-selftest/20180507-094538 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) net/ipv6/route.c:2591:15: sparse: expression using sizeof(void) net/ipv6/route.c:1391:15: sparse: expression using sizeof(void) net/ipv6/route.c:1590:36: sparse: incorrect type in initializer (different address spaces) @@ expected struct fib6_info *from @@ got struct fib6_info struct fib6_info *from @@ net/ipv6/route.c:1590:36: expected struct fib6_info *from net/ipv6/route.c:1590:36: got struct fib6_info [noderef] *from net/ipv6/route.c:1968:39: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [unsigned] [usertype] flow_label @@ got gned] [usertype] flow_label @@ net/ipv6/route.c:1968:39: expected unsigned int [unsigned] [usertype] flow_label net/ipv6/route.c:1968:39: got restricted __be32 net/ipv6/route.c:2311:15: sparse: expression using sizeof(void) >> net/ipv6/route.c:4735:29: sparse: incorrect type in initializer (different base types) @@ expected int [signed] p @@ got restint [signed] p @@ net/ipv6/route.c:4735:29: expected int [signed] p net/ipv6/route.c:4735:29: got restricted __be16 >> net/ipv6/route.c:4740:15: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] @@ got 6 [usertype] @@ net/ipv6/route.c:4740:15: expected restricted __be16 [usertype] net/ipv6/route.c:4740:15: got int [signed] p net/ipv6/route.c:3196:12: sparse: context imbalance in 'ip6_route_del' - wrong count at exit vim +4735 net/ipv6/route.c 4732 4733 static int nla_get_port(struct nlattr *attr, __be16 *port) 4734 { > 4735 int p = nla_get_be16(attr); 4736 4737 if (p <= 0 || p >= 0xffff) 4738 return -EINVAL; 4739 > 4740 *port = p; 4741 return 0; 4742 } 4743 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation