Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5905425ybi; Wed, 12 Jun 2019 10:26:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/zB1a504w8hFp2eCMqRy3P34PoukWfil0omJVmu3dKQ2UbH7VkZ1yWVVNUsliTv0iqIYN X-Received: by 2002:a63:5d54:: with SMTP id o20mr24933136pgm.97.1560360400081; Wed, 12 Jun 2019 10:26:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560360400; cv=none; d=google.com; s=arc-20160816; b=0IEf6Xnz2gQh08rSxDM0ZJOxNLQ+xUu1vUEMcdpWHogo8DowtxoXYW+tufQT5quj8v ZkTBvEiKSKfJnMqCELzRxdPPizbnYwVdIXS2ZRKNUPoQS8pRzsDiyz6NwDNQGPn3XrDO auMYkRctOkqTHJa8War+6wQTtR015w9rP/EaVUiL86jQQF3WZp7s8I/l1dlKbWL7hS2P g25L3Bx3dFZlC55e+eR5PCxP1fs/nGBdPp5N3eiegabguTnvgxYfLd07p9Ta3OowMk0/ OA1K+dGf3fgV9Y0R5/n3MDN2ZtCXEpmSodJmQHHrIX4rDel2PToh3NP3mUrRf9vc6tmv 1z2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=W5ZcUb3ZYYyqexpun8Qj0H696dbroHsPGYQhJd7Effk=; b=Jxck/5k9jVoK+MG0T5epqbKmvOKiX7YIrhdEX1l9Hhx9Ndm1FG2y9ZZtjkpvKhrwSg yjgI0hUXDuPrWjogJj371rY+LJZq+GYopIVkm1qiYHWzUB1y7n72h6MQbzBZxjScOOXN u9F6bjxMJYko98leZumfOnQTmwaulyJYA9fE90VTAp02L+haFQ8qly5MI4pXrCkPjvqc cm6qXUvGW3wpJri9svRkfUCaILHV+FVRzvYrrZlRpq7uw57cXoMf9kUc1ZeBpQhA9UiW VwhBREr4++5D7JWHub3tnXzvT8IEYdxaPzwIWH8CwUf/iXSxFEn1smsJNbq0v0nNGDnQ ulKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VwfILO09; 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 q123si330789pgq.300.2019.06.12.10.26.25; Wed, 12 Jun 2019 10:26:40 -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=VwfILO09; 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 S2408354AbfFLMg7 (ORCPT + 99 others); Wed, 12 Jun 2019 08:36:59 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:37003 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404384AbfFLMg5 (ORCPT ); Wed, 12 Jun 2019 08:36:57 -0400 Received: by mail-lf1-f68.google.com with SMTP id d11so4130032lfb.4 for ; Wed, 12 Jun 2019 05:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W5ZcUb3ZYYyqexpun8Qj0H696dbroHsPGYQhJd7Effk=; b=VwfILO09T4Z5Vgxg5LLncNH+Qmr7pUmjfT+5Jzb3WzyN6G7A2tBfEgXyftXagfT8Du s6akg89YgtZnGgiA+o++zwTAO8XQmO0IDJGtMmUvUGY3nn76Ej3S5XXdZ/81lWVUPtlS s+ToGxwqYWUZFi/Il+qYx2HotqrkUDbrxWg8OgHZ1q6Cv6W9S04F8AK4BjAakKzgCdeE 2Hab1EhG3q99Md/eLX9voBH8EpSdv4tefeLKacQaIyA/2ry0SG9gi9mZL/zs1vXk/BfZ w0TIRRKQZVbfLUkD5SMr/h+O1GZWPU/lMQtC4rt3K7JTj8f9apLM7tSL58gdgQ1LHG8U Bmjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W5ZcUb3ZYYyqexpun8Qj0H696dbroHsPGYQhJd7Effk=; b=Ht/eKAjwhRfdmUtBRXzqmM799datrz+k6OedgTcgGuiVkPDg0BqG484XGqWtTUW85O 9+7Z9Qz6SgyddVzpDvY3jUiIpZg/b3uzIUJu6epVQgFkDA6izC7D8GL9mMtkBY/tTktg IP+LA3DRuwrD3Lnwr9Ic7iPcIKQQm2Thn4hsGM+7yqnXNNk5GTLRDlHBULrzrMxcVo30 LsADQr+8mnD+Roaf1J04RBSwDpQ2bmKtGSkWPDBPB/B2uRt9NcUwOXwsuhfUDTA+UTgh Z/57sUKI5clyoz/qeq3Vcv4t8HRu9y5mTDgUy+X5R5LgJuG/JLrbKZAEH7Zld894cSQO oWTQ== X-Gm-Message-State: APjAAAVL4I8MDRDVCaHo6oEQbpHpYVzkVhE0ibHJCejQusPCJEFBZxr0 UMFw4G3iR4dNWLdI0JsxdrbFvXr9s0ghkaH8qvEuUw== X-Received: by 2002:ac2:598d:: with SMTP id w13mr39607037lfn.165.1560343016604; Wed, 12 Jun 2019 05:36:56 -0700 (PDT) MIME-Version: 1.0 References: <20190612081147.1372-1-anders.roxell@linaro.org> In-Reply-To: <20190612081147.1372-1-anders.roxell@linaro.org> From: Linus Walleij Date: Wed, 12 Jun 2019 14:36:44 +0200 Message-ID: Subject: Re: [PATCH v2] drivers: net: dsa: fix warning same module names To: Anders Roxell Cc: "David S. Miller" , Andrew Lunn , Vivien Didelot , Florian Fainelli , netdev , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" 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 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. So I would suggest something like: obj-$(CONFIG_NET_DSA_REALTEK_SMI) += realtek-smi.o realtek-smi-objs := realtek-smi-core.o rtl8366.o rtl8366rb.o I.e. rename the realtel-smi.c to realtek-smi-core.c instead and go with that. With that change: Reviewed-by: Linus Walleij Yours, Linus Walleij