Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3092981rdg; Tue, 17 Oct 2023 04:38:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEl5lsCHi69G3Z39cUsyV2keZ0wrB/NE5t3NMur34KRt76O0JjLo84Yv37kWhzjAvnPasOp X-Received: by 2002:a17:90a:31c:b0:27d:1ce5:1eb6 with SMTP id 28-20020a17090a031c00b0027d1ce51eb6mr1864004pje.17.1697542735427; Tue, 17 Oct 2023 04:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697542735; cv=none; d=google.com; s=arc-20160816; b=rAPmquwsOw4Jpz3MbEGlfs3/VY38l4oZSVnV1MYCAkei1/2GoX/LtbBReSKkwz5w0m Ca7yBgy82TOWEM4C3CUNvwQ2MRJIGoWLraIBev1xoTVR27IZg6QHkLZ1RrkQFRb+HUhr CBLcRPUQglvp+Dqw8om2QgjkhhXt3dHsWJDyeWm15Pd/MDdNUrQJ0+UQTvYsuaekE3or Pno9g4swoc2I5hvt2Cy7JPFAkDA1AfX1DxNA7u48SF8XpSn9zqqVCxBsh311Fxodmggo vxlL5492hXt8ouVAXtRgsFK2FyVqUo5TQOgkG2IBvAxh/8witldSG6+k/gA9P+wxigGF X3KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=57/G7WSXTmaZb6K7f8o8ahaOG8BjQ2KoRfaSP0thpXY=; fh=gxeFq4pdoJzRxdYHVBfescimBr5sz6Vl4WgNPCxMi8E=; b=BI7psSRf3jz4vUJSQC/B4B7/5byZ2Ja1Pfi388BBl3DgvCw70ihk02P2zuNMgwuYGT s9TP3S+ErhlW2gzMLX1TAuEiob39UeHQP3RfIbT2scNkhN2ZgKghp2Ji36pA5aZFGxNi PcGOVe7sQ3RpI+xuV6px9ZEmM2RbcgsLn3MjI6+TuHqLPrSuynw9K1oNWdYaju0xQU3e jX0Ikx1ljYGoHmLJYNyAa3PgOOuVllusUxW03m0HdufGUDsLDhOijjXIKUCatc6+g9wM 9g7xJRnIFX4du/ZAtx6HAeiSgeW8betzokywRmwsg8AMcK7OFIi/95nljFrT+lGFVzQx tcDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=K9nslS4W; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Y8vRS8JS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id w20-20020a17090a8a1400b0027d702ca321si198646pjn.124.2023.10.17.04.38.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 04:38:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=K9nslS4W; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Y8vRS8JS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E40A3805060C; Tue, 17 Oct 2023 04:38:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343601AbjJQLin (ORCPT + 99 others); Tue, 17 Oct 2023 07:38:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234147AbjJQLil (ORCPT ); Tue, 17 Oct 2023 07:38:41 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B89D9F; Tue, 17 Oct 2023 04:38:39 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 6C74F3200AC8; Tue, 17 Oct 2023 07:38:28 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 17 Oct 2023 07:38:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1697542707; x=1697629107; bh=57 /G7WSXTmaZb6K7f8o8ahaOG8BjQ2KoRfaSP0thpXY=; b=K9nslS4Wb6lGu8N4ir GgUlDFBSLEzP7MWQOzXPOfaIdkXh7u0SCVt+zQ61Z6ApZamjy47GabwWhrldGo3X XTuGO1lu8qyTrM8sgctNqVGkXGvbdOVfgDK1aBCYqXibr45X3/EWadxCRApCmXe5 m2iECv+u9eR1nNMX0zEAIfqg0rYo1eNo1nFjYTNZG7B3Kq70e7ZGvxkkbW8Sk1n4 xCQvLX+tdgWf6OIUbdVREdI2pmS7oormVxyXJk6CAQ9ZnlGvU0M5GQeSa0aqa3Gb o5HMWAIJLHM8D25xOS2m0XPCkZocqcB0XL1g4/OVSPouW9ulv4Z4fm70mW1Ab9Yc 5PCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1697542707; x=1697629107; bh=57/G7WSXTmaZb 6K7f8o8ahaOG8BjQ2KoRfaSP0thpXY=; b=Y8vRS8JS17Tp4VM+0TT/mZFFVMTQV Kkw4+i18iU0Tubska0NIPWDzN1nArITjmS1vQFL+BISe9vrIzD/rmDBj1hOUYSnS lrr5CNO7yAr13XxUU0+HimhAqpaldgcvlSAV3CWoAzmEOCokHcclSNIVKmhwtNLb p+eBiVi0vGsLbi3v+i3QDSZT6AZ+gGoG5WQz4B7y44RbaTUMHlrgY3cthtjBQGYy HBIOh2kRsdSIdPzYNagKv0MsYuXSYsbJwpjZwRiLpT/2a3NVJKgQBExMV9+ohuBs CHH6eEKXRLGm2wiNyCNL7J6g6gbCh1rekyelMqw5sd2hdEbaStLjw9dDg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjedvgdegudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeevhfffledtgeehfeffhfdtgedvheejtdfgkeeuvefgudffteettdekkeeufeeh udenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheprghrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 69A7DB60089; Tue, 17 Oct 2023 07:38:27 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1019-ged83ad8595-fm-20231002.001-ged83ad85 MIME-Version: 1.0 Message-Id: In-Reply-To: <7b0a02ad-d23c-2c04-6672-58f16f2cca5a@ti.com> References: <20231013100549.3198564-1-danishanwar@ti.com> <4a53722d-e31d-4598-a4a9-cf374c84bc44@app.fastmail.com> <7b0a02ad-d23c-2c04-6672-58f16f2cca5a@ti.com> Date: Tue, 17 Oct 2023 13:38:07 +0200 From: "Arnd Bergmann" To: "MD Danish Anwar" , "Andrew Lunn" , "Wolfram Sang" , "Simon Horman" , "Roger Quadros" , "Vignesh Raghavendra" , "Paolo Abeni" , "Jakub Kicinski" , "Eric Dumazet" , "David S . Miller" Cc: linux-kernel@vger.kernel.org, Netdev , srk@ti.com, r-gunasekaran@ti.com, "Roger Quadros" Subject: Re: [PATCH net] net: ethernet: ti: Fix mixed module-builtin object Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 17 Oct 2023 04:38:53 -0700 (PDT) On Fri, Oct 13, 2023, at 13:10, MD Danish Anwar wrote: > On 13/10/23 16:08, Arnd Bergmann wrote: >> On Fri, Oct 13, 2023, at 12:05, MD Danish Anwar wrote: >>> With CONFIG_TI_K3_AM65_CPSW_NUSS=y and CONFIG_TI_ICSSG_PRUETH=m, >>> k3-cppi-desc-pool.o is linked to a module and also to vmlinux even though >>> the expected CFLAGS are different between builtins and modules. >>> >>> The build system is complaining about the following: >>> >>> k3-cppi-desc-pool.o is added to multiple modules: icssg-prueth >>> ti-am65-cpsw-nuss >>> >>> Introduce the new module, k3-cppi-desc-pool, to provide the common >>> functions to ti-am65-cpsw-nuss and icssg-prueth. >>> >>> Signed-off-by: MD Danish Anwar >> >> I submitted a different patch for this a while ago: >> https://lore.kernel.org/lkml/20230612124024.520720-3-arnd@kernel.org/ >> >> I think I never sent a v2 of that, but I still have a >> working version in my local tree. I've replaced my version >> with yours for testing now, to see if you still need something >> beyond that. >> > > I see your patch addresses different modules. My patch introduces a new > module for k3-cppi-desc-pool which is used by both am65-cpsw-nuss and > icssg-prueth driver. Where as your patch addresses modules common across > different cpsw drivers (davinci-emac, cpsw, cpsw-switchdev, netcp, > netcp_ethss and am65-cpsw-nuss). So I think that both these patches are > addressing differet warnings. Right, I can resend my patch (or Alexander Lobakin can rebase his version) after yours makes it in. Note that your patch introduces a warning about a missing license and description for the new module, so you should probably include this hunk: --- a/drivers/net/ethernet/ti/k3-cppi-desc-pool.c +++ b/drivers/net/ethernet/ti/k3-cppi-desc-pool.c @@ -131,3 +131,6 @@ size_t k3_cppi_desc_pool_avail(struct k3_cppi_desc_pool *pool) return gen_pool_avail(pool->gen_pool) / pool->desc_size; } EXPORT_SYMBOL_GPL(k3_cppi_desc_pool_avail); + +MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("TI K3 CPPI5 descriptors pool API");