Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1473171pxb; Wed, 2 Feb 2022 05:52:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/21MNMp+pjCSjOJPvHenzcAJJ8M/lKXUGXlUpCsvlRPX1uRkI6oKoCocPhWp7Fob37lOv X-Received: by 2002:a63:9307:: with SMTP id b7mr24455392pge.291.1643809939772; Wed, 02 Feb 2022 05:52:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643809939; cv=none; d=google.com; s=arc-20160816; b=FD8nhriLKvNDcUq48hZFvDI69nVtf9JfNh2AdBsHmKXKMsUg9Om1WOXjeye/r1+fNB 9CUgTbVV5QV05khtEdwI+4k9PHdc1AQ5ktkl0DcwL/T4eY3NMXBhYc5cAl/UGMyrFD/t i0397f/qlMybLNqJek7w6xGSxZFvMhQjwkGS0aNKcU3BK5JrPp7tOZzf8P6oHMMQC2Rr awcvLJguDStCo92X1DIPrnxUarPB+3aoUkl7HvqRAPgZTvJ3RL8/aDnAml6uVJ8QCceR c//5MbAzy5BonMkSf06PB6VUxXqyfxowXuoKx/688xbh5d/9n8S3sYuAhU4lkyIUZW8r KM7w== 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=OWU5G8pGnzO+DdBLNKFzy0auuOM5hfo1YQrCCd4fxn8=; b=AsuRazpxUlj8cTQ5ysVX2ua7DB5FUsj//KFhCEv5hhR6TBNBH57CZ3uHrrVN/K3x6y MKkqSVvoNHcF4hqLPBB6QKOyxkpLBqrEhE9IXkfdtOF19bgf9u+mb8bAV3/rX5+X/cDw pElvxTVSMr5/geezkBjFi5WvficvB72bMlYVdlij6V96fJCtH/zFiGqmcvsRNPr4s4jV MCPdeu2X/5UnpkGcy9ufKPd9rceHgf/C8L3FbnwVQlZKXuKxdoMIV91VV81HQl1gyyOy CRaEYA3zUJHS+3CESPEp9T+pPpMPFB1gy7lAMuuhmaUkH01aYoIaTykjzjsy4pEezsqn 5B1w== 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 q9si20202544pgg.428.2022.02.02.05.52.10; Wed, 02 Feb 2022 05:52:19 -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 S245236AbiBBIuH (ORCPT + 65 others); Wed, 2 Feb 2022 03:50:07 -0500 Received: from paleale.coelho.fi ([176.9.41.70]:37936 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S245239AbiBBIuG (ORCPT ); Wed, 2 Feb 2022 03:50:06 -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 1nFBL1-0004v8-Mw; Wed, 02 Feb 2022 10:50:04 +0200 From: Luca Coelho To: johannes@sipsolutions.net Cc: luca@coelho.fi, linux-wireless@vger.kernel.org Date: Wed, 2 Feb 2022 10:49:40 +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 07/14] ieee80211: radiotap: 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/net/ieee80211_radiotap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/net/ieee80211_radiotap.h b/include/net/ieee80211_radiotap.h index 11630351c978..598f53d2a3a0 100644 --- a/include/net/ieee80211_radiotap.h +++ b/include/net/ieee80211_radiotap.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2017 Intel Deutschland GmbH - * Copyright (c) 2018-2019 Intel Corporation + * Copyright (c) 2018-2019, 2021 Intel Corporation * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -365,7 +365,7 @@ enum ieee80211_radiotap_zero_len_psdu_type { */ static inline u16 ieee80211_get_radiotap_len(const char *data) { - struct ieee80211_radiotap_header *hdr = (void *)data; + const struct ieee80211_radiotap_header *hdr = (const void *)data; return get_unaligned_le16(&hdr->it_len); } -- 2.34.1