Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3384216pxb; Mon, 17 Jan 2022 19:13:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWUUUbeschMPfCNzFuNXgAPY2WZOh6jof5xYbmE42dHuPRgXROt4dzC0v/KryQeVBuemtV X-Received: by 2002:a05:6a00:181a:b0:4c1:3c75:9c54 with SMTP id y26-20020a056a00181a00b004c13c759c54mr23889657pfa.6.1642475627738; Mon, 17 Jan 2022 19:13:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642475627; cv=none; d=google.com; s=arc-20160816; b=J14VOgvczms2k9f2r+QokTJ7MK7eV+MaAEHLgzLG7ZBI+CA1rWaTxJLvohYnC3dcTK fNoQm3XckwCFDvI3M/7hDNaXaauj2U3YNeDfVpDIM/XTxu/+jXBsf8Ty9NaQwCpJDfn/ aQ/4nRM42NPNNNrN0N2cEPVWPI2bWd8Jt6QZB/JOsPtkCQqsNwS28yXy5nvQBix3Q1gd GCG43s1k9boMeBDOinrSfLiXWozqLkiXnHwSfOpZcUDAvU0TbA0kipbAEbBN/Mr1eJVZ uK7i+mx27voO/cyMLEiEr9Qoj10CuBBwBUhDM2TX92ng3PsPgyhuMmELm8xZiXw6nWuL xe4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QzgD5GIFI9RAxZ9E6cRSaH/feNDaSyJIsQUxLNtsolY=; b=bKU6ZTeRATrHgh+ifbAFm1f0dpCB19pBftNW41B7qAJeCt8tCvrBkfb07228WB3pRp goBucBej+jHR2W7Iewz3VcPaAoQPh88xBSqCTHnLGUzfDi2KjuzitIBm7jk5EXzv5nY8 A/Iy3sq9MIqMdcRjzYD6bM064aJZ9QUB4JwXfFyH3l4ZGxZF7kyGIZaRWV1eVfsiwzNi S5RhBxrx3O2GwFTxZAvwgmdEbkrWeAun6pbxZhY60odbT6vueTecZllOjt0L2B9R0C1M AumSQ36hV1NOcKFhh28/7f79Rghy80fGwBrp6lUHFT7aFg68+aIKRHQYAw/hPT0oh2kr 5G3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uQTz3VSl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b12si16822772pgb.853.2022.01.17.19.13.36; Mon, 17 Jan 2022 19:13:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uQTz3VSl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239612AbiARCWk (ORCPT + 99 others); Mon, 17 Jan 2022 21:22:40 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:38646 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244898AbiARCV7 (ORCPT ); Mon, 17 Jan 2022 21:21:59 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4A5D4612D0; Tue, 18 Jan 2022 02:21:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE17DC36AEF; Tue, 18 Jan 2022 02:21:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642472518; bh=Y/Jg8zxEhlm7oR/BvTYZFwWEmKlAwuzQhC1L+ZRMTg4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uQTz3VSlsEoxqJa3vbXmRpmwzPe66eLLU79x+ffQVIgvXq6L/0gjYXd2ffsT9RBVz m41Aabm5EYS8T05sjoyZJu0Zr35o9TDcMNFYVP3WXGyF7lGthAH4V0fuFFWOgVGxcv eZ8genwaG9lMcdskzR97byLzQJXMfYSlMP0PGwMwAOm/pKI6kFajqUjyIEIIqpXote k3OicLnhe+TVL//RTF69zeLrXZCB3wxjp29NIA9VpXQnLDLVaSGYj78TxKqDdEF+hV RxrGWKSmHTFSvwHf5aMoPYIQwKmos1czTB62TMINE9sIPCIgt8a9i8u1dcDDDWlWoJ DqG+Ddy0aSIbw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jakub Kicinski , "David S . Miller" , Sasha Levin , arnd@arndb.de, geert@linux-m68k.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.16 039/217] amd: mvme147: use eth_hw_addr_set() Date: Mon, 17 Jan 2022 21:16:42 -0500 Message-Id: <20220118021940.1942199-39-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220118021940.1942199-1-sashal@kernel.org> References: <20220118021940.1942199-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jakub Kicinski [ Upstream commit cc71b8b9376ff5072d23b191654408c144dac6aa ] Byte by byte assignments. Fixes build on m68k. Signed-off-by: Jakub Kicinski Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/amd/mvme147.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/amd/mvme147.c b/drivers/net/ethernet/amd/mvme147.c index da97fccea9ea6..410c7b67eba4d 100644 --- a/drivers/net/ethernet/amd/mvme147.c +++ b/drivers/net/ethernet/amd/mvme147.c @@ -74,6 +74,7 @@ static struct net_device * __init mvme147lance_probe(void) static int called; static const char name[] = "MVME147 LANCE"; struct m147lance_private *lp; + u8 macaddr[ETH_ALEN]; u_long *addr; u_long address; int err; @@ -93,15 +94,16 @@ static struct net_device * __init mvme147lance_probe(void) addr = (u_long *)ETHERNET_ADDRESS; address = *addr; - dev->dev_addr[0] = 0x08; - dev->dev_addr[1] = 0x00; - dev->dev_addr[2] = 0x3e; + macaddr[0] = 0x08; + macaddr[1] = 0x00; + macaddr[2] = 0x3e; address = address >> 8; - dev->dev_addr[5] = address&0xff; + macaddr[5] = address&0xff; address = address >> 8; - dev->dev_addr[4] = address&0xff; + macaddr[4] = address&0xff; address = address >> 8; - dev->dev_addr[3] = address&0xff; + macaddr[3] = address&0xff; + eth_hw_addr_set(dev, macaddr); printk("%s: MVME147 at 0x%08lx, irq %d, Hardware Address %pM\n", dev->name, dev->base_addr, MVME147_LANCE_IRQ, -- 2.34.1