Commit 70126f61 authored by Pavel Roskin's avatar Pavel Roskin Committed by John W. Linville

carl9170: fix sparse warnings enabled by CONFIG_SPARSE_RCU_POINTER

Signed-off-by: default avatarPavel Roskin <proski@gnu.org>
Acked-by: default avatarChristian Lamparter <chunkeey@googlemail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 0a557ed3
...@@ -177,7 +177,7 @@ struct carl9170_tx_queue_stats { ...@@ -177,7 +177,7 @@ struct carl9170_tx_queue_stats {
struct carl9170_vif { struct carl9170_vif {
unsigned int id; unsigned int id;
struct ieee80211_vif *vif; struct ieee80211_vif __rcu *vif;
}; };
struct carl9170_vif_info { struct carl9170_vif_info {
...@@ -311,7 +311,7 @@ struct ar9170 { ...@@ -311,7 +311,7 @@ struct ar9170 {
spinlock_t beacon_lock; spinlock_t beacon_lock;
unsigned int global_pretbtt; unsigned int global_pretbtt;
unsigned int global_beacon_int; unsigned int global_beacon_int;
struct carl9170_vif_info *beacon_iter; struct carl9170_vif_info __rcu *beacon_iter;
unsigned int beacon_enabled; unsigned int beacon_enabled;
/* cryptographic engine */ /* cryptographic engine */
...@@ -389,7 +389,7 @@ struct ar9170 { ...@@ -389,7 +389,7 @@ struct ar9170 {
/* tx ampdu */ /* tx ampdu */
struct work_struct ampdu_work; struct work_struct ampdu_work;
spinlock_t tx_ampdu_list_lock; spinlock_t tx_ampdu_list_lock;
struct carl9170_sta_tid *tx_ampdu_iter; struct carl9170_sta_tid __rcu *tx_ampdu_iter;
struct list_head tx_ampdu_list; struct list_head tx_ampdu_list;
atomic_t tx_ampdu_upload; atomic_t tx_ampdu_upload;
atomic_t tx_ampdu_scheduler; atomic_t tx_ampdu_scheduler;
...@@ -456,7 +456,7 @@ struct carl9170_sta_info { ...@@ -456,7 +456,7 @@ struct carl9170_sta_info {
bool sleeping; bool sleeping;
atomic_t pending_frames; atomic_t pending_frames;
unsigned int ampdu_max_len; unsigned int ampdu_max_len;
struct carl9170_sta_tid *agg[CARL9170_NUM_TID]; struct carl9170_sta_tid __rcu *agg[CARL9170_NUM_TID];
struct carl9170_ba_stats stats[CARL9170_NUM_TID]; struct carl9170_ba_stats stats[CARL9170_NUM_TID];
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment