Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932187AbbGIVvv (ORCPT ); Thu, 9 Jul 2015 17:51:51 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:45815 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932162AbbGIVvh (ORCPT ); Thu, 9 Jul 2015 17:51:37 -0400 Date: Thu, 09 Jul 2015 14:51:36 -0700 (PDT) Message-Id: <20150709.145136.29434262043413419.davem@davemloft.net> To: vthakkar1994@gmail.com Cc: f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: systemport: Use eth_hw_addr_random From: David Miller In-Reply-To: <20150708051930.GA13317@vaishali-Ideapad-Z570> References: <20150708051930.GA13317@vaishali-Ideapad-Z570> X-Mailer: Mew version 6.6 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 09 Jul 2015 14:51:37 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 720 Lines: 24 From: Vaishali Thakkar Date: Wed, 8 Jul 2015 10:49:30 +0530 > Use eth_hw_addr_random() instead of calling random_ether_addr(). > Here, this change is setting addr_assign_type to NET_ADDR_RANDOM. > > The Coccinelle semantic patch that performs this transformation > is as follows: > > @@ > identifier a,b; > @@ > > -random_ether_addr(a->b); > +eth_hw_addr_random(a); > > Signed-off-by: Vaishali Thakkar Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/