Message ID | 1560789179-3857-1-git-send-email-kvalo@codeaurora.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 0ef38ce491f8f2e0038ba64bfc05d630cf617b8b |
Delegated to: | Kalle Valo |
Headers | show |
Series | [1/5] ath11k: 'static' is not at beginning of declaration [-Wold-style-declaration] | expand |
Kalle Valo <kvalo@codeaurora.org> wrote: > Fix gcc W=1 warnings: > > drivers/net/wireless/ath/ath11k/mac.c:5375:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] > drivers/net/wireless/ath/ath11k/mac.c:5380:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] > drivers/net/wireless/ath/ath11k/mac.c:5386:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] > drivers/net/wireless/ath/ath11k/mac.c:5392:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] > > Signed-off-by: Kalle Valo <kvalo@codeaurora.org> 5 patches applied to ath11k-bringup branch of ath.git, thanks. 0ef38ce491f8 ath11k: 'static' is not at beginning of declaration [-Wold-style-declaration] 1e854321455c ath11k: this statement may fall through [-Wimplicit-fallthrough=] 022ffde5c6a1 ath11k: variable set but not used [-Wunused-but-set-variable] f39b098aac7e ath11k: comparison is always true due to limited range of data type [-Wtype-limits] 34276bb47f8d ath11k: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 919668967ef6..ab71e121e107 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -5372,24 +5372,24 @@ static int ath11k_mac_setup_channels_rates(struct ath11k *ar, return 0; } -const static u8 ath11k_if_types_ext_capa[] = { +static const u8 ath11k_if_types_ext_capa[] = { [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING, [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF, }; -const static u8 ath11k_if_types_ext_capa_sta[] = { +static const u8 ath11k_if_types_ext_capa_sta[] = { [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING, [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF, [9] = WLAN_EXT_CAPA10_TWT_REQUESTER_SUPPORT, }; -const static u8 ath11k_if_types_ext_capa_ap[] = { +static const u8 ath11k_if_types_ext_capa_ap[] = { [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING, [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF, [9] = WLAN_EXT_CAPA10_TWT_RESPONDER_SUPPORT, }; -const static struct wiphy_iftype_ext_capab ath11k_iftypes_ext_capa[] = { +static const struct wiphy_iftype_ext_capab ath11k_iftypes_ext_capa[] = { { .extended_capabilities = ath11k_if_types_ext_capa, .extended_capabilities_mask = ath11k_if_types_ext_capa,
Fix gcc W=1 warnings: drivers/net/wireless/ath/ath11k/mac.c:5375:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] drivers/net/wireless/ath/ath11k/mac.c:5380:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] drivers/net/wireless/ath/ath11k/mac.c:5386:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] drivers/net/wireless/ath/ath11k/mac.c:5392:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] Signed-off-by: Kalle Valo <kvalo@codeaurora.org> --- drivers/net/wireless/ath/ath11k/mac.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)