]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: hwsim: fix rcu address annotation
authorAlexander Aring <aring@mojatatu.com>
Tue, 7 Aug 2018 14:34:44 +0000 (10:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Aug 2018 16:09:27 +0000 (09:09 -0700)
commita6b7410db872c9f092b4ee984b08e1d2332d256c
treec4d17f46ba3aca72a471dc10a6bfb8bbdd9387f2
parent73857a683326f0f6663cec9c0314c33e7fc20f70
ieee802154: hwsim: fix rcu address annotation

This patch fixes the following sparse warning about mismatch rcu
attribute for address space annotation:

...
error: incompatible types in comparison expression (different modifiers)
error: incompatible types in comparison expression (different address spaces)
...

Some __rcu annotation was at non-pointers list head structures and one was
missing in edge information which is used by rcu_assign_pointer() to
update edge setting information.

Cc: Stefan Schmidt <stefan@datenfreihafen.org>
Fixes: 85e15273df83 ("ieee802154: hwsim: add replacement for fakelb")
Signed-off-by: Alexander Aring <aring@mojatatu.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ieee802154/mac802154_hwsim.c