Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7961600rwb; Wed, 23 Nov 2022 13:16:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf7yF2j0GWrKU6P3zASY4gIOTCTUofiO5NdcEstCDw447eG4mCCjeOPH3K1UN9+azLdws2pp X-Received: by 2002:a05:6402:2b8b:b0:468:cae8:f5a6 with SMTP id fj11-20020a0564022b8b00b00468cae8f5a6mr27722449edb.263.1669238209420; Wed, 23 Nov 2022 13:16:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669238209; cv=none; d=google.com; s=arc-20160816; b=WYRSnMZ/KmGq5/pqq6Aw+YrCuOufnnVuyV1OpsraJDd+EQYfB+iXzPKCd6RQnrLqhb wXwldjx3K1v63R0ljy2I/sco8Wu5w0wRxjxcQGlYGWojU1jdJbIoYq92KfoU6u4UfwQL N0RXj0Vor7o0dW1AgAfZM3Z3h2uFWfT4jz5DFVjVHz3uMjmqGWZCGi2P2ijGTixPsB+D U8eX8d5WBz1PJh2KIkpWm3Lrf/tlW2BrZlcHLw2hq4OYzrpz3qzvh72qS0X77rRq7I95 D+AfuwxgBhOb5EgVbqobWBxfW/mjEG07tQDMYcxOGVKBpD23jd7MQ2yF0oeSxq5VN3g7 SpkQ== 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=W0nCyQqLQfReQqK54zE3fJbgqD+3GLnWxu8/PxCNlXQ=; b=MXXsef/WGasszS4mDBg3M85Qe62egS8bJ2j3TT6QCRS5/AnMJ1JC/7E/iv/zDe2Brd 7PDrQuMC8DJEsXXWerjV78+qFN8w1C4HjH3mEI6bXFpYWJcOD+AHtE5fTSQ/BPtFDJBa tYHnVvnIqo0/eoDCU/9cFPemIOypp7LSOorpQ8HudEa2bWsjkk3DujYqpDgdjfx32/q9 Lpj7STDf2E1DeKD1VNt5klj4pa4FIHTpzBvtPdMuNxtMfeYed/HFHQWYwxknr72uS1fu iyuObtcnUi4WvsMEurOCGGeZbT4cxyHUW9M7ikgeNRFwhfkd0Au96n0lEoxQ7qqaeM6o mONg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=A5YMICOx; 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 t19-20020a056402525300b00462e628189asi15984312edd.304.2022.11.23.13.16.28; Wed, 23 Nov 2022 13:16:49 -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=A5YMICOx; 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 S237016AbiKWVEH (ORCPT + 88 others); Wed, 23 Nov 2022 16:04:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236642AbiKWVEG (ORCPT ); Wed, 23 Nov 2022 16:04:06 -0500 Received: from conssluserg-04.nifty.com (conssluserg-04.nifty.com [210.131.2.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 894A72936F; Wed, 23 Nov 2022 13:04:03 -0800 (PST) Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 2ANL3RFg000357; Thu, 24 Nov 2022 06:03:28 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 2ANL3RFg000357 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1669237408; bh=W0nCyQqLQfReQqK54zE3fJbgqD+3GLnWxu8/PxCNlXQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=A5YMICOx+m5Mmd3hE7kvpbXpnIWzrtGftJdG06Zsk4CuHc84E51WBS2hrSC6tbQAQ MN6exYDV7Gutx75//uumFPJG0dlUzZJ2/CORGbcQQrprLPbQazhsFP7WWZW1fwXffa O5PK4IXUgJ+25kAi40oT6eOKH9NQ2+V8IP/xHrgr/QdoQsh9wbYjmntAocRI3zQcL0 5oSCxuIJCSjxgqHbMpQ0vb69yW0SKdMDXOhCTc7OZch5hPvm9lpDGBG33IfwZS/l6N W+ZQoQcV799vW72oPaWF6ELpSHBvaMS5pdjvj+nPZqGpKM3lgC6ZR3q0p7PoapsZpm 8NaBdtBj0jNZA== X-Nifty-SrcIP: [209.85.210.44] Received: by mail-ot1-f44.google.com with SMTP id w26-20020a056830061a00b0066c320f5b49so11995806oti.5; Wed, 23 Nov 2022 13:03:27 -0800 (PST) X-Gm-Message-State: ANoB5pkc+ebPEo/YBmgFqHNolXgmJenUbjHqBQ72sgBxOO+bI0eyMpHG 0SGN6ry11sTI9h+sHyRsq7rex+gj4E17DVNt4Ew= X-Received: by 2002:a05:6830:1b67:b0:661:8d9e:1959 with SMTP id d7-20020a0568301b6700b006618d9e1959mr15550185ote.225.1669237406822; Wed, 23 Nov 2022 13:03:26 -0800 (PST) MIME-Version: 1.0 References: <20221119225650.1044591-1-alobakin@pm.me> <20221119225650.1044591-16-alobakin@pm.me> In-Reply-To: <20221119225650.1044591-16-alobakin@pm.me> From: Masahiro Yamada Date: Thu, 24 Nov 2022 06:02:50 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 15/18] net: dpaa2: 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:09 AM Alexander Lobakin wrote: > > With CONFIG_FSL_DPAA2_ETH=m and CONFIG_FSL_DPAA2_SWITCH=y (or vice > versa), dpaa2-mac.o and dpmac.o 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"). > There's also no need to duplicate relatively big piece of object > code into two modules. > > Introduce the new module, fsl-dpaa2-mac, to provide the common > functions to both fsl-dpaa2-eth and fsl-dpaa2-switch. > > Misc: constify and shrink @dpaa2_mac_ethtool_stats while at it. > > Fixes: 84cba72956fd ("dpaa2-switch: integrate the MAC endpoint support") > Suggested-by: Masahiro Yamada > Signed-off-by: Alexander Lobakin > --- Reviewed-by: Masahiro Yamada -- Best Regards Masahiro Yamada