pinctrl: add __rcu annotations to fix sparse warnings
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 4 Aug 2017 04:52:05 +0000 (13:52 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:59 +0000 (15:01 +0200)
Sparse reports "warning: incorrect type in assignment (different
address spaces)".

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c
drivers/pinctrl/pinmux.c

index 89b9ca77daea4f1c26232d2b704d79ec958301f9..60f82c67b92d66d207bfb226b9685fe1d5701915 100644 (file)
@@ -686,7 +686,7 @@ EXPORT_SYMBOL_GPL(pinctrl_generic_remove_group);
 static void pinctrl_generic_free_groups(struct pinctrl_dev *pctldev)
 {
        struct radix_tree_iter iter;
-       void **slot;
+       void __rcu **slot;
 
        radix_tree_for_each_slot(slot, &pctldev->pin_group_tree, &iter, 0)
                radix_tree_delete(&pctldev->pin_group_tree, iter.index);
index 36d5da9dc58707815a6e959cba7d8334e72929e6..55502fc4479c29c3cdb9c23d5bf9aad9593a3f7b 100644 (file)
@@ -833,7 +833,7 @@ EXPORT_SYMBOL_GPL(pinmux_generic_remove_function);
 void pinmux_generic_free_functions(struct pinctrl_dev *pctldev)
 {
        struct radix_tree_iter iter;
-       void **slot;
+       void __rcu **slot;
 
        radix_tree_for_each_slot(slot, &pctldev->pin_function_tree, &iter, 0)
                radix_tree_delete(&pctldev->pin_function_tree, iter.index);