From patchwork Thu Dec 24 08:33:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 7915751 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 499D19F1AF for ; Thu, 24 Dec 2015 08:34:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 703C52052F for ; Thu, 24 Dec 2015 08:34:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 96EF0205B5 for ; Thu, 24 Dec 2015 08:34:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755081AbbLXIdb (ORCPT ); Thu, 24 Dec 2015 03:33:31 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36700 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbbLXId3 (ORCPT ); Thu, 24 Dec 2015 03:33:29 -0500 Received: by mail-pa0-f42.google.com with SMTP id q3so125103279pav.3 for ; Thu, 24 Dec 2015 00:33:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kryo-se.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=IhPESTn4RG+HuKpn5bDwo7/SipDhLaJTUPPanm5n+wM=; b=Ae1CA8qBMr1FXz9mR+OouI3sm4W5mfZzfia+k879xdwFp1PYgsMT/KCk9/SITnvmqg iTJyWLJxjE8Rq+1IW2i2P9EdXqaTI+Y3r545dJtRtQTNRv4navOoLMg+cneGW5utoWt/ WRlal32b+WGQninpWs4nLBndU7Y9NsvLLcV5qWWBWJ0ZX4PfxNZTMxcGEwF+QvqiF4VC ev5wLGD1qpi4h5fl781lVhWlfWy5Orrda0cz0zdU/4MC7JdsMDtp0F20hZR4b+e5TIN7 Oaidl1ocU8cwY9/sTyWY79B5HYRAiIDyKCQrRGkCE5HToFnTLmQo7YNInoMM4fugqhRf MwwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IhPESTn4RG+HuKpn5bDwo7/SipDhLaJTUPPanm5n+wM=; b=QErN/Ozom/ZljFXnKRe8eSXz+9+R3hZHCQMUwYTNEfCpOOJGsGxJwqIVgPJsOBnhoo vLMThEkPXR+1snU4K7SeqJ6hJGeLoKKCBQE+EVeh0VKL3ifDo8R1IePOcEuU/RoEO6dC 5IowJzC3hmaNclDvOe+00tPv8JexMJb9iYyWQSAoLqjN3BzJhbwaDIQcWBCw0lvwFdkr 6aTzRfLeP34HQhKo7bxK6Bi0KePRIq2HPhHWIOf836a690/n5vyLUIpwiK8HsUdsxudV 2V0f2DydFM86a8QNjOXzaNaQt5I96pS9jxxp2/32TJLneSxp/xBslCiUrnbn7yHRBWAq y2Nw== X-Gm-Message-State: ALoCoQmNrD5HHP112ppF0A7FPaeI9rE5zTqpUA7kKsvCzXqwPPvpF9tUVYtFN4Bx6c3yMAFFkgHyQlaMnX8qmII3DgsUrSWrlA== X-Received: by 10.66.97.71 with SMTP id dy7mr50922275pab.8.1450946009266; Thu, 24 Dec 2015 00:33:29 -0800 (PST) Received: from tuxbot.san.rr.com (cpe-76-167-68-231.natsow.res.rr.com. [76.167.68.231]) by smtp.gmail.com with ESMTPSA id r90sm52548020pfi.80.2015.12.24.00.33.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Dec 2015 00:33:28 -0800 (PST) From: Bjorn Andersson X-Google-Original-From: Bjorn Andersson To: Johannes Berg , "David S. Miller" Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR() Date: Thu, 24 Dec 2015 00:33:26 -0800 Message-Id: <1450946006-7498-1-git-send-email-bjorn.andersson@sonymobile.com> X-Mailer: git-send-email 2.5.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make the addr parameter const in SET_IEEE80211_PERM_ADDR() to save clients from having to cast away a const qualifier. Signed-off-by: Bjorn Andersson --- include/net/mac80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 7c30faff245f..a6f3c9c4b7c2 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -2167,7 +2167,7 @@ static inline void SET_IEEE80211_DEV(struct ieee80211_hw *hw, struct device *dev * @hw: the &struct ieee80211_hw to set the MAC address for * @addr: the address to set */ -static inline void SET_IEEE80211_PERM_ADDR(struct ieee80211_hw *hw, u8 *addr) +static inline void SET_IEEE80211_PERM_ADDR(struct ieee80211_hw *hw, const u8 *addr) { memcpy(hw->wiphy->perm_addr, addr, ETH_ALEN); }