Received: by 10.213.65.68 with SMTP id h4csp394731imn; Sat, 31 Mar 2018 00:09:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx491zdpHh3jqHVw1zAqUI6dYZBDEBZ/bo5aIndnYmKrgLsGcIM34NHVzURkFUQldl4eA/vhs X-Received: by 10.98.108.69 with SMTP id h66mr1454849pfc.43.1522480194455; Sat, 31 Mar 2018 00:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522480194; cv=none; d=google.com; s=arc-20160816; b=d5tom5xaNM04FC+pDGtdJz9opfiD0wKeoZxXU8HSoZkfObncEcK8E/o43rcPkfWV56 Vn+l5WMEfg+qSoD0ASKHJOvtJSgHyoeak/OiTQFNnxiKZgNJF0Olbsx2vx0XZggPqJkA guNqM5KDa7Li+PR8IEc26CoMqFpxUoNb6g7hb3Hcj37E7oywQm0l8cfSkqmyy4XcgPYd a/hzCl0On5QOXxtg/Frma84U29sQoBh29Us/DgTzWdbPU9ZC9BmLFqWF9KjvttpzpBJz vjSI05AWLB/4lPTpIo6Vk19Cy+Opv/kIjr+SXncjZJPTH8qW2ItQe9FguQSyvjuT3e0D gw1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Vd8oTCcOxg7QmKMUOOrYyWnT4MAGLG4V8MQ6zeC2gMg=; b=ZKH7XC9f94Dduq/Y60S9OcG21H1NDx/ZOP4rb2ZiZV2DT4Z8uJ7jYk/EVd3aUIznxN ksB3OpnzbNbBjbPKs8f3HjbC4NEsy4+Wq8u++ETtJICL8DKqC7fhVhBuqh40nBzQERSd /ftGemR1b6ERu1oKj8GVuq8xs+SDzp7/g9JBgROitMhy2eufEpqLWWqCHAzMycUuujsw ty9D/Hm2q30OEGL+qQPIz+BgMspKSgFXUoVknIHssiZPjxjxmvc7VDJpZMfkbDXpTiF9 sUdDb9cmTCvUc/qXOJSz7t9PJvhfrJBM7MYHZJMxQdMnvOfpS4DgiVrskPAPM8TN3pnI yS+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si7380238pff.312.2018.03.31.00.09.16; Sat, 31 Mar 2018 00:09:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753390AbeCaHHM (ORCPT + 99 others); Sat, 31 Mar 2018 03:07:12 -0400 Received: from smtprelay0103.hostedemail.com ([216.40.44.103]:46881 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752967AbeCaHF5 (ORCPT ); Sat, 31 Mar 2018 03:05:57 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id F053A180A8877; Sat, 31 Mar 2018 07:05:55 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:800:960:968:973:981:988:989:1260:1345:1359:1437:1534:1542:1711:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3353:3865:3866:3867:3868:4321:4419:5007:6117:6261:9592:10004:10848:11026:11473:11657:11658:11914:12043:12114:12296:12438:12555:12683:12699:12737:12895:12986:13255:13869:14181:14394:14721:21080:21451:21627:30005:30012:30054:30055,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:19,LUA_SUMMARY:none X-HE-Tag: field84_8af788809fd60 X-Filterd-Recvd-Size: 3750 Received: from joe-laptop.perches.com (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Sat, 31 Mar 2018 07:05:54 +0000 (UTC) From: Joe Perches To: Stanislaw Gruszka Cc: Kalle Valo , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/12] iwlegacy: Remove EXPORT_SYMBOL(il_bcast_addr) and use ether_broadcast_addr Date: Sat, 31 Mar 2018 00:05:23 -0700 Message-Id: X-Mailer: git-send-email 2.15.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the local array and use the new global instead to save some small amount of object code. Signed-off-by: Joe Perches --- drivers/net/wireless/intel/iwlegacy/3945-mac.c | 2 +- drivers/net/wireless/intel/iwlegacy/4965-mac.c | 2 +- drivers/net/wireless/intel/iwlegacy/common.c | 3 --- drivers/net/wireless/intel/iwlegacy/common.h | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/intel/iwlegacy/3945-mac.c b/drivers/net/wireless/intel/iwlegacy/3945-mac.c index 62a9794f952b..770c7aa13434 100644 --- a/drivers/net/wireless/intel/iwlegacy/3945-mac.c +++ b/drivers/net/wireless/intel/iwlegacy/3945-mac.c @@ -2352,7 +2352,7 @@ il3945_alloc_bcast_station(struct il_priv *il) u8 sta_id; spin_lock_irqsave(&il->sta_lock, flags); - sta_id = il_prep_station(il, il_bcast_addr, false, NULL); + sta_id = il_prep_station(il, ether_broadcast_addr, false, NULL); if (sta_id == IL_INVALID_STATION) { IL_ERR("Unable to prepare broadcast station\n"); spin_unlock_irqrestore(&il->sta_lock, flags); diff --git a/drivers/net/wireless/intel/iwlegacy/4965-mac.c b/drivers/net/wireless/intel/iwlegacy/4965-mac.c index 562e94870a9c..5772cbd9291c 100644 --- a/drivers/net/wireless/intel/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/intel/iwlegacy/4965-mac.c @@ -3536,7 +3536,7 @@ il4965_alloc_bcast_station(struct il_priv *il) u8 sta_id; spin_lock_irqsave(&il->sta_lock, flags); - sta_id = il_prep_station(il, il_bcast_addr, false, NULL); + sta_id = il_prep_station(il, ether_broadcast_addr, false, NULL); if (sta_id == IL_INVALID_STATION) { IL_ERR("Unable to prepare broadcast station\n"); spin_unlock_irqrestore(&il->sta_lock, flags); diff --git a/drivers/net/wireless/intel/iwlegacy/common.c b/drivers/net/wireless/intel/iwlegacy/common.c index 063e19ced7c8..5853b1dedea1 100644 --- a/drivers/net/wireless/intel/iwlegacy/common.c +++ b/drivers/net/wireless/intel/iwlegacy/common.c @@ -3378,9 +3378,6 @@ MODULE_PARM_DESC(bt_coex_active, "enable wifi/bluetooth co-exist"); u32 il_debug_level; EXPORT_SYMBOL(il_debug_level); -const u8 il_bcast_addr[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; -EXPORT_SYMBOL(il_bcast_addr); - #define MAX_BIT_RATE_40_MHZ 150 /* Mbps */ #define MAX_BIT_RATE_20_MHZ 72 /* Mbps */ static void diff --git a/drivers/net/wireless/intel/iwlegacy/common.h b/drivers/net/wireless/intel/iwlegacy/common.h index dc6a74a05983..6a6b43c5e4d7 100644 --- a/drivers/net/wireless/intel/iwlegacy/common.h +++ b/drivers/net/wireless/intel/iwlegacy/common.h @@ -860,7 +860,6 @@ struct il_hw_params { * ****************************************************************************/ void il4965_update_chain_flags(struct il_priv *il); -extern const u8 il_bcast_addr[ETH_ALEN]; int il_queue_space(const struct il_queue *q); static inline int il_queue_used(const struct il_queue *q, int i) -- 2.15.0