Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1660225imm; Fri, 22 Jun 2018 23:30:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL5oHVv3VwVLnKzUMqbbdIvcvEGPOjN5VekXJLEU9sEF3w36+0HevhpI6wyX7funmIkBBtT X-Received: by 2002:a17:902:820a:: with SMTP id x10-v6mr4358426pln.179.1529735428046; Fri, 22 Jun 2018 23:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529735428; cv=none; d=google.com; s=arc-20160816; b=BQ5Yi5VYryIPUzB1MU+BTzsXjou2X6qhjPi4JHbhyX1UIaj5u8nFkqUL5++9IOYIWH MjqMvhd309pF6xTJzpVLVwOFeLPkxNbMtcGFfHYcx1xW34etNai5fjAtFIL9iWzdO3B/ bAJEXEf7YNqvyObT/fA265SpLOZbijS/wyoxk1vwBVWu1gZbNajlhTB3ccn8+Y6tNjfb ji38vAhbTVWW4IJaxnYtWqW9Y8xaE5AW6GVD2330F6RHoY9eOO7DhAsahgYiz7haH/FS jIL7tXEYE4eyE8T35jIGAa4EBUMwl3m00uOO1sbfSaK4ftSob0t4lDkIBIb/vrv+/gB8 c51Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=DAWGwaaO3q3WggJeDVsWkwTiju+PI6VZuxOabmFPiuU=; b=SMzTYY9mYcI+nPyj9hQTKEuQPb/LAOI94BENHICL+KsfbrTLJvjLgEtaHfIeeZQuP6 Jm+xfOIVNMInHguTohT/pdiTaIOoS1Al83PkutHnn9yNwXu/m9ASfXzmjMhhzJztWXSF DMZayWLPtDqoqY1eYLktSgzOY/Gsl0w+I6KmF8Ff7onV5oqqt8mzgjVDTnRz7xWnfUXe PW4C/F4cKwWEN/h//UeVXFFqV093pl2XuSi09PYbwR9MY+iLxpnKxGfKI7aADP+KyI5m BfHdr3+A4XQl4ijQwJA723ykp+Vi527lLFx0i7T7gxkQ0BBXDWPn0Ba6txQ6RqtdcQAf 0ycQ== 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 1-v6si9224555plu.282.2018.06.22.23.30.13; Fri, 22 Jun 2018 23:30:28 -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 S1751467AbeFWG3d (ORCPT + 99 others); Sat, 23 Jun 2018 02:29:33 -0400 Received: from smtprelay0253.hostedemail.com ([216.40.44.253]:51536 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751402AbeFWG3c (ORCPT ); Sat, 23 Jun 2018 02:29:32 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id DE89C211D6; Sat, 23 Jun 2018 06:29:31 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1345:1437:1534:1541:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3350:3865:3866:3867:3870:3871:4321:5007:6261:7903:8603:10004:10848:11026:11658:11914:12043:12555:12895:13069:13311:13357:14181:14384:14394:14721:21080:21433:21451:21627:30012:30054,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:25,LUA_SUMMARY:none X-HE-Tag: run76_35f9b93c7393b X-Filterd-Recvd-Size: 1667 Received: from joe-laptop.perches.com (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Sat, 23 Jun 2018 06:29:30 +0000 (UTC) From: Joe Perches To: linux-kernel@vger.kernel.org Cc: Ralf Baechle , Paul Burton , James Hogan , linux-mips@linux-mips.org Subject: [PATCH] MIPS: ath25: Convert random_ether_addr to eth_random_addr Date: Fri, 22 Jun 2018 23:29:28 -0700 Message-Id: <2a63f5c5d19e51471347a1a45b5b5cd4697dcb23.1529735299.git.joe@perches.com> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org random_ether_addr is a #define for eth_random_addr which is generally preferred in kernel code by ~3:1 Convert the uses of random_ether_addr to enable removing the #define Signed-off-by: Joe Perches --- arch/mips/ath25/board.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/ath25/board.c b/arch/mips/ath25/board.c index 6d11ae581ea7..989e71015ee6 100644 --- a/arch/mips/ath25/board.c +++ b/arch/mips/ath25/board.c @@ -146,10 +146,10 @@ int __init ath25_find_config(phys_addr_t base, unsigned long size) pr_info("Fixing up empty mac addresses\n"); config->reset_config_gpio = 0xffff; config->sys_led_gpio = 0xffff; - random_ether_addr(config->wlan0_mac); + eth_random_addr(config->wlan0_mac); config->wlan0_mac[0] &= ~0x06; - random_ether_addr(config->enet0_mac); - random_ether_addr(config->enet1_mac); + eth_random_addr(config->enet0_mac); + eth_random_addr(config->enet1_mac); } } -- 2.15.0