aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-12-28 06:22:02 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-01-03 07:01:44 -0500
commit1c06ef9831c78648f719a174e4598ae2600b0cf7 (patch)
treec4e5fd59f7d3dc9d0f360701348b86065f08d13c
parentec61cd63dd3f3bf982180b2bcc1b325160d73837 (diff)
wireless: use __aligned
Use __aligned(...) instead of __attribute__((aligned(...))) in mac80211 and cfg80211. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--include/net/cfg80211.h4
-rw-r--r--include/net/mac80211.h6
-rw-r--r--net/wireless/core.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 1f74360b527c..e5f085c89221 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1256,7 +1256,7 @@ struct cfg80211_bss {
1256 1256
1257 u8 bssid[ETH_ALEN]; 1257 u8 bssid[ETH_ALEN];
1258 1258
1259 u8 priv[0] __attribute__((__aligned__(sizeof(void *)))); 1259 u8 priv[0] __aligned(sizeof(void *));
1260}; 1260};
1261 1261
1262/** 1262/**
@@ -2392,7 +2392,7 @@ struct wiphy {
2392 const struct iw_handler_def *wext; 2392 const struct iw_handler_def *wext;
2393#endif 2393#endif
2394 2394
2395 char priv[0] __attribute__((__aligned__(NETDEV_ALIGN))); 2395 char priv[0] __aligned(NETDEV_ALIGN);
2396}; 2396};
2397 2397
2398static inline struct net *wiphy_net(struct wiphy *wiphy) 2398static inline struct net *wiphy_net(struct wiphy *wiphy)
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index a464f4fb36a0..23daed3c78ed 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -173,7 +173,7 @@ struct ieee80211_chanctx_conf {
173 173
174 u8 rx_chains_static, rx_chains_dynamic; 174 u8 rx_chains_static, rx_chains_dynamic;
175 175
176 u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *)))); 176 u8 drv_priv[0] __aligned(sizeof(void *));
177}; 177};
178 178
179/** 179/**
@@ -1059,7 +1059,7 @@ struct ieee80211_vif {
1059 u32 driver_flags; 1059 u32 driver_flags;
1060 1060
1061 /* must be last */ 1061 /* must be last */
1062 u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *)))); 1062 u8 drv_priv[0] __aligned(sizeof(void *));
1063}; 1063};
1064 1064
1065static inline bool ieee80211_vif_is_mesh(struct ieee80211_vif *vif) 1065static inline bool ieee80211_vif_is_mesh(struct ieee80211_vif *vif)
@@ -1209,7 +1209,7 @@ struct ieee80211_sta {
1209 u8 max_sp; 1209 u8 max_sp;
1210 1210
1211 /* must be last */ 1211 /* must be last */
1212 u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *)))); 1212 u8 drv_priv[0] __aligned(sizeof(void *));
1213}; 1213};
1214 1214
1215/** 1215/**
diff --git a/net/wireless/core.h b/net/wireless/core.h
index b8f4630c6ada..f342267e3620 100644
--- a/net/wireless/core.h
+++ b/net/wireless/core.h
@@ -89,7 +89,7 @@ struct cfg80211_registered_device {
89 89
90 /* must be last because of the way we do wiphy_priv(), 90 /* must be last because of the way we do wiphy_priv(),
91 * and it should at least be aligned to NETDEV_ALIGN */ 91 * and it should at least be aligned to NETDEV_ALIGN */
92 struct wiphy wiphy __attribute__((__aligned__(NETDEV_ALIGN))); 92 struct wiphy wiphy __aligned(NETDEV_ALIGN);
93}; 93};
94 94
95static inline 95static inline