From: Luc Van Oostenryck Date: Wed, 12 Aug 2020 01:34:35 +0000 (-0700) Subject: lib/generic-radix-tree.c: remove unneeded __rcu X-Git-Tag: v5.15~3116^2~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a650e472d2039a5f768acd82f2a7068bf338dfd;p=platform%2Fkernel%2Flinux-starfive.git 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] *__val with 6 other ones. So, correct root's type by removing this unneeded __rcu. Signed-off-by: Luc Van Oostenryck Signed-off-by: Andrew Morton Cc: Kent Overstreet Link: http://lkml.kernel.org/r/20200621161745.55396-1-luc.vanoostenryck@gmail.com Signed-off-by: Linus Torvalds --- diff --git a/include/linux/generic-radix-tree.h b/include/linux/generic-radix-tree.h index 02393c0..bfd0032 100644 --- a/include/linux/generic-radix-tree.h +++ b/include/linux/generic-radix-tree.h @@ -44,7 +44,7 @@ struct genradix_root; struct __genradix { - struct genradix_root __rcu *root; + struct genradix_root *root; }; /*