Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp879418rdg; Fri, 13 Oct 2023 04:12:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGyq1eJ4G/guFxL5CCG0LmuzvFXRUO/rAykiIbQq4pHx7QlSRPM/K9T+EqOIFGJEIR/GWO X-Received: by 2002:a05:6a20:974f:b0:174:2a38:9d9c with SMTP id hs15-20020a056a20974f00b001742a389d9cmr5449820pzc.57.1697195520651; Fri, 13 Oct 2023 04:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697195520; cv=none; d=google.com; s=arc-20160816; b=ka+2Q7LPLwaqXAjjzRMUrxuc8GuCynrVdlZjeVU3kcgJoPOpIFLGJBD4cZlfc11en3 g3nW2JiO7XVaMoxJ+ZM/wCXl9EC6Dq/4y4K7uDbY00FJBcbgnDFhbYHNqT+UewyNQZr5 zr5d7jb2wzSdTTTd+UpzFpUSdAgLiGZX3u8AMZLHvVtZUfNTsI/KFVZljnM8JFEiK2kZ kJIXCxKGoXh9b1RSxtYVtPovkXn2WC4BJtRF5cL3QtvpnOrdqNstqdCbJPDQeW3d+3zq h8kxwbNWsOu4dfexs/Syx4MmOXZjdOAxeDJ1j+jgJIk3KHN51tgIgx6Vn6XjwiuiZqxs MhFw== 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=BAlapzkRWHzVFJ6S6sO0/lwo/UPnEom59HZeYwg6iwA=; fh=zjYR9uqstvDqRozoY8d+umyFrG3JmlJlZuNCgYvXun8=; b=GdSlm3na3pFp2qj1nMMEjKlEGDWPQV8R925ShE0o99GpUKLkRtN7VJpp2Iry7hJkWC unT+ztsdGXkuIcDYxP0Jc4TV2yAlnFjlWE8ql6+gMh/gSamUSgUF1KR6zKDKsB1WrIs+ ohpBFJwUOWSkhJvp3wAQOL9DvFM9BlQ/iIqKpRGfFp8M+MDjH52gWFbbcnkXDwvCF9+u 8RGzFWtmL6KnibjI04SD41JuIwDA9KlEtVnafYz7J1p3MUNr2U+TR0FiHavqdHyCdOGG nnD8ggt/NeItHK2uMLSA4YfEzD2zo/0g20PXNfgQnjQLe1KWOkw+SA2u8LVaW3vu6GNc xLLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HOkjapG3; 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 24-20020a17090a035800b00277453e82fesi4295588pjf.87.2023.10.13.04.12.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 04:12:00 -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=HOkjapG3; 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 6BD03807E8AA; Fri, 13 Oct 2023 04:11:36 -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 S230081AbjJMLLW (ORCPT + 99 others); Fri, 13 Oct 2023 07:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229940AbjJMLLV (ORCPT ); Fri, 13 Oct 2023 07:11:21 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93074BD; Fri, 13 Oct 2023 04:11:20 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39DBB26B024931; Fri, 13 Oct 2023 06:11:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1697195462; bh=BAlapzkRWHzVFJ6S6sO0/lwo/UPnEom59HZeYwg6iwA=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=HOkjapG3b3gfOck6k1IZmPJymPveCY6JC7bw/l0QEGU8zDlPxlyanghmPWCeE1gia /sYILAp8hgDfVRZTl/wP8AK/VjT3TG6YsdiBqRJMCRGcLnv9TEdrU5MPrNY25yqR53 SwJn9nQEhQ5btlmVd6tBHE9+MKjf97E00Z3V85Zc= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39DBB18f015952 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 13 Oct 2023 06:11:01 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 13 Oct 2023 06:11:01 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE115.ent.ti.com (10.64.6.36) 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; Fri, 13 Oct 2023 06:11:01 -0500 Received: from [10.24.69.31] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39DBAutq025442; Fri, 13 Oct 2023 06:10:57 -0500 Message-ID: <7b0a02ad-d23c-2c04-6672-58f16f2cca5a@ti.com> Date: Fri, 13 Oct 2023 16:40:56 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: 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> From: MD Danish Anwar In-Reply-To: <4a53722d-e31d-4598-a4a9-cf374c84bc44@app.fastmail.com> 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=-4.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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]); Fri, 13 Oct 2023 04:11:36 -0700 (PDT) Hi Arnd, 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. > Arnd -- Thanks and Regards, Danish