]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: clean up warnings detected by sparse
authorHoang Huu Le <hoang.h.le@dektech.com.au>
Thu, 11 Mar 2021 03:33:23 +0000 (10:33 +0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Mar 2021 02:06:54 +0000 (18:06 -0800)
commita8ffe7b63aab69dfa43609de907e56532989a5ac
tree0fef7cce61fe08b2deaa81156d2f8883661f481f
parent7e7ffa84c7e67a744bf1f4f7184b8be5effc98cc
tipc: clean up warnings detected by sparse

This patch fixes the following warning from sparse:

net/tipc/monitor.c:263:35: warning: incorrect type in assignment (different base types)
net/tipc/monitor.c:263:35:    expected unsigned int
net/tipc/monitor.c:263:35:    got restricted __be32 [usertype]
[...]
net/tipc/node.c:374:13: warning: context imbalance in 'tipc_node_read_lock' - wrong count at exit
net/tipc/node.c:379:13: warning: context imbalance in 'tipc_node_read_unlock' - unexpected unlock
net/tipc/node.c:384:13: warning: context imbalance in 'tipc_node_write_lock' - wrong count at exit
net/tipc/node.c:389:13: warning: context imbalance in 'tipc_node_write_unlock_fast' - unexpected unlock
net/tipc/node.c:404:17: warning: context imbalance in 'tipc_node_write_unlock' - unexpected unlock
[...]
net/tipc/crypto.c:1201:9: warning: incorrect type in initializer (different address spaces)
net/tipc/crypto.c:1201:9:    expected struct tipc_aead [noderef] __rcu *__tmp
net/tipc/crypto.c:1201:9:    got struct tipc_aead *
[...]

Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: Hoang Huu Le <hoang.h.le@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/crypto.c
net/tipc/monitor.c
net/tipc/node.c