mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
ieee80211: fix -Wcast-qual warnings
When enabling -Wcast-qual e.g. via W=3, we get a lot of warnings from this file, whenever it's included. Since the fixes are simple, just do that. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Link: https://lore.kernel.org/r/iwlwifi.20220202104617.79ec4a4bab29.I8177a0c79d656c552e22c88931d8da06f2977896@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
5666ee154f
commit
bed8947893
1 changed files with 4 additions and 4 deletions
|
@ -2427,7 +2427,7 @@ struct ieee80211_tx_pwr_env {
|
|||
static inline u8
|
||||
ieee80211_he_oper_size(const u8 *he_oper_ie)
|
||||
{
|
||||
struct ieee80211_he_operation *he_oper = (void *)he_oper_ie;
|
||||
const struct ieee80211_he_operation *he_oper = (const void *)he_oper_ie;
|
||||
u8 oper_len = sizeof(struct ieee80211_he_operation);
|
||||
u32 he_oper_params;
|
||||
|
||||
|
@ -2460,7 +2460,7 @@ ieee80211_he_oper_size(const u8 *he_oper_ie)
|
|||
static inline const struct ieee80211_he_6ghz_oper *
|
||||
ieee80211_he_6ghz_oper(const struct ieee80211_he_operation *he_oper)
|
||||
{
|
||||
const u8 *ret = (void *)&he_oper->optional;
|
||||
const u8 *ret = (const void *)&he_oper->optional;
|
||||
u32 he_oper_params;
|
||||
|
||||
if (!he_oper)
|
||||
|
@ -2475,7 +2475,7 @@ ieee80211_he_6ghz_oper(const struct ieee80211_he_operation *he_oper)
|
|||
if (he_oper_params & IEEE80211_HE_OPERATION_CO_HOSTED_BSS)
|
||||
ret++;
|
||||
|
||||
return (void *)ret;
|
||||
return (const void *)ret;
|
||||
}
|
||||
|
||||
/* HE Spatial Reuse defines */
|
||||
|
@ -2496,7 +2496,7 @@ ieee80211_he_6ghz_oper(const struct ieee80211_he_operation *he_oper)
|
|||
static inline u8
|
||||
ieee80211_he_spr_size(const u8 *he_spr_ie)
|
||||
{
|
||||
struct ieee80211_he_spr *he_spr = (void *)he_spr_ie;
|
||||
const struct ieee80211_he_spr *he_spr = (const void *)he_spr_ie;
|
||||
u8 spr_len = sizeof(struct ieee80211_he_spr);
|
||||
u8 he_spr_params;
|
||||
|
||||
|
|
Loading…
Reference in a new issue