]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit87cdc15c2a5d2f77396b2f85ee03e732773703da
tree35cbe33809ccfed6fbcd4ba1e844fed84b890e1f
parentf25086f7ffb52d575d5e0c84d2d2b6aa7eeedb6e
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