From: Pranith Kumar Date: Tue, 28 Oct 2014 22:09:57 +0000 (-0700) Subject: dm: sparse: Annotate field with __rcu for checking X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6fa9952097747f71c5077f3e14ce3f8adee6f778;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git dm: sparse: Annotate field with __rcu for checking Annotate the map field with __rcu since this is a rcu pointer which is checked by sparse. Signed-off-by: Pranith Kumar Signed-off-by: Paul E. McKenney Signed-off-by: Mike Snitzer --- diff --git a/drivers/md/dm.c b/drivers/md/dm.c index c5e14eee8c76..16a806a99b99 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -140,7 +140,7 @@ struct mapped_device { * Use dm_get_live_table{_fast} or take suspend_lock for * dereference. */ - struct dm_table *map; + struct dm_table __rcu *map; struct list_head table_devices; struct mutex table_devices_lock;