提交 c5d99d2b 编写于 作者: A Alexander Aring 提交者: David S. Miller

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: f25da51f ("ieee802154: hwsim: add replacement for fakelb")
Signed-off-by: NAlexander Aring <aring@mojatatu.com>
Signed-off-by: NStefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 de7de576
......@@ -36,7 +36,7 @@ MODULE_LICENSE("GPL");
static LIST_HEAD(hwsim_phys);
static DEFINE_MUTEX(hwsim_phys_lock);
static __rcu LIST_HEAD(hwsim_ifup_phys);
static LIST_HEAD(hwsim_ifup_phys);
static struct platform_device *mac802154hwsim_dev;
......@@ -68,7 +68,7 @@ struct hwsim_edge_info {
struct hwsim_edge {
struct hwsim_phy *endpoint;
struct hwsim_edge_info *info;
struct hwsim_edge_info __rcu *info;
struct list_head list;
struct rcu_head rcu;
......@@ -81,7 +81,7 @@ struct hwsim_phy {
struct hwsim_pib __rcu *pib;
bool suspended;
struct list_head __rcu edges;
struct list_head edges;
struct list_head list;
struct list_head list_ifup;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册