Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3493703pxb; Mon, 18 Oct 2021 16:51:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCvBMh/2twMiohHI0ss6+yGA4Vct1VZL8qkkija4MQWm8xIxKXqw71XvcSLmnO2ve9LzMw X-Received: by 2002:a17:906:912:: with SMTP id i18mr33024648ejd.131.1634601118612; Mon, 18 Oct 2021 16:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634601118; cv=none; d=google.com; s=arc-20160816; b=DYYrwoXpw0Dr1/JZpDGFa7GwtzEJMJ0h6HB90L9X0ZYOVPvnTyMnhvXUTy9B1zKDXp /S4DkBrtyakO86K9RhGY0fHza+q6vFceqY+vsaS8dASEvP+iKHX4awdu81828KcY6AWU vN7UAnPrGROHFqKoCgBaYFxcStk1a0D+eYfztAZAc2mWI6uzI0OVR7OfKGjFBN4Qx3mU doD4umrXuCIxlZ2UnSc1AyhYDZyufTN2b9CCjIBPOcwvIi6MvgOTzDNab996a+ny6QA0 TNWOsLRcQX2ZT5SWd+krg/CvNgBLC8Qjc7DYtl2Wvs7Jwlm8O+w9Q0+a8KXRkYQCScXI It/g== 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=1C5o3UWT0W0pJNqB8NhCPoo1nGhlPbw+xe8PRVKdUFM=; b=UrgTYvdnGvOx9LvWYK3/FKXRStuCrT5asR1qt8SyQbUA5l43HWlVr5rU501p+I99Nt 4d6MejMZoQP+p/0NR0kb5vcGjbX+aGFTLrQDBBPW7tmToEnj+bZHFwbTMihxdMIcKB2P CWiS14i2bqzLbB62ArMjRFFQxyKMLzxo4bTeZks+/olXAmHNxXzFXQy0sklwWRlL1j1Q kJBrOK2KqWVLxd4egoR4FI5givRLa+fw1eP4CeSoIej7Z1AVrwWCWtCkx0xblY9jQXuH x4A1h9kp0KdJZ/jXrj3tw1LQ4s4suyN1z1Q1yTu22pJ2IPxRlj0DCDxn5Eg3Y9F19Kpc /2gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fN9AYYrW; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 d2si20222196edy.32.2021.10.18.16.51.41; Mon, 18 Oct 2021 16:51:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=fN9AYYrW; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S233395AbhJRXwr (ORCPT + 64 others); Mon, 18 Oct 2021 19:52:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:35060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233452AbhJRXwn (ORCPT ); Mon, 18 Oct 2021 19:52:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 92BDB610C9; Mon, 18 Oct 2021 23:50:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634601031; bh=YMFq0DgrKnedKvOU0oWg0iFrHFF1hqJrmAgBziUbGRk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fN9AYYrWZlfW0FGC1/1EGl9aC7ik918Ib0EcSZw5d+pHLJ8MJWTMlYpkugnc7ay1c XeoGdh2OE55OBncQVw+xS/DHGCWkPlWfu6u9ywkKEPWbxq8S0A53hwn7TMkZrZTM5+ zyQHpRLNd2pl9rEh9JIQ/3VPdsjzVXi9FJrFjyvqgIzYycGJNiqrmAc04XrqZralpj x8E7mtk908/8QLnjboNtT1UIsZQQy2E+VbEpGq3zHdY0YDePrqsUbRUQ0D79/IfYDx R9KDOYIJb1xEF7S/o3nt/HfBDTLzVu3sIO9+r8EPSobXo/HhZVgDwWg34uD2cZo5/8 SNL8djgE8HCUQ== From: Jakub Kicinski To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Jakub Kicinski Subject: [PATCH 14/15] wireless: wl3501_cs: use eth_hw_addr_set() Date: Mon, 18 Oct 2021 16:50:20 -0700 Message-Id: <20211018235021.1279697-15-kuba@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211018235021.1279697-1-kuba@kernel.org> References: <20211018235021.1279697-1-kuba@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Commit 406f42fa0d3c ("net-next: When a bond have a massive amount of VLANs...") introduced a rbtree for faster Ethernet address look up. To maintain netdev->dev_addr in this tree we need to make all the writes to it got through appropriate helpers. Signed-off-by: Jakub Kicinski --- CC: kvalo@codeaurora.org CC: linux-wireless@vger.kernel.org --- drivers/net/wireless/wl3501_cs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c index 672f5d5f3f2c..dad38fc04243 100644 --- a/drivers/net/wireless/wl3501_cs.c +++ b/drivers/net/wireless/wl3501_cs.c @@ -1945,8 +1945,7 @@ static int wl3501_config(struct pcmcia_device *link) goto failed; } - for (i = 0; i < 6; i++) - dev->dev_addr[i] = ((char *)&this->mac_addr)[i]; + eth_hw_addr_set(dev, this->mac_addr); /* print probe information */ printk(KERN_INFO "%s: wl3501 @ 0x%3.3x, IRQ %d, " -- 2.31.1