Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5933575ybi; Wed, 12 Jun 2019 10:57:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwZorGCXHGXwLnxIgxpDNCZIKnJ4BtMzMxzLZB636y67VSClNOYN9jup/w/Oj6AwXx/dxP X-Received: by 2002:aa7:97bb:: with SMTP id d27mr20345832pfq.93.1560362275812; Wed, 12 Jun 2019 10:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362275; cv=none; d=google.com; s=arc-20160816; b=f8XFYTA344faoGZqKw2DVeEMwOanZI4SIc/6Ps4oSo9VxR7xLGefCkznSaokK5J81N 41ZbqfsFmLJz9NJGeJKrpNGGbyN0wiL+Olew6evFIvqYzHOBD9KUDz9b3ZJ7kHd1SxMg tAA5TKORxtXODmOoPjeQoimBBfJTAAv0mXgoWTf8kNZQTli7x9DkBk7q+FMlF/YTeUhC 2SKOUMEYB81yz30oXK+3rMONChwWMgacU9vx5tlQ9Jtw0NSnC5Uc2t8aJ2yxo5Y/JdaC 1JBbFpkVxpD2fvSxbWX/bmqvWrAevx4qwQyiXbRaRUa6S7iTLnwh12vsB/D8WSk7STV5 xL2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZldakM9EWSeIneK5Mkn/ppneVbLd1+j1SRpOUGdQOH8=; b=YXbLd79gPsdZ+RfHinNNbp229Ec6hlmlLLxPOPKqWIPGh7gG34ad7voCdqf8H6N/nY MKpp5HwuO4GVD6a9VP856Hk5CAb/xoEVKdE+32EpdBlP3ZyzzF6IFo8yHweIuogFZpHy HgnxjasNt4fjvYuxDS4w2U71Ijidmw/pXPaQiORKCx1wx4d7yDdZZy5I2iUTkqFG/aoC nVyirkaVGfLKXVMrK4YJ3pJf+FtRawmNKdwcM1JaRBrj1NtImTBfeVLIRtcetz2QXBBc Hil/cWbYIITa/E4q9LGL9qrQxzYjKTghLzCCd5sf7FNe7dYMRfj15HxoWfgFujTPSUR/ INZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=XnSXT6Ub; 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 k2si444058pgr.162.2019.06.12.10.57.41; Wed, 12 Jun 2019 10:57:55 -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=fail header.i=@lunn.ch header.s=20171124 header.b=XnSXT6Ub; 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 S2439371AbfFLNQv (ORCPT + 99 others); Wed, 12 Jun 2019 09:16:51 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:48612 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437430AbfFLNQv (ORCPT ); Wed, 12 Jun 2019 09:16:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ZldakM9EWSeIneK5Mkn/ppneVbLd1+j1SRpOUGdQOH8=; b=XnSXT6Ubg98Jo9eUBlSoAHDTar I+dFWF4SzY6g56RnubYm7lqGcoF/KQaycNSGFSezHp8qmEK99EtMDvOwnB/EeN4RhZV8fJpO/P9hi nw/h94rALJhTVODhD2uYKiFowY2VDxH7uoObey9egacHOAacrZQGB6CNpOFr01kki8dE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hb37P-0004Ju-2w; Wed, 12 Jun 2019 15:16:47 +0200 Date: Wed, 12 Jun 2019 15:16:47 +0200 From: Andrew Lunn To: Linus Walleij Cc: Anders Roxell , "David S. Miller" , Vivien Didelot , Florian Fainelli , netdev , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] drivers: net: dsa: fix warning same module names Message-ID: <20190612131647.GD23615@lunn.ch> References: <20190612081147.1372-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 12, 2019 at 02:36:44PM +0200, Linus Walleij wrote: > On Wed, Jun 12, 2019 at 10:11 AM Anders Roxell wrote: > > > 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 > > Sorry for giving bad advice here on IRC... my wrong. > > > -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 > > What is common for this family is not the name rtl8366 > (there is for example rtl8369 in this family, we just haven't > added it yet) but the common technical item is SMI. Hi Linus I was not sure about this. I thought SMI was the bus used to communicate with the switch. It just seemed odd to call a switch family after the bus. Anyway, if you are happy with the name realtek-smi: Reviewed-by: Andrew Lunn Andrew