rhashtable: Fix cmpxchg RCU warnings
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 16 May 2019 07:19:48 +0000 (15:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 May 2019 16:45:20 +0000 (09:45 -0700)
commite9458a4e337db565191e3f1cee71bb553802def4
tree35cbe33809ccfed6fbcd4ba1e844fed84b890e1f
parentba6306e3f648a857ae52ddcabc2859542fd2f94c
rhashtable: Fix cmpxchg RCU warnings

As cmpxchg is a non-RCU mechanism it will cause sparse warnings
when we use it for RCU.  This patch adds explicit casts to silence
those warnings.  This should probably be moved to RCU itself in
future.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/rhashtable.c