Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3083277rwb; Sun, 20 Nov 2022 07:05:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf7U2JgChOaczejWqSSZsBF5BwrTJ6YTuPYA0GpUVSLmgl1bobNR6lqymCGu+PwNV2sAmtxa X-Received: by 2002:a17:902:e294:b0:17c:620f:13ac with SMTP id o20-20020a170902e29400b0017c620f13acmr5779638plc.9.1668956709258; Sun, 20 Nov 2022 07:05:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668956709; cv=none; d=google.com; s=arc-20160816; b=egukMOR6iMfH0exYkh1PUSR5hCd0FCU+cMa8Chi+HEL7Tayaue8g0Qr/7p9tHq6Xtu DfAdyR/KHep+3YSsdRR3DDWBo4bfiFYmZgVLa1iH0CPnBxU9rIvrmvr/eGkeUr3Mg/5I uyKAlDHdofvyk50R3JBghUr3lbduCbwSdkrQvQ3Cd+C7hzNJ4p0f1EXcIKkLEvlR3Nlk D7WWPQAdyvQ5ozMI3gMIrBI+ZjkRHB/rxbCkZPv9pr1SO8LmJ+4Rq3qQX4I5i1B0aCRT d3ArnZwNt1Cj7JJpvLQN65Xwww80KYWW2nYw06ItxynBxmKRt14o9GmyD85itwKCm32K 6k9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=04bYM6b6a98KW5iavVUNqEMl9WdMi8dmcgUBbVzkzlw=; b=o8cxsugTw4wn9EMJQJUWrikMstTjdmneG20xY9CO06smOK8g7cgkji+r+tI+eIoMMc bsNz9dGd/w0HSEWKQRO3m1/d/qYvp8e6BtivP4zIoWw1oDl/bzz4gz48tEm+e8sMA4UI tDAdJF28F2kyHjAumbrSN+eargHSWwtE8T5ayIuPp62pf5nm6FQjISJM02c7M8sFZX9w K3AZ9BBNfwqAgsyxy7QPr82eDobtGLqfUhZScG1QaAm1GFr2IyXsO0Uad92c0aj02AmT qw+mTsTp4+6EL8ODyd/L2XGyloAgCnP1YaSPzkqoebJIyQ0OPokQAMIX43yOd0IW8a8o 0KuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UbQIeKvW; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y14-20020a63180e000000b0046f4a36ae51si8681905pgl.710.2022.11.20.07.04.34; Sun, 20 Nov 2022 07:05:09 -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=@intel.com header.s=Intel header.b=UbQIeKvW; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229671AbiKTNzd (ORCPT + 92 others); Sun, 20 Nov 2022 08:55:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbiKTNzb (ORCPT ); Sun, 20 Nov 2022 08:55:31 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58E1F12D1E; Sun, 20 Nov 2022 05:55:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668952530; x=1700488530; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6oz/VGdHbmnvKnjIBkMxIP78ltMPsharNqLSWuk0xuk=; b=UbQIeKvWEQLfUe0vxAZ7mxayS5abA8Llq2JtN1+ZtsNOIbRq3/Cfa77y iZqnQ3/vbaEFjhDwcUd98MvRVCnxvnmPmx3ngn+61fhHrynIqBY2jiLqw xrG6BampbB25emJzKicvBRXQ+uopz9NlL/k7bz3okXnJL9TXD3L4732o9 LrKaeTncvnMzTqYywGEegvJ9sadycPhiXBMOXIDOhYm4918VAS7rhFEGz prjwA297TzWq9BUyr/GUzHOYqaoKmPf7k4bOqf4nH1TyTS9+k8xS0LzDT 5h8rpxRRVBM/xd1OVIOkm0J41BD8HrirPudtcQ6xSmkx3zB8RJzxd8O/c Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10536"; a="296760503" X-IronPort-AV: E=Sophos;i="5.96,179,1665471600"; d="scan'208";a="296760503" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2022 05:55:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10536"; a="640740467" X-IronPort-AV: E=Sophos;i="5.96,179,1665471600"; d="scan'208";a="640740467" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga002.jf.intel.com with ESMTP; 20 Nov 2022 05:55:24 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1owkn3-00Eqr5-1w; Sun, 20 Nov 2022 15:55:21 +0200 Date: Sun, 20 Nov 2022 15:55:21 +0200 From: Andy Shevchenko To: Alexander Lobakin Cc: linux-kbuild@vger.kernel.org, Masahiro Yamada , 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 , NXP Linux Team , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/18] platform/x86: int3472: fix object shared between several modules Message-ID: References: <20221119225650.1044591-1-alobakin@pm.me> <20221119225650.1044591-12-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221119225650.1044591-12-alobakin@pm.me> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 Sat, Nov 19, 2022 at 11:08:17PM +0000, Alexander Lobakin wrote: > common.o is linked to both intel_skl_int3472_{discrete,tps68470}: > > > scripts/Makefile.build:252: ./drivers/platform/x86/intel/int3472/Makefile: > > common.o is added to multiple modules: intel_skl_int3472_discrete > > intel_skl_int3472_tps68470 > > Although both drivers share one Kconfig option > (CONFIG_INTEL_SKL_INT3472), it's better to not link one object file > into several modules (and/or vmlinux). > Under certain circumstances, such can lead to the situation fixed by > commit 637a642f5ca5 ("zstd: Fixing mixed module-builtin objects"). > > Introduce the new module, intel_skl_int3472_common, to provide the > functions from common.o to both discrete and tps68470 drivers. This > adds only 3 exports and doesn't provide any changes to the actual > code. ... > +MODULE_IMPORT_NS(INTEL_SKL_INT3472); > + Redundant blank line. You may put it to be last MODULE_*() in the file, if you think it would be more visible. > MODULE_DESCRIPTION("Intel SkyLake INT3472 ACPI Discrete Device Driver"); > MODULE_AUTHOR("Daniel Scally "); > MODULE_LICENSE("GPL v2"); ... > +MODULE_IMPORT_NS(INTEL_SKL_INT3472); > + > MODULE_DESCRIPTION("Intel SkyLake INT3472 ACPI TPS68470 Device Driver"); > MODULE_AUTHOR("Daniel Scally "); > MODULE_LICENSE("GPL v2"); Ditto. And the same to all your patches. -- With Best Regards, Andy Shevchenko