From patchwork Thu Sep 8 10:43:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12969923 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7C3DECAAD5 for ; Thu, 8 Sep 2022 10:44:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3FBF46B007D; Thu, 8 Sep 2022 06:44:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 384E06B007E; Thu, 8 Sep 2022 06:44:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1FCA18D0002; Thu, 8 Sep 2022 06:44:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 111976B007D for ; Thu, 8 Sep 2022 06:44:00 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id DFFD31209B2 for ; Thu, 8 Sep 2022 10:43:59 +0000 (UTC) X-FDA: 79888582998.13.B999899 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by imf18.hostedemail.com (Postfix) with ESMTP id 993161C0076 for ; Thu, 8 Sep 2022 10:43:59 +0000 (UTC) Received: by mail-wr1-f54.google.com with SMTP id n12so1420685wru.6 for ; Thu, 08 Sep 2022 03:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date; bh=ItPI0MR3NN2HvuVuI/7ScAvDP5QuDEGNBgMAv6on+2k=; b=Qwl9qXCtUZAEXBRAr7K21sULv09wLNrYWhe7Tqgxdgq8iCs2UNVpXTmHLSihAYrMFB xqPp1w6KiUfXyae1qXE7yYG9/WlBAVSqzQfBQppoR0nPN8/NZV1q0qC81qPEpT25B8j9 lv7K1Tpd3eqjlYr9uZR05QBI+Ee4WyqYEiDi9gEeYKP1NfX30ewVC9KM6uc+aeFNKGAU Vhb4Z4anKzyJmunTqHDt5RrnC6twaekPXm8GT/lUid5tNmlUGLYLN5l7IWiShbEWuYJt 7sMZoOZOaRVd/OzmXh+IhauAAXAbWstN4pdCv0Z2S02OqUX22yUA5TSbAYhrseEmfD1z jEaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date; bh=ItPI0MR3NN2HvuVuI/7ScAvDP5QuDEGNBgMAv6on+2k=; b=PdQwRoUcmFzKX2Bu+S2kb1v1QDvKw01XpiVxi7fAShkGq3K0CMIc/f4VLKAsl9KCQ7 NvrvDQttkgK5X/Kbz1NJiF9KtsNb3y5tgaFOzoGKSeAMYNqcoSqM2UBFLXVuajF3TB/F jXHTHLeyvNXiXbSQqgLXq0n2u2EHkM29LmXDqOJhiBGetz9O+ZwYxs0r2JGTDvgq3OKL JPSIhw6u1C1LxCFVHT8m3nh/9eRHqXpvwrpcpolhAX0W3kjw0ooe3OnVDvieCVXNwFiN eg3Uk2PazOLzGndXjlLCph/CPIkBaw/SWklLJokE8jgDZwwpRgHQ3huYqyYlQT7uiDB1 mzqA== X-Gm-Message-State: ACgBeo2vrd8dHkmbQYsjAhSmCLDb8WYETddNtu+r+uhfo3PgNIpLmncD /LJDY6gX1IUokiDMEcGUU98= X-Google-Smtp-Source: AA6agR6RYLcqVQoPCUZV9g02cRKPZpdef5LX5qakouTpz1Mv2m826gHTOyz4Ytc64G6rdcluoww9GA== X-Received: by 2002:adf:ee89:0:b0:228:7bdf:47d with SMTP id b9-20020adfee89000000b002287bdf047dmr4535843wro.641.1662633838474; Thu, 08 Sep 2022 03:43:58 -0700 (PDT) Received: from felia.fritz.box (200116b826f77600d0640cc051af4288.dip.versatel-1u1.de. [2001:16b8:26f7:7600:d064:cc0:51af:4288]) by smtp.gmail.com with ESMTPSA id bu3-20020a056000078300b0022863395912sm17227486wrb.53.2022.09.08.03.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Sep 2022 03:43:58 -0700 (PDT) From: Lukas Bulwahn To: Russell King , linux-arm-kernel@lists.infradead.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, Peter Chen , Greg Kroah-Hartman , linux-usb@vger.kernel.org, Andrew Morton , Mike Rapoport , linux-mm@kvack.org, Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH 6/6] init/Kconfig: remove confusing config EMBEDDED Date: Thu, 8 Sep 2022 12:43:37 +0200 Message-Id: <20220908104337.11940-7-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220908104337.11940-1-lukas.bulwahn@gmail.com> References: <20220908104337.11940-1-lukas.bulwahn@gmail.com> ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Qwl9qXCt; spf=pass (imf18.hostedemail.com: domain of lukas.bulwahn@gmail.com designates 209.85.221.54 as permitted sender) smtp.mailfrom=lukas.bulwahn@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662633839; a=rsa-sha256; cv=none; b=Ggb6ZBRv/owV50KmmgtEpxvdwBZZEp2ddAf8mWUMaM9cbRMS0RVuMy4phYtmBioM8kSnaP PF0hQaGANjMv05D7J42UTe+cM/oqfkon2kInFgrBG966xqexnlk+sZc/OhRUUypELxip/q riTsDRElLsGLX3X3JLwC0JEiio1+IXA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662633839; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references:dkim-signature; bh=ItPI0MR3NN2HvuVuI/7ScAvDP5QuDEGNBgMAv6on+2k=; b=wiv7eyvNduCxhjdCTf3joyYzhGIRosJQuER1S1+r4ZHEpZc7s6M83hywnrvbjNI9nzn8xg 2Srn6UT3uXNlVsl6hnUCWAbsZrF3H+G++aS1VufEuLBCY5XaHslOjkdFCW/n8poMYr11V+ xdsoSMpQ5Oys7pXs8xPmWiFu9lRPE+g= X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 993161C0076 Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Qwl9qXCt; spf=pass (imf18.hostedemail.com: domain of lukas.bulwahn@gmail.com designates 209.85.221.54 as permitted sender) smtp.mailfrom=lukas.bulwahn@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Stat-Signature: zrhiz4c1snzf4zounxo36tg1trcdamey X-Rspam-User: X-HE-Tag: 1662633839-111489 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Commit 6a108a14fa35 ("kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT") introduces CONFIG_EXPERT to carry the previous intent of CONFIG_EMBEDDED and just gives that intent a much better name. That has been clearly a good and long overdue renaming, and it is clearly an improvement to the kernel build configuration that has shown to help managing the kernel build configuration in the last decade. However, rather than bravely and radically just deleting CONFIG_EMBEDDED, this commit gives CONFIG_EMBEDDED a new intended semantics, but keeps it open for future contributors to implement that intended semantics: A new CONFIG_EMBEDDED option is added that automatically selects CONFIG_EXPERT when enabled and can be used in the future to isolate options that should only be considered for embedded systems (RISC architectures, SLOB, etc). Since then, this CONFIG_EMBEDDED implicitly had two purposes: - It can make even more options visible beyond what CONFIG_EXPERT makes visible. In other words, it may introduce another level of enabling the visibility of configuration options: always visible, visible with CONFIG_EXPERT and visible with CONFIG_EMBEDDED. - Set certain default values of some configurations differently, following the assumption that configuring a kernel build for an embedded system generally starts with a different set of default values compared to kernel builds for all other kind of systems. Considering the first purpose, at the point in time where CONFIG_EMBEDDED was renamed to CONFIG_EXPERT, CONFIG_EXPERT already made 130 more options become visible throughout all different menus for the kernel configuration. Over the last decade, this has gradually increased, so that currently, with CONFIG_EXPERT, roughly 170 more options become visible throughout all different menus for the kernel configuration. In comparison, currently with CONFIG_EMBEDDED enabled, just seven more options are visible, one in x86, one in arm, and five for the ChipIdea Highspeed Dual Role Controller. As the numbers suggest, these two levels of enabling the visibility of even more configuration options---beyond what CONFIG_EXPERT enables---never evolved to a good solution in the last decade. In other words, this additional level of visibility of configuration option with CONFIG_EMBEDDED compared to CONFIG_EXPERT has since its introduction never become really valuable. It requires quite some investigation to actually understand what is additionally visible and it does not differ significantly in complexity compared to just enabling CONFIG_EXPERT. This CONFIG_EMBEDDED---or any other config to show more detailed options beyond CONFIG_EXPERT---is unlikely to be valuable unless somebody puts significant effort in identifying how such visibility options can be properly split and creating clear criteria, when some config option is visible with CONFIG_EXPERT and when some config option is visible only with some further option enabled beyond CONFIG_EXPERT, such as CONFIG_EMBEDDED attempted to do. For now, it is much more reasonable to simply make those additional seven options that visible with CONFIG_EMBEDDED, visible with CONFIG_EXPERT, and then remove CONFIG_EMBEDDED. If anyone spends significant effort in structuring the visibility of config options, they may re-introduce suitable new config options simply as they see fit. Hence, all uses of CONFIG_EMBEDDED have been replaced with CONFIG_EXPERT. Considering the second purpose, note that already probably arguing that a kernel build for an embedded system would choose some values differently is already tricky: the set of embedded systems with Linux kernels is already quite diverse. Many embedded system have powerful CPUs and it would not be clear that all embedded systems just optimize towards one specific aspect, e.g., a smaller kernel image size. So, it is unclear if starting with "one set of default configuration" that is induced by CONFIG_EMBEDDED is a good offer for developers configuring their kernels. Also, the differences of needed user-space features in an embedded system compared to a non-embedded system are probably difficult or even impossible to name in some generic way. So it is not surprising that in the last decade hardly anyone has contributed changes to make something default differently in case of CONFIG_EMBEDDED=y. In v6.0-rc4, SECRETMEM is the only config switched off if CONFIG_EMBEDDED=y. That one use was removed as well, SECRETMEM was made configurable at build time by experts using menuconfig instead. As there are no further uses of CONFIG_EMBEDDED and CONFIG_EMBEDDED never lived up to its intended purpose defined above, simply delete this confusing CONFIG_EMBEDDED. Signed-off-by: Lukas Bulwahn Reviewed-by: Masahiro Yamada --- init/Kconfig | 8 -------- 1 file changed, 8 deletions(-) diff --git a/init/Kconfig b/init/Kconfig index 9e3fd79b089c..d7429e0b8cae 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1818,14 +1818,6 @@ config DEBUG_RSEQ If unsure, say N. -config EMBEDDED - bool "Embedded system" - select EXPERT - help - This option should be enabled if compiling the kernel for - an embedded system so certain expert options are available - for configuration. - config HAVE_PERF_EVENTS bool help