Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7679412rwb; Wed, 23 Nov 2022 09:21:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Zw6Vnva1xboTwZKVuPHnhIWfCr7qviWvXAtztWdco4j66++tFybIWixXQXOKO3DRPGjvt X-Received: by 2002:a17:90b:711:b0:210:9858:2b2c with SMTP id s17-20020a17090b071100b0021098582b2cmr32122930pjz.191.1669224076506; Wed, 23 Nov 2022 09:21:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669224076; cv=none; d=google.com; s=arc-20160816; b=JqP9a65JICvRV+Qohz6Hh/9VJ+6bgh1CIGfNxM4X8UvMkT+BSdUI/vQaxJNiLMMIkg NH8zWgOwtgfeP4QvSI+Mi/ers/SPvzGpnbpOji6NTgHdkluV7/Igk+RykMXP9X8qS9J3 T/84/NaedLgHZe5ks1XHgd5qW5glnrB/T26MFfgV/SCg6wkTVpCAzoyhZpsKNmXT1OKG DUO+MfV+UdOnEnXD7vA0r473DDqQ12quN5QX+yj3kJgpJgSBaRb9/bCjTlp8Sdfcx9QT LlRh+7U8wEOB/t4z9ZW6aOxnit5KIes9BwglEJEpYJqclLKDUF4Hul/gnGe6zxgaT1cD 8txg== 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=sTzPqhL6/cyZNPSMtdcVqn6bAW4DNLqYZywnYDqsJBc=; b=zPYF4Q/rDtK65ISI246JGawRgXnRIL9KGgEyjAjgdfp3ozW1FGiCpBP108EFJI6xdK +hePiaoG/H0bZ1tfQT+bw4ZH2R3Phkz0JyLQ1z09h/VP0dmVfpp2rELWmDaqGL9auJ1s fg89+2Va4I/vHTAFKaN3y+10qZbYbRPaL1NI7YOLe+sGYHTgQz9ODMpqkYgQTF6pKTkf YtLdy6SY0SDydvHfW3BdE+07D7BagXxfM/nnQqYLYrazntbc1jo+aZdUs73vBBOsdsGT XEQVD8G4iYWsAowJKrWmgDtoY5seQdKKJYjjI/H6hjQNf2Q5e8W6iU6BgsBQzVC1Ak4+ UCrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=eA8No2Q4; 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 s37-20020a634525000000b00476a62d09b7si13304553pga.703.2022.11.23.09.21.04; Wed, 23 Nov 2022 09:21:16 -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=eA8No2Q4; 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 S238994AbiKWQNk (ORCPT + 88 others); Wed, 23 Nov 2022 11:13:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238747AbiKWQNh (ORCPT ); Wed, 23 Nov 2022 11:13:37 -0500 Received: from conssluserg-01.nifty.com (conssluserg-01.nifty.com [210.131.2.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFF657211D; Wed, 23 Nov 2022 08:13:36 -0800 (PST) Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 2ANGDAh3011961; Thu, 24 Nov 2022 01:13:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 2ANGDAh3011961 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1669219991; bh=sTzPqhL6/cyZNPSMtdcVqn6bAW4DNLqYZywnYDqsJBc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eA8No2Q4NNdrLH9UbP0H72OqYXl80Z6IyxvARG10leSkiBMGwd23oiDHUB+55TQbm XZ4XbjPDm7HaRQFbDDkCwCj9qXq+MWi6MNPQ6wu1obihRAJq3Fhhk8tkKMKAjdvuwl y+LSBBCDWsR0XaPFUvtzrfMqZ84fz0z3tsxUdl/OhX2dptefIkSG7CwZJUpGDGXo09 taC+YbK0xtit5s/cJEQxmodisK71WdRI9xxK6cx2QPcuzCC3jXOfmGI7sQsWxEy88p NPfhpRjwYYVPnmwuYV1S0AzEvA7VbCLZ9sXAdMS4dI84IDY9B6QCakJMSiwZ472tZJ wGJt0InV0xahw== X-Nifty-SrcIP: [209.85.167.171] Received: by mail-oi1-f171.google.com with SMTP id e205so19478615oif.11; Wed, 23 Nov 2022 08:13:11 -0800 (PST) X-Gm-Message-State: ANoB5pmwz0XqDoFC0nkSBBKyrJ2VWg9PuskpdZ6U1YItbk8UF5IXcjCM fBYy5XOPK/FeqoEGqxw921Nrxkk7xsSKHj9R+Do= X-Received: by 2002:a05:6808:3009:b0:354:94a6:a721 with SMTP id ay9-20020a056808300900b0035494a6a721mr5482733oib.194.1669219990211; Wed, 23 Nov 2022 08:13:10 -0800 (PST) MIME-Version: 1.0 References: <20221119225650.1044591-1-alobakin@pm.me> <20221119225650.1044591-11-alobakin@pm.me> In-Reply-To: <20221119225650.1044591-11-alobakin@pm.me> From: Masahiro Yamada Date: Thu, 24 Nov 2022 01:12:34 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 10/18] EDAC: i10nm, skx: 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:08 AM Alexander Lobakin wrote: > > With CONFIG_EDAC_SKX=m and CONFIG_EDAC_I10NM=y (or vice versa), > skx_common.o are linked to a module and also to vmlinux even though > the expected CFLAGS are different between builtins and modules: > > > scripts/Makefile.build:252: ./drivers/edac/Makefile: skx_common.o > > is added to multiple modules: i10nm_edac skx_edac > > This is the same situation as fixed by commit 637a642f5ca5 ("zstd: > Fixing mixed module-builtin objects"). > > Introduce the new module, skx_edac_common, to provide the common > functions to skx_edac and i10nm_edac. skx_adxl_{get,put}() loose > their __init/__exit annotations in order to become exportable. > > Fixes: d4dc89d069aa ("EDAC, i10nm: Add a driver for Intel 10nm server processors") > Suggested-by: Masahiro Yamada > Signed-off-by: Alexander Lobakin Reviewed-by: Masahiro Yamada -- Best Regards Masahiro Yamada