Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7342535rwb; Wed, 23 Nov 2022 05:30:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf40CihBxe6iQbpzcrYbY3Uxzq8o3QWKZpOIiCbg6R52AFZu7qdXgfJJFzbgcKyTnTluy1e5 X-Received: by 2002:a17:907:d042:b0:78c:c893:1965 with SMTP id vb2-20020a170907d04200b0078cc8931965mr22916978ejc.247.1669210236967; Wed, 23 Nov 2022 05:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669210236; cv=none; d=google.com; s=arc-20160816; b=ITxoKn3fcN8MFjC3ZPXxTUXyhTYl10PWU+hFq9rHFki7d7asBlRSGyi7ccAjfV6VgP xzlxySOceRjozzHnFzeSr1q1iSdmidWPDB+340yW0iWJVNUSK0/ePRdiFq01NIdkgULS zpywer+UmNPnzc8iXSI/J1nk3nUCy1TPqAyfcDBo97KDdLpeXUE1u2pG8GCJa8zCc8lM xcfUXrpp9hYXMiG8+tI0B3bTO8uafsjwDpRZdpwn6YDIDTNrig1unE45e6os8PxFhhPi Z4K666LCOpsXLgRyRsiDxZ/Ayf75vyeLybPgjH3iLqwbQTUvb0mq7uxHE54c8UfOQzfS XhaQ== 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=/0YxBwaIDdbvVmxcfiVpYWCSb8Y0z9oI7DjNyiXXRmA=; b=sdMYU2YvUZzWu7a3N0kb8Zpd+2lJHwMYFRDB6cUlV4IkM++1wXLnaT0ET2aQHNOkwE OLVaLSTgmFLx+DWdK511ftg4jCgY3JEdQcFs8g99l880DOeNjAhW7v4vtvR/JzbnznPW Bve8h79xdfjpA7gR7gntbMorJM0qPtVWKgzBgwDsmIpY8exhEQH4Z16WE67bDF8++Q4l OapsoBpzJgQvuDP2fsnciulHNcNphNV4reEYYTF/IViqDXmctIQ6r2ZrpgZ9Rjj4UQjf Dcio04eWHcdQqqSjreP5/6Z7yHO5EfwLyxz/COBEeTTg6GUuYH9F80ME590QpO52h5RS qBsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=QBEOJWQJ; 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 h20-20020a170906111400b0073beb58e98dsi11893482eja.276.2022.11.23.05.30.13; Wed, 23 Nov 2022 05:30:36 -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=QBEOJWQJ; 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 S238611AbiKWNXx (ORCPT + 89 others); Wed, 23 Nov 2022 08:23:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237710AbiKWNX0 (ORCPT ); Wed, 23 Nov 2022 08:23:26 -0500 Received: from conssluserg-03.nifty.com (conssluserg-03.nifty.com [210.131.2.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F29445BD7E; Wed, 23 Nov 2022 05:03:58 -0800 (PST) Received: from mail-oo1-f45.google.com (mail-oo1-f45.google.com [209.85.161.45]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 2AND3ksx018934; Wed, 23 Nov 2022 22:03:46 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 2AND3ksx018934 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1669208627; bh=/0YxBwaIDdbvVmxcfiVpYWCSb8Y0z9oI7DjNyiXXRmA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QBEOJWQJVjwDdBhOArmESrXbkAyRUdgfW7qVM/ce5NptE9qld/Am6g/R4gVeQWeec 79z/vpXPetPHoSrw6k1es6SKSXgKTT7FyvwaSpdIRMn50Q85DkBcsUe7F69dLyoovl SQzYWeQRmO6RSt753kTRl3gFfi3HL1MQ09IowL15zGPdpeNeTPLYgSDcFO5v3vLVgJ xwtQ4GX4mXOgN/zRzc/TVYEyD7tfBhqT7KlGQAayM3rkRKBNylfeGYlI6zKkpRNqJT fS9bpekQXwO2ffuvJeqw/ByOhW4ABWuoIG/kpLuu2HvWelgFuNJzo5cDcQCzWGUdYU 3F6udt6MTbqJg== X-Nifty-SrcIP: [209.85.161.45] Received: by mail-oo1-f45.google.com with SMTP id k12-20020a4ab08c000000b0049e2ab19e04so2688667oon.6; Wed, 23 Nov 2022 05:03:46 -0800 (PST) X-Gm-Message-State: ANoB5pkY7udZ+e7yh5rpaflJmVpM53uzCsp15ua24E+yBNIgd9js8mzD HmIxAcHqx3EMWDIiJSuSQyEjnQ/2kh2kQu3NQEE= X-Received: by 2002:a05:6820:16a7:b0:49f:c664:44e2 with SMTP id bc39-20020a05682016a700b0049fc66444e2mr3980265oob.96.1669208625497; Wed, 23 Nov 2022 05:03:45 -0800 (PST) MIME-Version: 1.0 References: <20221119225650.1044591-1-alobakin@pm.me> <20221119225650.1044591-9-alobakin@pm.me> In-Reply-To: <20221119225650.1044591-9-alobakin@pm.me> From: Masahiro Yamada Date: Wed, 23 Nov 2022 22:03:09 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 08/18] net: enetc: fix mixed module-builtin object 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 > > With CONFIG_FSL_ENETC=m and CONFIG_FSL_ENETC_VF=y (or vice versa), > $(common-objs) are 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, fsl-enetc-core, to provide the common > functions to fsl-enetc and fsl-enetc-vf. > > [ alobakin: add exports to common functions ] > > Signed-off-by: Masahiro Yamada > Reviewed-by: Alexander Lobakin > Signed-off-by: Alexander Lobakin > --- > drivers/net/ethernet/freescale/enetc/Kconfig | 5 +++++ > drivers/net/ethernet/freescale/enetc/Makefile | 7 ++++--- > drivers/net/ethernet/freescale/enetc/enetc.c | 21 +++++++++++++++++++ > .../net/ethernet/freescale/enetc/enetc_cbdr.c | 7 +++++++ > .../ethernet/freescale/enetc/enetc_ethtool.c | 2 ++ > .../net/ethernet/freescale/enetc/enetc_pf.c | 2 ++ > .../net/ethernet/freescale/enetc/enetc_vf.c | 2 ++ > 7 files changed, 43 insertions(+), 3 deletions(-) I think you can grab Author since I did not finish this patch. (and of course, I did not test it at all) You can remove a blank line after MODULE_IMPORT_NS() Reviewed-by: Masahiro Yamada -- Best Regards Masahiro Yamada