Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6627491rwb; Tue, 22 Nov 2022 16:32:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf7yV7tAZXB0UxZxkxJRJdGljpc9hPb416bTedyFvYBQLELYYJU0kMh/EPXMWETO/IKmhpOv X-Received: by 2002:a17:906:950a:b0:7ab:2559:8bc4 with SMTP id u10-20020a170906950a00b007ab25598bc4mr6569542ejx.682.1669163565271; Tue, 22 Nov 2022 16:32:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669163565; cv=none; d=google.com; s=arc-20160816; b=uGWXJj3iDO4GH0R1gQ8QZVpxv/Z3M5cYtms7E/YwJhX8QjdVjKWvMzCq5BVRXO4uw/ F+0O+T7l8sNSpEJhu/oDeiiBf2C2WVzSchulDlXyDjEsCVZRvxQ7/oJYjunc9n0pmpyi tpxcRnOjUTIqHssbHfu/F0YFdE18q3wAzXWQNvFYQd+//IVZdjuz5RnKcZQ59iXae//w 1bopSWiZKfq1oiTFtPf2a7xsucp15L4pZTxEUhfVdgW/uF8nd5x+qIR3fIqaBAn4hGd/ /W7t/pJtg0lq5t9MHRuieN12Q7pogoYe08Y2I9d/9LkKjOUdvBwhD8XNREhC9fRfMZQh 7rQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :from:dkim-signature; bh=cpqvGJ6KHdgLHFmpNmxmrXgmC1bx/Ijm3WunVFRnkw8=; b=xf3kB/ulojp2ZITsuA9oP9jOVqm7MCQC3yXxT81hWaq5fuEp3Oa1ksOEPicabYi4LP HwtQLIgt+A5cuJeW8G0cHBn1PYhbecnLtFCPCdlAUIlqkhVUFXJahN2AKGf1/nnXPqMg NJ9r4u995r/i7FKK+H0VIeVJ3lY/QlvnjLEr3ZmHYj6DmNrpCi0M2WlQK/QHF345VT9H EKNogf/uIVLlNAfL6Bp9Xl1rwhbe6c5MVCimTEW33YV42M8YGSOAg84AuDF+6bmLDh8A z2bLC4+9Kzs0ZNEtF+VK3hJw+VBJwx+s0IXNhrE3OXLuSpx13pRbN3D09T9BnigwxWrk m1+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=NVUYey2k; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b="WkehU/oV"; 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=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k20-20020aa7d8d4000000b00469cdb77fe2si3487180eds.83.2022.11.22.16.32.22; Tue, 22 Nov 2022 16:32:45 -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=@mailbox.org header.s=mail20150812 header.b=NVUYey2k; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b="WkehU/oV"; 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=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235110AbiKWAI4 (ORCPT + 89 others); Tue, 22 Nov 2022 19:08:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233239AbiKWAIy (ORCPT ); Tue, 22 Nov 2022 19:08:54 -0500 X-Greylist: delayed 8654 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 22 Nov 2022 16:08:52 PST Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBE35D32A4; Tue, 22 Nov 2022 16:08:52 -0800 (PST) Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4NH1gj3rZZz9sTQ; Wed, 23 Nov 2022 01:08:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1669162129; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cpqvGJ6KHdgLHFmpNmxmrXgmC1bx/Ijm3WunVFRnkw8=; b=NVUYey2k2K8/IrYW3JGEDZESFL6/uhPXoiCIN8SzxBE7jhaaj8sieiF6qlGgllfmUJbbLk xDaoOIRoRtJQmPLi5H3E29F7KatUV8IaZrKIbMXkjnRnH8wKVLx9YvcsQe+NDGVo4NHtUC O/ArolaHMB7GmaJ0Uw686jKXBBrWwV3UeFEGBtmTovhKHxWT8p3/1sG7zInM/e5PjKxaDJ T69o2tdnpewUcxioIL0lxfwyMzEwZirPdjxpJqWEcX+Z0sD3h6Gnv/DmypFZPjPAYJBQLB WmxmO0c+2N48vREjxSYKeUVdKmXBqVwLbWVmeqJJ03SRemLZfZywA54GURowNA== From: Alexander Lobakin DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1669162127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cpqvGJ6KHdgLHFmpNmxmrXgmC1bx/Ijm3WunVFRnkw8=; b=WkehU/oV9+TML/PIcxU1BvQiDNn9y2L5Xnh9BkbreCCPYxkL0Nk0U/O+0LNm5r8aDmNpbN HB42nmlAyGfJLZTcxWrcOO4NlAI3UVQ7G+icweKve6RntZnLmJYGb178H+Lgg2lIEKABro +v8pEtdYqQil7x8/hHheEw+rO4OwM/GAFfgGkKg1oiHACXi5kt29fAVO70KzPcbbaKW5Jx OKA17Eq02YcT5ukmzXqMILvdhsQtW9QWviqT5v1ktYokNOKfX5a9PPA+DYR5zhIFBhNDd/ xQGK+qT7O/3pLZIQHr2xzwQI8WAnU/TeOkBUFJWrS2JScwOt95cDxCNDFEUiiQ== To: Andy Shevchenko Cc: Alexander Lobakin , Alexander Lobakin , 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 , 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 Date: Wed, 23 Nov 2022 01:01:51 +0100 Message-Id: <20221123000151.64567-1-alobakin@mailbox.org> In-Reply-To: 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-Transfer-Encoding: 8bit X-MBO-RS-ID: 128ac0f89d98468d511 X-MBO-RS-META: 48m5g8ybbkypsfb8mrejc38cmasgeyh5 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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 From: Andy Shevchenko Date: Sun, 20 Nov 2022 15:55:21 +0200 > 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. My intention was that it's not "standard" module info like license or description, rather something like exports or initcalls, that's why I did separate them. But I haven't been using module namespaces a lot previously, so if it should be in one block with the rest MODULE_*(), sure, I'll fix. > > > 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 Thanks, Olek