Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3564433rdg; Tue, 17 Oct 2023 21:29:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdDICFkdL24lkul4FKBeYlG8bfwCjhrcSgXBcDmBtt8xXqquIXBF4tEsK4q5R8/kTF1Uuk X-Received: by 2002:a05:6871:6a0:b0:1e9:a917:cf46 with SMTP id l32-20020a05687106a000b001e9a917cf46mr5060832oao.19.1697603381100; Tue, 17 Oct 2023 21:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697603381; cv=none; d=google.com; s=arc-20160816; b=ip9iECGrVYvIE5k3fZE/rIIX6z03qWSKvsvl6Zzc3yFpACWTLYqNCO9rNuDS0jBo00 So/gQc2CB67XdnvyMIbdMT6Jn6Oy1ONkcFhJ8k+PUaq3JC23D18bKqGBeE5iLCt6pBsr sUrNN2ys70Sc60FsDx+cYPW0Fahet5KmozjQQZQURbp6bGc3rVvjy3yVyUZYgABW5fVv x4PsCWdA+oRLBhSe4BK8XE2eTDkaSkpD4oEiIwpZE8tI5xl1gTWiyHG7eOzdtz4rro73 UiyRgk+1BxHw2+LVhFXEzfhTmRsZT3HXJhXIhK91nLl/f4MUcyP+blTBlGJBrJwpHiBz Vc0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=cZQ8bIcex77OtZzGfuodcGp+jZXgpoUqGf688e2Oi9A=; fh=zjYR9uqstvDqRozoY8d+umyFrG3JmlJlZuNCgYvXun8=; b=qgWL6TJr9gIMfl8Rn0bxIrmM+OVHpNz/p8tP3bny+sTa4d8Bqviu23ShL+YcCeWLVm wPXIuLNY7uFO+kKpKBq0DJxweELqTaYt7c3Qpa3ibpBQj1JuLQDccc0fAuN7OyVFqL/3 dPBcA1bHOv0oSvuibSAv8+A3O2kYbug/uXWUIu4jmCnY1ZWnjG2WWjxBnqzXUq3WkLFF afd/ZgQzqYwf3T2Qn6Psz4bFPsqsjrBdzQUo9ItqP0m70yOWQW7JabSoXn5Rctz80huY 0HRfVrgSX1sFCrfW5zsv0qgHN6rtWlnkYKgSAqi+dcExZKTbc+YYmZ6sKoaEhjduK+Cw TEjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EpHONU+s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id b13-20020a6567cd000000b00588d84b1215si1334091pgs.876.2023.10.17.21.29.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 21:29:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EpHONU+s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id AF09780F821E; Tue, 17 Oct 2023 21:29:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229499AbjJRE3c (ORCPT + 99 others); Wed, 18 Oct 2023 00:29:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjJRE3b (ORCPT ); Wed, 18 Oct 2023 00:29:31 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E020C6; Tue, 17 Oct 2023 21:29:29 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39I4T9fo023934; Tue, 17 Oct 2023 23:29:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1697603349; bh=cZQ8bIcex77OtZzGfuodcGp+jZXgpoUqGf688e2Oi9A=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=EpHONU+s8vzPXA0BLUP4jjmXSv02btBtX6g1zU5PmILaIMajy9VgkO4+w1aVzYq1M 2TCH6JUTZn+LQY3pBDPxe3fqTIOA1ZTaWWUsDJ/UrDKjE8COQUAZlQIyvsKOf8hu51 ET7a1Stx14MFmlSeQDx+fartp06/sCGVMed7sLpU= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39I4T9kp128885 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 17 Oct 2023 23:29:09 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 17 Oct 2023 23:29:07 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 17 Oct 2023 23:29:07 -0500 Received: from [10.24.69.31] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39I4SG8a055260; Tue, 17 Oct 2023 23:29:03 -0500 Message-ID: <80f7b668-8589-4f32-82ad-ecb895ec656f@ti.com> Date: Wed, 18 Oct 2023 09:59:03 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [EXTERNAL] Re: [PATCH net] net: ethernet: ti: Fix mixed module-builtin object Content-Language: en-US To: Arnd Bergmann , Andrew Lunn , Wolfram Sang , Simon Horman , Roger Quadros , Vignesh Raghavendra , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S . Miller" CC: , Netdev , , , Roger Quadros References: <20231013100549.3198564-1-danishanwar@ti.com> <4a53722d-e31d-4598-a4a9-cf374c84bc44@app.fastmail.com> <7b0a02ad-d23c-2c04-6672-58f16f2cca5a@ti.com> From: MD Danish Anwar In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 17 Oct 2023 21:29:38 -0700 (PDT) On 17/10/23 5:08 pm, Arnd Bergmann wrote: > 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: > Sure Arnd, I'll add this and send v2. > --- 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"); -- Thanks and Regards, Danish