Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3909673iog; Tue, 28 Jun 2022 05:25:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u5q3nrE0goPIhzxChHInRtIl5Qf/IDaCaEaqS5yS9qP5HcjC4fJnu16tVX2S77aSlZkUVs X-Received: by 2002:aa7:814c:0:b0:51b:b3ee:6be2 with SMTP id d12-20020aa7814c000000b0051bb3ee6be2mr4538510pfn.3.1656419123346; Tue, 28 Jun 2022 05:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656419123; cv=none; d=google.com; s=arc-20160816; b=MIHMq8iQA19JJsx90p/bgjG4LeZ3KS8vWcVDIiG6qcJXhHamYl7PALeE3nYAW0WK/w TCSajf2x3fkK0v5urWWzJzAT/MmwckRN9Fjj3mnbNix+/5wJS6fZUzGsuz33atNhqkE8 1wqNRp0GHL7GDZoACTntIgymCFjUIUM5s2OLHl+BohjYPL6peM3JI4oiNYP7i+pBvixA Bdq1aNQO8ygu3xJzyOA96yYMVmysGNeL6x+cmmvbVRw45UVeFRpH2b40uqhuEW8xdTbI muf8uGK4rgSwEpNdjWj8p8pbhnBHEynouBht7ePQGb5jf8IQll7Qmd+3NZvpCJTnxpE1 j4Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=rw6va/7L57T3p13AIKdB4F5YJGoZKuh6/QVdTAin9AI=; b=XioH+fZ6qi/AFE06Mavb4//dLVUK5wm4f9N/XFdKXzwd1TXWlC5j24msBe2hw41rd8 9MN0AnNKzWBaLGS81siX6JD+ezVhNooFSiW5BnVQM67uYhyr72jFdP6U/4zKtGtpkgUZ uK5jYT97dSzpS4qhUIp4HuWleYXts1hsox49LUQcIT8X9YH0S1byoXOzJ7z5WsshaD8O qoUCiE9EekbZUAMeOzg/BO3auk98+4XKELdYUHVkSR7yPDfp+o9strq8JMPdFlIuQOyB RBo50U+1XuyQzlupy+ofzG+7k255eTO3pZ68UWomcZF9XHqLegfWxurjuAF/9PkLeywv jP0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=dbwD8jT6; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 198-20020a6307cf000000b003f5ccb1a239si15489779pgh.113.2022.06.28.05.25.10; Tue, 28 Jun 2022 05:25:23 -0700 (PDT) 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=@rasmusvillemoes.dk header.s=google header.b=dbwD8jT6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345479AbiF1MRL (ORCPT + 99 others); Tue, 28 Jun 2022 08:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345464AbiF1MRJ (ORCPT ); Tue, 28 Jun 2022 08:17:09 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A936423BCA for ; Tue, 28 Jun 2022 05:17:08 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id r9so9351536ljp.9 for ; Tue, 28 Jun 2022 05:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=rw6va/7L57T3p13AIKdB4F5YJGoZKuh6/QVdTAin9AI=; b=dbwD8jT6RRdxFSmSqRwlY656jiYz+RUTi6/5228PLWnLgkuw3sYfoE5CXzDaeMPUGC gHusMOTQsEMwHi4wzfDa/l80IZYdU4oUn/lvXoqfkPFSjA/fCWtKMD4BWcgrUrPJjPq1 FVXnGWWTa5w0SB0ENRLMLJK15VUNcH2cuctTI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=rw6va/7L57T3p13AIKdB4F5YJGoZKuh6/QVdTAin9AI=; b=hLNx2eGGz+efyqkAD8nv7xnNee9LAODY2+YdvmDh5cmDwqgY4L1wkVmpP3G0ICMq7C 1tRongFxmkK0qIxXIBS48pmlW57IpdqmzkrDhIIaTX243kqBbaJWyB0EZ0rf4nL/wpKK u1/5QzWmPWC+fDc28/7rFty/FK1rqMCaGtNACfmpJ/kLPqHpy7pDy5cT4A4u4j1km/p/ VP64V38olD6bIP/5mTHUEOXwGppZoxcHHqYD+BW7zyqdC/8oMPWmyJ7Q1iGoPONzPX8C 4ml2TwxWYxFeZENtq/5oQbMqAm9SeShaQQaLzrELlRnx+7SQm6vgZEWUI3N/7VpMC+Lv IUlQ== X-Gm-Message-State: AJIora9JqHOfFp1YGKxE5T+eUQ2iB3vm2PY1NDe7pTARzNDJirubuCP0 6l2Pg56cn3dhLGiyEqRVlA7wAg== X-Received: by 2002:a2e:8ec9:0:b0:25a:754d:db39 with SMTP id e9-20020a2e8ec9000000b0025a754ddb39mr9529582ljl.4.1656418626995; Tue, 28 Jun 2022 05:17:06 -0700 (PDT) Received: from [172.16.11.74] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id d7-20020a05651221c700b0047255d2111csm2191486lft.75.2022.06.28.05.17.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Jun 2022 05:17:06 -0700 (PDT) Message-ID: <3741c271-51a7-ed99-673e-18a7356df971@rasmusvillemoes.dk> Date: Tue, 28 Jun 2022 14:17:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [RFC][PATCH] kconfig: Add implicit CONFIG_ prefix to IS_ENABLED() and co Content-Language: en-US To: Arnd Bergmann , Peter Zijlstra Cc: Masahiro Yamada , mmarek@suse.cz, Paul Gortmaker , Mike Rapoport , Borislav Petkov , Linux Kernel Mailing List References: From: Rasmus Villemoes In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 28/06/2022 13.19, Arnd Bergmann wrote: > On Tue, Jun 28, 2022 at 11:56 AM Peter Zijlstra wrote: >> >> Since IS_ENABLED() (and friends) are clearly meant to be used on >> CONFIG_foo symbols and IS_ENABLED(CONFIG_ is so long and almost an >> tautology, allow the more compact usage of: IS_ENABLED(foo). >> >> Signed-off-by: Peter Zijlstra (Intel) > > I'd prefer to keep the more verbose usage, mainly because it makes it easier > to grep for a symbol. If today you do 'git grep CONFIG_PM_SLEEP', you find > all instances in Makefile, in #ifdef and in IS_ENABLED(), though not the > references in Kconfig language, which leave out the prefix. Agreed. Also, having CONFIG_ added implicitly requires updating fixdep, and that will probably make the fixdep step somewhat more expensive - because one would still have to find all explicit CONFIG_SOMETHING (they'd still be used in ifdefs, and the int and string options directly in code), but in addition also grep for IS_ENABLED, IS_BUILTIN, IS_MODULE. Rasmus