OSDN Git Service

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)
commitc5d99d2b35dadebab2408bb10dcd50364eaaf9f4
treec4d17f46ba3aca72a471dc10a6bfb8bbdd9387f2
parentde7de576eca204de9a38e2f6dafe6b7c1ddc85c1
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: f25da51fdc38 ("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