]> git.baikalelectronics.ru Git - kernel.git/commit
lib/generic-radix-tree.c: remove unneeded __rcu
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Wed, 12 Aug 2020 01:34:35 +0000 (18:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Aug 2020 17:57:59 +0000 (10:57 -0700)
commit94b2014f0b93ea5a3dc2911c82b79263548f2e4c
tree271437a87c00b17df8a9e5a37115b724f35dfaf0
parent294cc9c67d447e6d6aeed1c9d620874a4ca8e484
lib/generic-radix-tree.c: remove unneeded __rcu

struct __genradix is defined as having its member 'root'
annotated as __rcu. But in the corresponding API RCU is not used.
Sparse reports this type mismatch as:
lib/generic-radix-tree.c:56:35: warning: incorrect type in initializer (different address spaces)
lib/generic-radix-tree.c:56:35:    expected struct genradix_root *r
lib/generic-radix-tree.c:56:35:    got struct genradix_root [noderef] <asn:4> *__val
with 6 other ones.

So, correct root's type by removing this unneeded __rcu.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Kent Overstreet <kent.overstreet@gmail.com>
Link: http://lkml.kernel.org/r/20200621161745.55396-1-luc.vanoostenryck@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/generic-radix-tree.h