Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7646269rwb; Wed, 23 Nov 2022 09:01:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf5hw0rEohfD5moJguypfhqhkJ2kN8JSE/L7GZLoeD1+y/zfBBjJIqOu5I2H1NLdQLiLUmKS X-Received: by 2002:a62:e80b:0:b0:56e:ad31:b98b with SMTP id c11-20020a62e80b000000b0056ead31b98bmr13966515pfi.40.1669222895906; Wed, 23 Nov 2022 09:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669222895; cv=none; d=google.com; s=arc-20160816; b=qeeMDrk/RhT6wRJnbniWECOPAwDq5NBu7ZLxXdca95lC6kMj8Uwr+JUh1LyPf1wUNF cGSx2MpD1ggEmA/J29ACLlpxDx0g4YpyxfeogajldMd/HgqclKYUZ+pAwc5D0Sd0uKh1 /cGQY0MznRPJkoyESre8CF7XAlwdyqRoid8CYtNx4HxgOdmrZs6+Nck1Sd4x45xy/4uS PmYO7BTs/n48UIIR2VTKuY0Y0I+68S3HMsaM+J+Ryh1R8yRnO0a4qj3jfBwlf96loj5C Wh04wcVmetYQ+uXLEIcWVUvEsD/sCr48eTp1L5MDDL9cOBFAGbczfP9vAm7k6KtoIW9I mL6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=svFtEHRXI+hcu/P5T8jGVN2TIA7Yepr3md/9hK9H4Os=; b=NKWZe/gbSI5YPVUxgca4sWj03EI2s6XFNqFlTthY3uVA9ES5R5sKfuzdfUOihblOB/ X58j7z9aIoX6hTTnRMnQHEnvx9voVYj3yPw/a1i9BZ70lgIbko8Y+t62oO8ktxKPT+ur StH+rWDSyEHmkBl+vKsYrrAbRinuw/aNLXExXCHptjIPECrkZCtzt6AWFe5FmrK82lSb 82WsojFcnHoHMCi1BdvyAIWOm2tNg+oWDs5DV3BP3IPR8i2ekP5d96EM8G3DTefnTZj9 0t8g1o93rwyp9lvWeMlCTUX3iFYEhGJABijwfjaRNBzi52/cvM+1HJv0cfcTGV5l8rMZ 4V0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=hvOdANAj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a170902e84b00b0018128753b25si3611929plg.271.2022.11.23.09.01.22; Wed, 23 Nov 2022 09:01:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=hvOdANAj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238547AbiKWQF7 (ORCPT + 89 others); Wed, 23 Nov 2022 11:05:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238512AbiKWQFy (ORCPT ); Wed, 23 Nov 2022 11:05:54 -0500 Received: from conssluserg-06.nifty.com (conssluserg-06.nifty.com [210.131.2.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7B431F615; Wed, 23 Nov 2022 08:05:52 -0800 (PST) Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 2ANG5TUq009845; Thu, 24 Nov 2022 01:05:29 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 2ANG5TUq009845 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1669219530; bh=svFtEHRXI+hcu/P5T8jGVN2TIA7Yepr3md/9hK9H4Os=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hvOdANAjjXXWAB4WMsZdDYqo0cVfVOoPZXMvA5AzP+Bqbjqrag6EYSs9UxzKC+Dnb wfyjYj7MZg3+gbt+18QK4OIJ/iJphcfQzYC7RSI962tkJ8j50pVCbOxRR0GgHpBh7s P1/M0IzZC5UThIBzH6uvdxJ5WUkEaydSN+LyQfgSmzn32dJJ4imQDAEOW6S0dx3LOP 3F8NaLCcnlmlblM9rlg9GKqjA1P2ItrZZyKD3q+L01sAFL/jQphPgnMBuP6m6amq1d AN/l4BdcUMVXQd1gIVg52jgLkMwE3kUhbFXankfuFat2LJYSrUXaigGjN7+u6k8NRX +XrwbfrRUik8Q== X-Nifty-SrcIP: [209.85.160.41] Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-14286d5ebc3so17990322fac.3; Wed, 23 Nov 2022 08:05:29 -0800 (PST) X-Gm-Message-State: ANoB5pl3TnU217L4Ves+m82DMV2KuoNgWkxt7/ueOe6SwvZbJEOiA6lm yNc2BZTvNuyE7UZS1c7x2LKzNFeSG/YZYThgQSY= X-Received: by 2002:a05:6870:3b06:b0:13b:5d72:d2c6 with SMTP id gh6-20020a0568703b0600b0013b5d72d2c6mr5086727oab.287.1669219528697; Wed, 23 Nov 2022 08:05:28 -0800 (PST) MIME-Version: 1.0 References: <20221119225650.1044591-1-alobakin@pm.me> <20221119225650.1044591-10-alobakin@pm.me> In-Reply-To: <20221119225650.1044591-10-alobakin@pm.me> From: Masahiro Yamada Date: Thu, 24 Nov 2022 01:04:52 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 09/18] net: emac, cpsw: fix mixed module-builtin object (davinci_cpdma) To: Alexander Lobakin Cc: linux-kbuild@vger.kernel.org, Nicolas Schier , Jens Axboe , Boris Brezillon , Borislav Petkov , Tony Luck , Miquel Raynal , Vladimir Oltean , Alexandre Belloni , Derek Chickles , Ioana Ciornei , Salil Mehta , Sunil Goutham , Grygorii Strashko , Daniel Scally , Hans de Goede , Mark Brown , Andy Shevchenko , NXP Linux Team , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 20, 2022 at 8:07 AM Alexander Lobakin wrote: > > From: Masahiro Yamada > > CONFIG_TI_DAVINCI_EMAC, CONFIG_TI_CPSW and CONFIG_TI_CPSW_SWITCHDEV > are all tristate. This means that davinci_cpdma.o can be linked to > a module and also to vmlinux even though the expected CFLAGS are > different between builtins and modules. > > This is the same situation as fixed by commit 637a642f5ca5 ("zstd: > Fixing mixed module-builtin objects"). > > Introduce the new module, ti_davinci_cpdma, to provide the common > functions to these three modules. > > [ alobakin: add exports ] > > Signed-off-by: Masahiro Yamada > Reviewed-by: Alexander Lobakin > Signed-off-by: Alexander Lobakin > --- Please take the authorship for this patch because I did not finish this patch (and I am not sure if this is the correct way to fix) As 18/18 will touch this part again, perhaps davinci_cpdma.c can go into ti_cpsw_core.ko Anyway, the maintainer may have a better insight. -- Best Regards Masahiro Yamada