Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7983566rwb; Wed, 23 Nov 2022 13:39:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7woqhnilt8yKkqJHUrc68Y3NX6ojb9PUtwAI7xn+armFQllZT5DtwGyXGJbukHuyismKhl X-Received: by 2002:a17:906:dfc1:b0:78d:894d:e123 with SMTP id jt1-20020a170906dfc100b0078d894de123mr8763604ejc.112.1669239555745; Wed, 23 Nov 2022 13:39:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669239555; cv=none; d=google.com; s=arc-20160816; b=op0k/G3kVr6+IzDLpveNlLzFEFR16FcPX6NCWZrCrFMkwy+SJGvr0tdARGr9RD0t/H kUh+Pj/26xIEsIHWvS8snWrx1wg3Mr39gTLncSlgg4e4NB1gIHVSJl9jUyaNdeWn0YtC 3ivt2q9ZnclittjNVp9RoHXTH62GcaPWdAOccT4OZ1rLn6YA0j/DpEyBAUD58Qh97klm uq4KIbnlT4LzO3/8BlqZP2c7qEFr8pnjVngIWGqI1YHUGpGwbf8UorRkRFlo06uwvsZ3 2NU4IroQtOj1FAFBIWww/CTQ70PPxx+tYxe0H+B2tejigNehKq3z80L2DB1nEy8lm10C my6A== 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=zoV8IJSR/yXiIad/qZ2dgaCeQ40WFYfIodxU3rEorVo=; b=EKOSbFt/wuZdZ5NFEFof1OlPPxd4kUBSetKAgfKvX2eZwmdD8wyQLjoliv0nMlj5yC qHzEenNV759TUqSnxxHBhB+8i7KVO9uGjrBmt51q05hDDnxI4Kh7DeOlio/YUXcrUzf9 QGxMBHN+vFqzhv8QhVko5B/w9/TQLt2FU3L9nocWJ9V4+w866f3dR6/ABjcIFbf7vJZy UlKz4PxsX44z1aP/GKd5+yn3LKeyZlTkDHpYGLVWcGiapMu0rSWdQU22BSvxNdYN/wyC YJRFySa3jCnZkEqXNmhaw/y7eLiAWDFaYZDwBR3V0AxivYUOc5NS1h85EY5BtgvIew/l rTcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=aemjlTZG; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=TTw8+0Q5; 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 dm2-20020a05640222c200b00462b89cc2c6si52178edb.267.2022.11.23.13.38.54; Wed, 23 Nov 2022 13:39:15 -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=aemjlTZG; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=TTw8+0Q5; 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 S237443AbiKWVLD (ORCPT + 89 others); Wed, 23 Nov 2022 16:11:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235790AbiKWVK7 (ORCPT ); Wed, 23 Nov 2022 16:10:59 -0500 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050:0:465::101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 265E63135A; Wed, 23 Nov 2022 13:10:57 -0800 (PST) Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (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 4NHYh00BbQz9sTW; Wed, 23 Nov 2022 22:10:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1669237856; 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=zoV8IJSR/yXiIad/qZ2dgaCeQ40WFYfIodxU3rEorVo=; b=aemjlTZG77DfvThyM1Nb6NUrP0AxAY8Sssv/1HupJ0dH76iwrtE4DzGBkime2jQWaKOlUa 7mnlBMjDgJ/2gKCqk9KzvIA2f1BODuLssxnw/QYNdBv9i46TjGlD4mwfh3GA4MFhzqeASH MUM2zcaFWGiGox/JAZVMAw7dntslc6QmDpWMAu2JZEgsJF+zwo+DNSDghV0jOIHq1pa38t jQxAG2zXdP0xFpdivWnxaqlJ7SnljtvNfZ6pzD6modG8v4ytbC4Q4yeHeHAVg1LzPbkQkl 8vrB+cllthObd4ydHMrhfcgrIwCyB/aA6DK4uCVxH2BGBEvYsjWKDLSqV7XU7w== From: Alexander Lobakin DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1669237853; 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=zoV8IJSR/yXiIad/qZ2dgaCeQ40WFYfIodxU3rEorVo=; b=TTw8+0Q5t+kKgVe/DZNsnjYtvvQYOy0vwi9qoaI14AS7AU1RzbNMo855JEwhuyRaem/sGE J25JjAWLWH0gumWXyjBBlr3FqTD6+V1HCFE0q/BhsQ2aMTVCrc5ysmq1Cy9ZPvW2uo5tAF 8gGLXEUia/5r0ORqtyUQBR6jHkAa51Zw/78ifAsJTm9Q0Hht56dNMxlJBrdCUnYIbsWb8k B1Ufh+W+9coRJeBBqfylBiqi+2PTdajJ3OrlwDcO0CHN7Mm3Bfc06RjLfU1maA0mcctoRk bTMyU7Q095P8Bwy5GzLie9V13fh7qeG1Vge90T62GGT08zLlr1SY0NEghZUl5w== To: Hans de Goede , Masahiro Yamada Cc: Alexander Lobakin , Andy Shevchenko , Alexander Lobakin , 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 , 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 22:10:35 +0100 Message-Id: <20221123211035.54439-1-alobakin@mailbox.org> In-Reply-To: <87852fc9-0757-7e58-35a2-90cccf970f5c@redhat.com> References: <20221119225650.1044591-1-alobakin@pm.me> <20221119225650.1044591-12-alobakin@pm.me> <961a7d7e-c917-86a8-097b-5961428e9ddc@redhat.com> <87852fc9-0757-7e58-35a2-90cccf970f5c@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-META: apd7tkcpfh8hp33ekzxo6ntqtp9t5hsn X-MBO-RS-ID: cc117617e3320a4af12 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: Hans de Goede Date: Mon, 21 Nov 2022 09:12:41 +0100 > Hi, > > On 11/21/22 00:45, Masahiro Yamada wrote: > > On Mon, Nov 21, 2022 at 5:55 AM Hans de Goede wrote: [...] > >> So nack from me for this patch, since I really don't see > >> it adding any value. > > > > > > > > > > This does have a value. > > > > This clarifies the ownership of the common.o, > > in other words, makes KBUILD_MODNAME deterministic. > > > > > > If an object belongs to a module, > > KBUILD_MODNAME is defined as the module name. > > > > If an object is always built-in, > > KBUILD_MODNAME is defined as the basename of the object. > > > > > > > > Here is a question: > > if common.o is shared by two modules intel_skl_int3472_discrete > > and intel_skl_int3472_tps68470, what should KBUILD_MODNAME be? > > > > > > I see some patch submissions relying on the assumption that > > KBUILD_MODNAME is unique. > > We cannot determine KBUILD_MODNAME correctly if an object is shared > > by multiple modules. +1 > > > > > > > > > > > > > > BTW, this patch is not the way I suggested. > > The Suggested-by should not have been there > > (or at least Reported-by) (to Masahiro) Ah, you're right, sorry. Will replace all the tags to Reported-by, that would look more correct. > > > > > > You argued "common.o is tiny", so I would vote for > > making them inline functions, like > > > > > > https://lore.kernel.org/linux-kbuild/20221119225650.1044591-2-alobakin@pm.me/T/#u > > Yes just moving the contents of common.c to static inline helpers in common.h > would be much better. Sure, why not. There probably are more of shared object files which would feel better being static inlines in the series, will see. > > If someone creates such a patch, please do not forget to Cc > platform-driver-x86@vger.kernel.org Got it, sure. get_maintainer.pl dropped a wall on me, so I was picking stuff manually from it and missed that one. > > Regards, > > Hans [...] > >>> Ditto. And the same to all your patches. Thanks, Olek