Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7618098rwb; Wed, 23 Nov 2022 08:38:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf4VnpBLFuGpb+iH/bZ3gxLW/lsUnXarnI7eUlDdbpRrqYXjiLa6vLCMoY8m7qbVqte7DyUC X-Received: by 2002:aa7:c78b:0:b0:467:97e4:6339 with SMTP id n11-20020aa7c78b000000b0046797e46339mr25924812eds.381.1669221491155; Wed, 23 Nov 2022 08:38:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669221491; cv=none; d=google.com; s=arc-20160816; b=GzSlCWVkknbhUR34bIf/ibzW7u1Fg4P8ImJtPF7ERxLyJQakfV0ml9AjaeBSNBr1mX cgdqe3nqfiSnmQP5EwbglQGMhqo+KX62JQn/95xJAht3hipmCNRfhXNoohHraT2FArSB xTqd9zabjXm5nN81apom15PRJ271xSvDjR2ZxfoC6iubzx8z3Wl4yRfp4Mc0xgvQzYmV k/eg4/Q8LXRdJsiOrurta9PkOGKyeVoXxot/Q5VptGmB9jq0GElpRhFw2XnzeGUx76Se 2U95hV6DtUdy0A4qpYh33bcbA92kWtgMqrAln2Nhh+RUTirGFgTdlEXNygafe7uyjLj5 TkWQ== 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=pGYwrOBn5BOItVFutTsAWIvBBiJMVtA/X2Z+g2tncqA=; b=gnA88VRhhVIZI+WYZwtJPV24Jj4v8kpwe5RNae2XTEqaMdoeA4slL+lu/zJKdPH6me 8ex7tlxvbcaLvWo6sb6ZdFYxyReFn0g703yBBXAT+WBUNaq0ZsM612jnNh6R6ldKzypf 4hNsWwZk2ow7jCUT7+yAC7hIa9DhSSLH4tvnA2Vtri9nVM/MK9agzH4zDoH4yFUP/jif Ei349k7AinMERc0pPrmzNH5QnGCm6f2aSJ1USTTy1RfyF+PGoMTuRi0HEaEg27DzSApp yp4TkKTbyjC0Vk2IyY9jk/3uPJ07LGxta9SSz3O+wZbO8oKViNR2gOPrjFgWYf3l7MUZ HSFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=19pcjr+u; 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 ez15-20020a056402450f00b0044ee4ec8915si2921209edb.39.2022.11.23.08.37.45; Wed, 23 Nov 2022 08:38:11 -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=19pcjr+u; 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 S239151AbiKWQ2Z (ORCPT + 88 others); Wed, 23 Nov 2022 11:28:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239111AbiKWQ1q (ORCPT ); Wed, 23 Nov 2022 11:27:46 -0500 Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F098C6254; Wed, 23 Nov 2022 08:27:41 -0800 (PST) Received: from mail-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 2ANGRJ49000862; Thu, 24 Nov 2022 01:27:20 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 2ANGRJ49000862 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1669220840; bh=pGYwrOBn5BOItVFutTsAWIvBBiJMVtA/X2Z+g2tncqA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=19pcjr+unQOQCjOVZVKI7joMUYCKPUSy0pVwo/9+7pOHx0RYj69coUGUjOyy3Z77u aQjG8QXO7giJaxZvQBqBNF3nJGAHb9IBlQrcK2T7tS2DbAsekg6i1nNTdv2OUNXL0O Lqty5+EnhAGd381og3dXRI5SnsZh9W2tk8ejRVr8J3Plyha1hrMsv/f8lYZs5r5HaX RHcOlfcHUF/EJfed7Myg1QzzAomwaO/HQFSZXKjT36SgyBL/mGxcoaOwfeG3z5jTiS akYY4nM72vHPEHV/vNH/JbgKvbjJCH7qONNtmUGU1VzRAApBjic6fh67A1LCHgm+KQ k8Vu3n2XAfR8A== X-Nifty-SrcIP: [209.85.160.44] Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-14279410bf4so19570964fac.8; Wed, 23 Nov 2022 08:27:20 -0800 (PST) X-Gm-Message-State: ANoB5pkB4sdK2i3W6LluCfQV2taq0945/8qBFuVce2eSgH0Wp+MVsATI 6FeE4Lmq0yWx6xIz7eINqU8ruGDFnq/G8SgzYSA= X-Received: by 2002:a05:6870:ea8e:b0:13b:a31f:45fd with SMTP id s14-20020a056870ea8e00b0013ba31f45fdmr19102212oap.194.1669220839245; Wed, 23 Nov 2022 08:27:19 -0800 (PST) MIME-Version: 1.0 References: <20221119225650.1044591-1-alobakin@pm.me> <20221119225650.1044591-14-alobakin@pm.me> In-Reply-To: <20221119225650.1044591-14-alobakin@pm.me> From: Masahiro Yamada Date: Thu, 24 Nov 2022 01:26:43 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 13/18] crypto: octeontx2: fix objects shared between several modules 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: > > cn10k_cpt.o, otx2_cptlf.o and otx2_cpt_mbox_common.o are linked > into both rvu_cptpf and rvu_cptvf modules: > > > scripts/Makefile.build:252: ./drivers/crypto/marvell/octeontx2/Makefile: > > cn10k_cpt.o is added to multiple modules: rvu_cptpf rvu_cptvf > > scripts/Makefile.build:252: ./drivers/crypto/marvell/octeontx2/Makefile: > > otx2_cptlf.o is added to multiple modules: rvu_cptpf rvu_cptvf > > scripts/Makefile.build:252: ./drivers/crypto/marvell/octeontx2/Makefile: > > otx2_cpt_mbox_common.o is added to multiple modules: rvu_cptpf rvu_cptvf > > Despite they're build under the same Kconfig option > (CONFIG_CRYPTO_DEV_OCTEONTX2_CPT), it's better do link the common > code into a standalone module and export the shared functions. Under > certain circumstances, this can lead to the same situation as fixed > by commit 637a642f5ca5 ("zstd: Fixing mixed module-builtin objects"). > Plus, those three common object files are relatively big to duplicate > them several times. > > Introduce the new module, rvu_cptcommon, to provide the common > functions to both modules. > > Fixes: 19d8e8c7be15 ("crypto: octeontx2 - add virtual function driver support") > Suggested-by: Masahiro Yamada > Signed-off-by: Alexander Lobakin > --- Reviewed-by: Masahiro Yamada -- Best Regards Masahiro Yamada