Received: by 10.213.65.68 with SMTP id h4csp688706imn; Sat, 31 Mar 2018 07:37:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx49kIX4avwVuoNbdeWdio+USau/QDkgxtYIYJA3uVqqKqdt7ePdwGcP6HnuqAzF29YRCcAEo X-Received: by 10.98.224.93 with SMTP id f90mr2296284pfh.21.1522507029285; Sat, 31 Mar 2018 07:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522507029; cv=none; d=google.com; s=arc-20160816; b=whocfFTOJqfe+DelhTFlvAcPYn9iIr0XdtPRnCUkrh3ReLfSJ4up0Hi0EMxvIJucFX ZfdxJYQ7+12I2h4m8l1uox4NUiE3yGbhQ6vRBchoQ9lkzhSRIwkI62Uy0M+GCWj1OjkP d32dSPXiO7Jwu9vnQiCnL8twuzQ1gXVtAIA0hYgiH+b+eQhFhX94XFBEO7kUcne/2hNo SNhu7Ff2n25dvGFRAwa8MmBlRY5tQHtKb1Iz6jtXPuOFJjZLW+l9Zg4a5MsFag7KlNtZ wY+05BkBDB9v3mCB33Mj6ufR0GdoUl8Q7fR2yNJhi/ZsE2AWdZLOdJYkrntAEuuyvEHN +ZbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=ozTKtZ0lf855VffxgSpc8dZ2vUy9MBUwdwG9jraQ7ws=; b=gcAbeJitVX1YTACBjSwk2s3GDhvvWscToKpi9AxIuCRq0yDJSsMuUU3N1KKCXcG1Xi 9wIGXE1ec4Or23zs4RopMX0o12OIFgzba2GvHn63LOr26SC3ITy0ya39R7iYmEj9U2p4 lTcs1mzWVwB3pCGwK87iRoYeoksCM4CQk3rDOnLpJIGBTAUq3Fu5ut848C2JRqKU/n4J mfwjNiKMOBcrtWOFUaHfZUX8Tjd1TgzTi5HmUxbXGylHYM5JA40/WKE3UaZosFx1aX/x RPuk/55YsCJOXuEvBI370a/e0CNprrXdbbDwy50RiHwsEdx+MCwBi6vz0lW8z+1IhETh oWiQ== 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 m72si8086790pfi.236.2018.03.31.07.36.28; Sat, 31 Mar 2018 07:37:09 -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 S1752911AbeCaOde (ORCPT + 99 others); Sat, 31 Mar 2018 10:33:34 -0400 Received: from smtprelay0056.hostedemail.com ([216.40.44.56]:59783 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752153AbeCaOdc (ORCPT ); Sat, 31 Mar 2018 10:33:32 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id BBF9E837F24A; Sat, 31 Mar 2018 14:33:31 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:973:981:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3351:3622:3865:3867:3870:4321:4605:5007:10004:10400:10848:11026:11232:11658:11914:12043:12048:12050:12438:12555:12740:12760:12895:13069:13161:13229:13255:13311:13357:13439:14659:14721:21080:21433:21627:30003:30012:30054:30091,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:28,LUA_SUMMARY:none X-HE-Tag: rake49_75d6cc608c806 X-Filterd-Recvd-Size: 2196 Received: from XPS-9350 (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Sat, 31 Mar 2018 14:33:29 +0000 (UTC) Message-ID: <1522506808.11653.7.camel@perches.com> Subject: Re: [PATCH 06/12] wireless: Convert simple uses of a static const Ethernet broadcast address From: Joe Perches To: Pkshih , "huxm@marvell.com" , "gbhat@marvell.com" , "jussi.kivilinna@iki.fi" , "nishants@marvell.com" , "kvalo@codeaurora.org" , "amitkarwar@gmail.com" , "chunkeey@googlemail.com" Cc: "linux-wireless@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "b43-dev@lists.infradead.org" Date: Sat, 31 Mar 2018 07:33:28 -0700 In-Reply-To: <1522504872.1910.17.camel@realtek.com> References: <79196f134a513d50968e8e208a0e56b3c0236ee3.1522479607.git.joe@perches.com> <1522504872.1910.17.camel@realtek.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2018-03-31 at 14:01 +0000, Pkshih wrote: > On Sat, 2018-03-31 at 00:05 -0700, Joe Perches wrote: > > Use the new ether_broadcast_addr global instead to save some object code. [] > > diff --git a/drivers/net/wireless/realtek/rtlwifi/core.c [] > > @@ -1649,7 +1648,7 @@ static int rtl_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, > > memcpy(rtlpriv->sec.key_buf[key_idx], > > key->key, key->keylen); > > rtlpriv->sec.key_len[key_idx] = key->keylen; > > - memcpy(mac_addr, bcast_addr, ETH_ALEN); > > + memcpy(mac_addr, ether_broadcast_addr, ETH_ALEN); > > Use ether_addr_copy(mac_addr, ether_broadcast_addr) ? This should use eth_broadcast_addr(mac_addr) instead. There are similar conversion still possible in the tree. One day.