Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7963334rwb; Wed, 23 Nov 2022 13:18:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf7iRNTFjmIhRbdapw9zhYLVgLmSLGi7GSQro2RAKsoCEBd6aCinL3uEBtqSSafFtkJBJTZJ X-Received: by 2002:a05:6402:4a:b0:461:aa10:cb0c with SMTP id f10-20020a056402004a00b00461aa10cb0cmr27495668edu.383.1669238310374; Wed, 23 Nov 2022 13:18:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669238310; cv=none; d=google.com; s=arc-20160816; b=b668+oBNOEuqta0AvMPyaZJQFIQyOCBNqQQZZ7QvmHM1sDCYw1kGOO8i+G0BzVOGW5 GoZn+995mo9GJTcNPzpQHEAnCio05lTzhREjxx0accxYxLO2ISI2lKbClGwl5edoax43 dBG8aVueO4HmIuk+NcZOgr2lHnLiymSjkORfhX6c+fnSOyP5efYxgomjQRcxe84ySOI2 gQzChy3Bt9LuGXWD2a+cAFuSb79VwrqjTVz27rLRk0v/FXMu0bORD5h++byAiS9XCV7j 61iZSloAmYZJ/vmrpBzOsGTDZcyXo5sqecQ7KaVrakns0Hzz0jZ/kfqRnASHBA3dsYYj Gm1g== 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=W0Ib2SwgvlfZvFNNkHagp9wO+nNb60/k15KCdhtTNPU=; b=ZDa+klLz+ZDFvDVYiq5W6WzFGC8zd4szqIYHlKy0y/B3v9RVdsWLEwHat1zXVtD1nf 3ighuVW4EQiSGsPtGlALNt4s2czyaZ3pWqixp4fCPy7XevXxjxC/JxomioHTGNzeyHv6 YNY5ZiNFGSpadbmZpZ1iq6qddzIaKDNfc0MBPVskpfsO42TDfXOHmwLJren0HJLCCl1f 00KShkNYm/l1EtRzbLSoJj95CD+v+FKPusVMPgMZzERhD6AVf203XlaD1HHek/ruEptj ZL7vTPf8tyQUrH6Crh1Y/lFvq5ACc+J6WNhSupfYrk0/SodtLMfzm0y57uUjNB+s9BmY ZV1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=j7CKAoX5; 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 m9-20020a170906848900b0077ea290986fsi10819458ejx.584.2022.11.23.13.18.08; Wed, 23 Nov 2022 13:18:30 -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=j7CKAoX5; 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 S234569AbiKWUzL (ORCPT + 88 others); Wed, 23 Nov 2022 15:55:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbiKWUzJ (ORCPT ); Wed, 23 Nov 2022 15:55:09 -0500 Received: from conssluserg-01.nifty.com (conssluserg-01.nifty.com [210.131.2.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CAAF85EF1; Wed, 23 Nov 2022 12:55:08 -0800 (PST) Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 2ANKsdRn004945; Thu, 24 Nov 2022 05:54:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 2ANKsdRn004945 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1669236880; bh=W0Ib2SwgvlfZvFNNkHagp9wO+nNb60/k15KCdhtTNPU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=j7CKAoX5HqZvjhkRFCz8KAuwVyjkGUDoJxK3O74OqXCIuKkZycXr/QuUW95j56HE2 Geh52K06MNb/FABpNrIwtgzErMzPcq++rKkvrEllM8+rjSdNsOGVMua8dQDoG78prk QRzJpz4Vr4IFma2QiB/aAAKiivl4eyARsI/9GSLaO7hQj3luez3XB5Gy5PkMU+aEi9 UFdLJ2u4UDnPqNXdvj9ggMgH3K1dciTT+fi2G6FnRCYNPBkbji4tQ3zOBtmctzwWgu zAULNJHE829MEEjKS3W65mNoure9urml9vgWZIpyXv3KCFxUHaqgwdz2e+YxyxIl3x 3HfYrdesR6q5Q== X-Nifty-SrcIP: [209.85.167.169] Received: by mail-oi1-f169.google.com with SMTP id t62so20290821oib.12; Wed, 23 Nov 2022 12:54:39 -0800 (PST) X-Gm-Message-State: ANoB5pmwyyVjbMhDCqQMfXjsfA8BWW9YQP1TmJuq1A/kkpKVMLieYqg3 sLeRywM/gRVUGbq4IN8Q8WEtVTMG1AAAMWuS57Q= X-Received: by 2002:aca:1c06:0:b0:354:28ae:23b3 with SMTP id c6-20020aca1c06000000b0035428ae23b3mr6475507oic.287.1669236878717; Wed, 23 Nov 2022 12:54:38 -0800 (PST) MIME-Version: 1.0 References: <20221119225650.1044591-1-alobakin@pm.me> <20221119225650.1044591-18-alobakin@pm.me> In-Reply-To: <20221119225650.1044591-18-alobakin@pm.me> From: Masahiro Yamada Date: Thu, 24 Nov 2022 05:54:02 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 17/18] net: octeontx2: 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:10 AM Alexander Lobakin wrote: > > With CONFIG_OCTEONTX2_PF=y and CONFIG_OCTEONTX2_VF=m, several object > files 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, rvu_niccommon, to provide the common > functions to both rvu_nicpf and rvu_nicvf. Also, otx2_ptp.o was not > shared, but built as a standalone module (it was fixed already a year > ago the same way this commit does due to link issues). As it's used > by both PF and VF modules in the same way, just link it into that new > common one. > > Fixes: 2da489432747 ("octeontx2-pf: devlink params support to set mcam entry count") > Fixes: 8e67558177f8 ("octeontx2-pf: PFC config support with DCBx") > Suggested-by: Masahiro Yamada > Signed-off-by: Alexander Lobakin > --- Reviewed-by: Masahiro Yamada Minor: otx2_ptp.c uses EXPORT_SYMBOL_GPL(). It is better to use either EXPORT_SYMBOL_GPL or EXPORT_SYMBOL_NS_GPL instead of mixing them. -- Best Regards Masahiro Yamada