From patchwork Wed Jun 12 08:11:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 166523 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3378065ilk; Wed, 12 Jun 2019 01:12:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGOqnKGxOAjOmVGfXUH8e8YQoUI3dcsXwu/NtbJu+P42Hm0Zsf0Q/y1f7XVdUNyzXt5Al0 X-Received: by 2002:a17:902:b202:: with SMTP id t2mr78258919plr.69.1560327122386; Wed, 12 Jun 2019 01:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560327122; cv=none; d=google.com; s=arc-20160816; b=XywNv6a6hu7dLspG7sGXfSdiIMPxRUe02gr6Q5D4Bz8BasZLM3rkviekqSwcRJMCxU AubiJL1rO64JMs5hhiSHPBU6J+wo75Be9kEunIugVA0H2IIunkJ5QZ8ZkimgtoL3ucSo 4tns7zqaghV4mWd0ekhf/7grkxsMNQAuTfpZAqAGwQbKD6Aglghz3381JjHdhM+VRvdu v82//085fKf1n5SllB4V8PXNHXic93lEBlnvDIwv61owS2G/vWmnF9VwUaPnQ3+DFTyd QVZ0KpIPPONDgy+1ZO1mrg4Y1csKbr+tVLCEpmOPaudnJPKDFz/yFTzoULtXqQb6cTlZ lmhw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=lFS4BBAAFXbjrbCxdYjYSGPzdbbXyO/GncmZQneFLcA=; b=LE1W+tHsmVeUpPtarZTtJIVKiQ539yIWBIrPVNq6nmx2Ds2fAKkGkBeks9hCrhM+N0 VMiijZKZKzTWoHyKb9YLQ1ClBqtgXjbLKUa0/hSai4yJ2JFPZY3NcNKM1TxdjFoSKvyZ hy9+AjDagzynUiJ/iDp/iDuTgAGrcdxy7UtfubE3s858H2tFJnv7WPnkptSMyYfrSWZg 1WC/XA8wMNz/xNnDuE+nB9u1rCw8hxh646I7ZiZGZ2K8/NOlNOQ9LqSK9xnUKDASeaOd 1hOLLGDyhkQa4DYv/B10IvWpra9Osk9pMCgc2WNpnCPFoj504Re2ctBlkv4I2MH8jkuq 8pCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qin+oZhf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si9558971pgw.351.2019.06.12.01.12.02; Wed, 12 Jun 2019 01:12:02 -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; dkim=pass header.i=@linaro.org header.s=google header.b=qin+oZhf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730187AbfFLIMA (ORCPT + 30 others); Wed, 12 Jun 2019 04:12:00 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:38689 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726716AbfFLIMA (ORCPT ); Wed, 12 Jun 2019 04:12:00 -0400 Received: by mail-lf1-f65.google.com with SMTP id b11so11343639lfa.5 for ; Wed, 12 Jun 2019 01:11:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lFS4BBAAFXbjrbCxdYjYSGPzdbbXyO/GncmZQneFLcA=; b=qin+oZhf13sdSKn1SKVta6xNQYBa7ZCymdbgUUHhuXuNkSdmsnN+xPwGBDrKl1DDKA 9eirix1ojbveQYt3vkTmM3znNupkTqQ8im6xurMFPDyRXfonbylfyKnt15BDcEym4lMm zbtDPDw9VXTMVRkSt4rI+FWRMj1Xt9LbcvKTqAjccyQz1RgkOT7KcWQMjwFvReihwunX 5IId7kX7++BKRB2fbN9hvksAPw8W2FWW8C3fA5ZdlzJyuJ3b7B0RFoEVakEDyZ633Z8p MGnaSs3SJUvJl5KKJ4xQOKm/SeukK6uVQdR8m6q9ikusAy5ui1WToMXZfIqpBKQxclhK 4grA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lFS4BBAAFXbjrbCxdYjYSGPzdbbXyO/GncmZQneFLcA=; b=EhbRSdGRt+Rhy/QSTx/y28tleSHT7fOo5/hIN9dmbMVEaimO/4jxgTy/rLv8LpAOyK TXMQSib4NokVfpjf+Kxg1EC8OrVHQq/CkvXSpO2RGuvvVD7+O6m11EepBSLUB4E/rM21 AW0HeyrCDkytul88NqpnXvpAKF+hzUEQv4xfGs/09WhQbNWmJzhd6BBEkJxVty0BtZHc JJMMxV+6xC1O1unUaIT81fqKo5dKspFjkuv31yNUSMgc032VKvkOxHq0kwnNvBGs2SV7 33+EDKMv00mgkXthx6L6EIdNb38hcO1LIBFVm9kiS4CbmtHSl9e5YsPhqtnjSU0xUiZB Ak3A== X-Gm-Message-State: APjAAAV57/Esf6mwgNqnc2xai6CyvxszfzPVSWsK+Q9HyJSt04OobprE sJ0bROqCyNHGMqWpbGNSv/U3hGcRTzhAmA== X-Received: by 2002:ac2:4466:: with SMTP id y6mr13435120lfl.0.1560327118141; Wed, 12 Jun 2019 01:11:58 -0700 (PDT) Received: from localhost (c-1c3670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.28]) by smtp.gmail.com with ESMTPSA id z6sm2544076ljk.57.2019.06.12.01.11.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 01:11:57 -0700 (PDT) From: Anders Roxell To: davem@davemloft.net Cc: andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, linus.walleij@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH v2] drivers: net: dsa: fix warning same module names Date: Wed, 12 Jun 2019 10:11:47 +0200 Message-Id: <20190612081147.1372-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building with CONFIG_NET_DSA_REALTEK_SMI and CONFIG_REALTEK_PHY enabled as loadable modules, we see the following warning: warning: same module names found: drivers/net/phy/realtek.ko drivers/net/dsa/realtek.ko Rework so the driver name is rtl8366 instead of realtek. Signed-off-by: Anders Roxell --- drivers/net/dsa/Makefile | 4 ++-- drivers/net/dsa/{rtl8366.c => rtl8366-common.c} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename drivers/net/dsa/{rtl8366.c => rtl8366-common.c} (100%) -- 2.20.1 Reviewed-by: Linus Walleij Reviewed-by: Andrew Lunn diff --git a/drivers/net/dsa/Makefile b/drivers/net/dsa/Makefile index fefb6aaa82ba..d7a282eb2ff9 100644 --- a/drivers/net/dsa/Makefile +++ b/drivers/net/dsa/Makefile @@ -9,8 +9,8 @@ obj-$(CONFIG_NET_DSA_LANTIQ_GSWIP) += lantiq_gswip.o obj-$(CONFIG_NET_DSA_MT7530) += mt7530.o obj-$(CONFIG_NET_DSA_MV88E6060) += mv88e6060.o obj-$(CONFIG_NET_DSA_QCA8K) += qca8k.o -obj-$(CONFIG_NET_DSA_REALTEK_SMI) += realtek.o -realtek-objs := realtek-smi.o rtl8366.o rtl8366rb.o +obj-$(CONFIG_NET_DSA_REALTEK_SMI) += rtl8366.o +rtl8366-objs := realtek-smi.o rtl8366-common.o rtl8366rb.o obj-$(CONFIG_NET_DSA_SMSC_LAN9303) += lan9303-core.o obj-$(CONFIG_NET_DSA_SMSC_LAN9303_I2C) += lan9303_i2c.o obj-$(CONFIG_NET_DSA_SMSC_LAN9303_MDIO) += lan9303_mdio.o diff --git a/drivers/net/dsa/rtl8366.c b/drivers/net/dsa/rtl8366-common.c similarity index 100% rename from drivers/net/dsa/rtl8366.c rename to drivers/net/dsa/rtl8366-common.c