Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp340906pxb; Wed, 20 Jan 2021 08:14:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4//4vRB/jXgdNMKWFccAUc8q3eyQ71Ye2MqExnV4KxU+Q9C8WTz3bchlAgIBS6e1vWW2P X-Received: by 2002:a05:6402:1a2a:: with SMTP id be10mr7615486edb.185.1611159256149; Wed, 20 Jan 2021 08:14:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611159256; cv=none; d=google.com; s=arc-20160816; b=qiWnPiGZMAWen0qw2OPdM47tleMnqKdz+9i0e2BIkZbPpG6z36tL/jGcO5Sc2r2ctJ U1010NQEAxIzEz1M7lZvsfqR8SZHOkZrPMZeSmbRxJ3ixTqrpJ3VC9o9yz4utn6kAILM Y+FS7rWE20oZG2Rae8r1jAGzuduIirJy7CLdDUhRa+XLkoGo8h1HQcm5DqgGPzbX7HmC iDDh35hiq3g1+NYwMHlcHxm5Pm77oWB1OXbBY2S7V5vG8G19e04BlyGOUDnBp9PlPT6l YzSPeGKr3DIfQAzMh4ofJiAZbElg4mrO2YUk7NTwGcrZFblJLapq09FIvYdYpKxzTH1S zE2w== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=uAHsuUjz/OH7M/regRPOrnI1NViRSfoSotW1TgKkDYc=; b=xZulUU9RFUeq/Lb4bJFxZy/alPcI8O6X1UB6W0k77uT7DWTwZOhcduBrmy64nq9UmR dcRstbbIKThDQkq+F60QMODdU5mnLROvs/N45QhssH44Q0OcKVR2pf2z0Ya0c4rL2+oO dtsrTKJpI4bbTPyWOo1FWt0BP9oT10nRJtj2ugYEASGIDO8ezgsNeG9sHgR6bjjVTzO3 Xa8xWYgGQPNvEWqV28/PCQhdvlmtYnjg+M5d98uhOvDyt8YW9Px31+pJmDhHXtRyz0uE A67m4v01szcr2h7jj6ZwE5T5QjYYUY5ydnE/4xaI0hfhzGV7Kgma1V7wszlEUqSfrEFK DaBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si806208ejm.606.2021.01.20.08.13.51; Wed, 20 Jan 2021 08:14:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391136AbhATQLn (ORCPT + 99 others); Wed, 20 Jan 2021 11:11:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732325AbhATQKE (ORCPT ); Wed, 20 Jan 2021 11:10:04 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C038C061757; Wed, 20 Jan 2021 08:09:24 -0800 (PST) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1l2G2o-009CDI-D1; Wed, 20 Jan 2021 17:09:18 +0100 Message-ID: Subject: Re: [PATCH] init/module: split CONFIG_CONSTRUCTORS to fix module gcov on UML From: Johannes Berg To: Peter Oberparleiter , linux-um@lists.infradead.org Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Jessica Yu , Andrew Morton Date: Wed, 20 Jan 2021 17:09:01 +0100 In-Reply-To: <8191aa4a-3bd7-5de7-1ad2-73b851128ff3@linux.ibm.com> References: <20210119121853.4e22b2506c9a.I1358f584b76f1898373adfed77f4462c8705b736@changeid> <8191aa4a-3bd7-5de7-1ad2-73b851128ff3@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-01-20 at 17:07 +0100, Peter Oberparleiter wrote: > Do you expect other users for these new config symbols? Probably not. > If not it seems > to me that the goal of enabling module constructors for UML could also > be achieved without introducing new config symbols. Yeah, true. > For example you could suppress calling any built-in kernel constructors > in case of UML by extending the ifdef in do_ctors() to depend on both > CONFIG_CONSTRUCTORS and !CONFIG_UML (maybe with an explanatory comment). > > Of course you'd still need to remove the !UML dependency in > CONFIG_GCOV_KERNEL. Right. I can post a separate patch and we can see which one looks nicer? johannes