Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2210220pxb; Thu, 3 Feb 2022 01:35:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJygEoDRRT41tqOaFZAIC6EwToejFUfSiAIAVxN0T1Nn9asusfA0U4zuBdftWFFCxvgbG8n+ X-Received: by 2002:a05:6402:5191:: with SMTP id q17mr34714884edd.395.1643880931002; Thu, 03 Feb 2022 01:35:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643880930; cv=none; d=google.com; s=arc-20160816; b=fRjkrTO4E52AyP3COLMkdXRaFiSiEgROECKDj8PvlAWXq2R0cMZCXXlGE16REu3lpr sN2AK96sp3+mQbslGeTb0u304vuI19CQ54k5bKqcQsqWF1iVIxBt/BqmOt5qQIBXFqAe WKFlMOgG5YZLZaJNpLv36TfiQh3ijpR/SC6myGjEhWTtuaijPUq3kb6BKbbRaqjxO3hr BoykWLeyhTuLfJQZEQwmo3njepHJWUWeaIgIPq/pDBH9u739tBPF5Eb0vU+fVQrZOHzZ qu/UkvYBnMrQbHQ0pyUjPspHVyaw8NAc14NYXHNmnEv5TtekfVG8zf0pcSPzHyHtmPZe TGHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from; bh=tC+82ngOc8aIUwdFvfpARro0KfosnzMLr1TsiMOVjOI=; b=BNX/xXTfHn4McPmZjdrE++6BuBg0Bu3PT6VFus5joFFuAFClElMJ/HHQvXuHdWlo3S mj2y7YkiXxjjv+CmlxQnJ9SaA3afuYsSjdyohXHrevysdcYx+zuiZfwtiePx9XdE+fOX BgHMNXC+X+4OR1j4dY+XrRXxPw+L0NiXRm613iOqNpXv6nI9bXeOX/YTbutg7lC/M2EF l0EH156mdYZhzhGXnK8WlOxoY/WBNSdNYwyjF0W8bK7bQSIzdXWMh3p6YXlzVn9Qu5Bq y3fMlgCHRN9S7KGs358wu3fRlstyNjC2JaiQiCdq0OLqIQgalirqg15osbzA5nEYvYfb D9pA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm3si12723764ejc.792.2022.02.03.01.35.10; Thu, 03 Feb 2022 01:35:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245230AbiBBIuE (ORCPT + 65 others); Wed, 2 Feb 2022 03:50:04 -0500 Received: from paleale.coelho.fi ([176.9.41.70]:37932 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S245225AbiBBIuE (ORCPT ); Wed, 2 Feb 2022 03:50:04 -0500 Received: from 91-156-4-210.elisa-laajakaista.fi ([91.156.4.210] helo=kveik.lan) by farmhouse.coelho.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1nFBL0-0004v8-4l; Wed, 02 Feb 2022 10:50:03 +0200 From: Luca Coelho To: johannes@sipsolutions.net Cc: luca@coelho.fi, linux-wireless@vger.kernel.org Date: Wed, 2 Feb 2022 10:49:38 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220202084947.370289-1-luca@coelho.fi> References: <20220202084947.370289-1-luca@coelho.fi> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on farmhouse.coelho.fi X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_IP autolearn=ham autolearn_force=no version=3.4.6 Subject: [PATCH 05/14] ieee80211: fix -Wcast-qual warnings Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Johannes Berg 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 Signed-off-by: Luca Coelho --- include/linux/ieee80211.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 559b6c644938..60ee7b3f58e7 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -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; -- 2.34.1