forked from luck/tmp_suning_uos_patched
pinctrl: add __rcu annotations to fix sparse warnings
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>
This commit is contained in:
parent
376c7a7569
commit
906a2a3955
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user