Messages in this thread | | | Date | Fri, 10 Nov 2023 01:27:19 +0800 | From | kernel test robot <> | Subject | drivers/net/ipvlan/ipvlan_core.c:57:36: sparse: sparse: incorrect type in argument 1 (different base types) |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6bc986ab839c844e78a2333a02e55f02c9e57935 commit: c675e06a98a474f7ad0af32ce467613da818da52 ipvlan: decouple l3s mode dependencies from other modes date: 4 years, 9 months ago config: i386-randconfig-062-20230914 (https://download.01.org/0day-ci/archive/20231110/202311100006.TllMAnvM-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231110/202311100006.TllMAnvM-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202311100006.TllMAnvM-lkp@intel.com/
sparse warnings: (new ones prefixed by >>) >> drivers/net/ipvlan/ipvlan_core.c:57:36: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] a @@ got restricted __be32 const [usertype] s_addr @@ drivers/net/ipvlan/ipvlan_core.c:57:36: sparse: expected unsigned int [usertype] a drivers/net/ipvlan/ipvlan_core.c:57:36: sparse: got restricted __be32 const [usertype] s_addr
vim +57 drivers/net/ipvlan/ipvlan_core.c
2ad7bf3638411c Mahesh Bandewar 2014-11-23 52 2ad7bf3638411c Mahesh Bandewar 2014-11-23 53 static u8 ipvlan_get_v4_hash(const void *iaddr) 2ad7bf3638411c Mahesh Bandewar 2014-11-23 54 { 2ad7bf3638411c Mahesh Bandewar 2014-11-23 55 const struct in_addr *ip4_addr = iaddr; 2ad7bf3638411c Mahesh Bandewar 2014-11-23 56 2ad7bf3638411c Mahesh Bandewar 2014-11-23 @57 return jhash_1word(ip4_addr->s_addr, ipvlan_jhash_secret) & 2ad7bf3638411c Mahesh Bandewar 2014-11-23 58 IPVLAN_HASH_MASK; 2ad7bf3638411c Mahesh Bandewar 2014-11-23 59 } 2ad7bf3638411c Mahesh Bandewar 2014-11-23 60
:::::: The code at line 57 was first introduced by commit :::::: 2ad7bf3638411cb547f2823df08166c13ab04269 ipvlan: Initial check-in of the IPVLAN driver.
:::::: TO: Mahesh Bandewar <maheshb@google.com> :::::: CC: David S. Miller <davem@davemloft.net>
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
| |