Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3495166pxb; Mon, 18 Oct 2021 16:54:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZamtLpK/8gujf5meNzw5lWi2otcEVKT4O2mKF6HOW3bt+uAesPTRTE1XmzpgTOb8GsmNc X-Received: by 2002:a17:906:b247:: with SMTP id ce7mr33144547ejb.473.1634601250607; Mon, 18 Oct 2021 16:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634601250; cv=none; d=google.com; s=arc-20160816; b=hzvMr6Z7bd7sX7Fcb72bK9O5whJ9M9/Sc/LiWJmHd3KeHQ4t98zWAHbRH1IO20aACd wudsPeqsZIhCCv/aUI808nl7zejSaJidXv5ZE0HIBlTFjcY3kinE+p4YY/3srKoZqy7p nTSgOy0KY6ZaxK8LaGzYUdKPbIlHYuvXuDmZ1FWUaexvAt4p3ExZDRWL6aFljupTlnoI 8jfD+z11DlPWssF9hYNLM4Tk5wgVDJdx6ra85aHSzmzLvyPoj6Voa0w33Z0syaRZ2qic GuihC5FWGiXwYt0OiFGabhxr53QnWWY+C+8eHvPRqsaz4aVzwFb6vcIariszLruIplj0 b5pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Qz8Kd09/un07gZ8VlZc9gzRFHwV0p6PPuOq0k6pEUYY=; b=ueet92QFlnyC8ODgCQYBfrAMrakPwv3C1zFgjG7xVnB2vp/E2gWggRBiXWYY9Za/QO RM1j0OvunmyEfhMI/Nm99RZoW5oeH7/cd3SMlgI5QvRKtg5Tyj05fnXNXgc3cc3Ptbt6 9VExlCa23I1q2G6hJTymbYZc4t2/Ny0KkV8Je+FtfTZy4tWglNnpinQzIfmmcZxO27JU 6CM5dtPUfEEK5qT67H5NOathwSkUlepfaCIbbpUkLY6fn+guB1leOBSMOYxVAqL+xgJX P08I4MatV80znXtTGq47MUVeoDFLP0Qfv6vrcojTYH9QKUXzqgUIE+rsWAxevGJjQsG7 r7cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J4SQpqYU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ja7si21167946ejc.324.2021.10.18.16.53.55; Mon, 18 Oct 2021 16:54:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J4SQpqYU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233600AbhJRXwo (ORCPT + 64 others); Mon, 18 Oct 2021 19:52:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:34992 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233236AbhJRXwl (ORCPT ); Mon, 18 Oct 2021 19:52:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 243956127B; Mon, 18 Oct 2021 23:50:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634601029; bh=xKtnU/YSjFfwcbqPxqi4YidSRh0HkLrNGsdlECBJNps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J4SQpqYU+Daj2gBpnLkQjuo6RiTkP7gSm3QyGzlS94RVBmj8T6pdIYlqvFkafuD9g 4ATTxElxU3mJM5/St2dm0LQySMueaJh+j7gNgL4wOg/6m1ymR7syoF76xhuuBVs+PC 36dek9ld9862j0puOMtcFy6hoezleUjv20BnT6lGhAg5L48kHB3riftYks8+xELTRH GqTbYNCLGXIS0EuXXpxZZdSs+uw/ivM/5YHgd7SS8JI+r+rfljqf6n2PHQHHgs9rCH Rd313vvr8QZT+3kOe8PCrPDTP+F/xUHiqPLBxALQvshFcizsSf1N8IZZm1PwamC5Nf K9s6QlPEoF+Iw== From: Jakub Kicinski To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Jakub Kicinski , aspriel@gmail.com, franky.lin@broadcom.com, hante.meuleman@broadcom.com, chi-hsien.lin@infineon.com, wright.feng@infineon.com, chung-hsien.hsu@infineon.com, johannes.berg@intel.com, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com Subject: [PATCH 07/15] wireless: brcmfmac: prepare for const netdev->dev_addr Date: Mon, 18 Oct 2021 16:50:13 -0700 Message-Id: <20211018235021.1279697-8-kuba@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211018235021.1279697-1-kuba@kernel.org> References: <20211018235021.1279697-1-kuba@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org netdev->dev_addr will become const soon. Make sure local variables maintain that qualifier. Signed-off-by: Jakub Kicinski --- CC: aspriel@gmail.com CC: franky.lin@broadcom.com CC: hante.meuleman@broadcom.com CC: chi-hsien.lin@infineon.com CC: wright.feng@infineon.com CC: chung-hsien.hsu@infineon.com CC: kvalo@codeaurora.org CC: johannes.berg@intel.com CC: linux-wireless@vger.kernel.org CC: brcm80211-dev-list.pdl@broadcom.com CC: SHA-cyfmac-dev-list@infineon.com --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c index 9ac0d8c73d5a..4735063e4c03 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c @@ -2125,7 +2125,7 @@ static int brcmf_p2p_disable_p2p_if(struct brcmf_cfg80211_vif *vif) struct brcmf_cfg80211_info *cfg = wdev_to_cfg(&vif->wdev); struct net_device *pri_ndev = cfg_to_ndev(cfg); struct brcmf_if *ifp = netdev_priv(pri_ndev); - u8 *addr = vif->wdev.netdev->dev_addr; + const u8 *addr = vif->wdev.netdev->dev_addr; return brcmf_fil_iovar_data_set(ifp, "p2p_ifdis", addr, ETH_ALEN); } @@ -2135,7 +2135,7 @@ static int brcmf_p2p_release_p2p_if(struct brcmf_cfg80211_vif *vif) struct brcmf_cfg80211_info *cfg = wdev_to_cfg(&vif->wdev); struct net_device *pri_ndev = cfg_to_ndev(cfg); struct brcmf_if *ifp = netdev_priv(pri_ndev); - u8 *addr = vif->wdev.netdev->dev_addr; + const u8 *addr = vif->wdev.netdev->dev_addr; return brcmf_fil_iovar_data_set(ifp, "p2p_ifdel", addr, ETH_ALEN); } -- 2.31.1