All of lore.kernel.org
 help / color / mirror / Atom feed
* [jpirko-mlxsw:petrm_resilient 19/19] net/ipv4/nexthop.c:1135:9: sparse: struct nh_grp_entry __rcu COPYING CREDITS Documentation Kbuild Kconfig LICENSES MAINTAINERS Makefile README arch block certs crypto drivers fs include init ipc kernel lib mm net samples scripts security sound tools usr virt
@ 2020-12-07 16:58 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-07 16:58 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3675 bytes --]

CC: kbuild-all(a)lists.01.org
TO: Petr Machata <me@pmachata.org>

tree:   https://github.com/jpirko/linux_mlxsw petrm_resilient
head:   df2269005def050853e664c954fd987562382c2f
commit: df2269005def050853e664c954fd987562382c2f [19/19] wip
:::::: branch date: 3 hours ago
:::::: commit date: 3 hours ago
config: x86_64-randconfig-s022-20201207 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-179-ga00755aa-dirty
        # https://github.com/jpirko/linux_mlxsw/commit/df2269005def050853e664c954fd987562382c2f
        git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
        git fetch --no-tags jpirko-mlxsw petrm_resilient
        git checkout df2269005def050853e664c954fd987562382c2f
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


"sparse warnings: (new ones prefixed by >>)"
   net/ipv4/nexthop.c:1135:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> net/ipv4/nexthop.c:1135:9: sparse:    struct nh_grp_entry [noderef] __rcu *
>> net/ipv4/nexthop.c:1135:9: sparse:    struct nh_grp_entry *
   net/ipv4/nexthop.c:2844:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct nh_group *nhg @@     got struct nh_group [noderef] __rcu *nh_grp @@
   net/ipv4/nexthop.c:2876:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct nh_group *nhg @@     got struct nh_group [noderef] __rcu *nh_grp @@
   net/ipv4/nexthop.c: note: in included file (through include/linux/sysctl.h, include/net/net_namespace.h, include/linux/netdevice.h, ...):
   include/linux/rbtree.h:84:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
   include/linux/rbtree.h:84:9: sparse:    struct rb_node [noderef] __rcu *
   include/linux/rbtree.h:84:9: sparse:    struct rb_node *

vim +1135 net/ipv4/nexthop.c

df2269005def05 Petr Machata 2020-12-07  1121  
df2269005def05 Petr Machata 2020-12-07  1122  static void nh_res_bucket_set_nh(struct nh_res_bucket *bucket,
df2269005def05 Petr Machata 2020-12-07  1123  				 struct nh_grp_entry *nhge)
df2269005def05 Petr Machata 2020-12-07  1124  {
df2269005def05 Petr Machata 2020-12-07  1125  	if (bucket->occupied) {
df2269005def05 Petr Machata 2020-12-07  1126  		bucket->nh_entry->res.count_buckets--;
df2269005def05 Petr Machata 2020-12-07  1127  		if (nh_res_entry_is_balanced(bucket->nh_entry)) {
df2269005def05 Petr Machata 2020-12-07  1128  			bucket->nh_entry->res.in_reserve = false;
df2269005def05 Petr Machata 2020-12-07  1129  			printk(KERN_WARNING "NHGE %d not in reserve anymore\n",
df2269005def05 Petr Machata 2020-12-07  1130  			       bucket->nh_entry->nh->id);
df2269005def05 Petr Machata 2020-12-07  1131  		}
df2269005def05 Petr Machata 2020-12-07  1132  	}
df2269005def05 Petr Machata 2020-12-07  1133  
df2269005def05 Petr Machata 2020-12-07  1134  	bucket->occupied = true;
df2269005def05 Petr Machata 2020-12-07 @1135  	rcu_assign_pointer(bucket->nh_entry, nhge);
df2269005def05 Petr Machata 2020-12-07  1136  
df2269005def05 Petr Machata 2020-12-07  1137  	nhge->res.count_buckets++;
df2269005def05 Petr Machata 2020-12-07  1138  }
df2269005def05 Petr Machata 2020-12-07  1139  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31270 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-07 16:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-07 16:58 [jpirko-mlxsw:petrm_resilient 19/19] net/ipv4/nexthop.c:1135:9: sparse: struct nh_grp_entry __rcu COPYING CREDITS Documentation Kbuild Kconfig LICENSES MAINTAINERS Makefile README arch block certs crypto drivers fs include init ipc kernel lib mm net samples scripts security sound tools usr virt kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.