From patchwork Tue Feb 6 00:13:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 197123 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1228170dyb; Mon, 5 Feb 2024 16:15:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8fZOAQ5lH85i+S9jDJ6vELdVOmOdpgRyaEOqqOUmxDNOMIb+qWZf6Tjq4cRDCWos+bpkA X-Received: by 2002:a81:c402:0:b0:604:7009:8267 with SMTP id j2-20020a81c402000000b0060470098267mr95948ywi.39.1707178517530; Mon, 05 Feb 2024 16:15:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707178517; cv=pass; d=google.com; s=arc-20160816; b=FRxx77Ci5TctOAYyjpGoE4IDg0idQmKRI1la9HkonWMyRiNh/2rTeKozUenwD+jmvm CfNRO7dzfW8GkLw74KfGqGl4AmiAnAlovtB4FaP6UwBAMW0tYpMlqNC5+avs2RHrA/Ry tT8aHymhMs0UDKkUTE4BKc6NZeuKDHKjMhRYirPEyjQpz4cGLcZ7lTwi9QPdwtQyi8pf rTG1ZUi6H2v3WlB/VY6s5sVte4O80fTIXYYw2AxAule7KN1YJiSJGk2Wm3mHdldmeJ/a UiGFmbIeDerWvFzLwmmzjcko5TyF+jx2lJQrFLIXTz7x+srY7agoE0xrrBnkXu/P99E2 nXwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=sFNpFi093TpETZs6mdYZEjtXAaH8xI625rElwAZwslo=; fh=8Zi3zUpUh0x1xqICXj/Ykyk0bI9F/qYfMp78tOrIPGE=; b=hop/amUwlOVBm5Mu7xh/Og6pRJ8UVLcNYaBwu/kmzFBVGrAQi5YrHrnd1XctDWPlGO /UQLpOKrc8kWptscgKaOzJgBbA8OVKJpXAKkT/dqj6R8JG+lcE9POiArEH4mSKr0aHHu 1N053yEfoP2wVVT6H2w7wizn6BEhZ/w8Fa1ZMu4rlh03nzL7Yrn+tqEwOjd16HV0NCVv jkidiUKGcblwPhPxXc5eVW4nA091B/D8f8j8G4EDvjasHTwTGf9n+IecPpvXP+gPlE10 fvjV8f+YkXPGcHjl2vwshSpjgqmSA+V2pC2W0CYPqzF9bIPMM0oq/D8j/HPYdatKI+dz Bfmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@smile-fr.20230601.gappssmtp.com header.s=20230601 header.b=rgV6cLJB; arc=pass (i=1 spf=pass spfdomain=smile.fr dkim=pass dkdomain=smile-fr.20230601.gappssmtp.com dmarc=pass fromdomain=smile.fr); spf=pass (google.com: domain of linux-kernel+bounces-54117-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54117-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=smile.fr X-Forwarded-Encrypted: i=1; AJvYcCUqb7eLz79LPkOGvdjGSui0Z1nyHsqOapka/94Ci4CpxyIkwEFQf3zoXFzaP/Bpg7lU3VA5hxHL9UC2S95LW7vuHeqZZw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p18-20020a05622a13d200b0042c3613eee1si59830qtk.41.2024.02.05.16.15.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 16:15:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54117-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@smile-fr.20230601.gappssmtp.com header.s=20230601 header.b=rgV6cLJB; arc=pass (i=1 spf=pass spfdomain=smile.fr dkim=pass dkdomain=smile-fr.20230601.gappssmtp.com dmarc=pass fromdomain=smile.fr); spf=pass (google.com: domain of linux-kernel+bounces-54117-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54117-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=smile.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 470F01C22377 for ; Tue, 6 Feb 2024 00:15:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7FA8B675; Tue, 6 Feb 2024 00:14:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=smile-fr.20230601.gappssmtp.com header.i=@smile-fr.20230601.gappssmtp.com header.b="rgV6cLJB" Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C6E333F9 for ; Tue, 6 Feb 2024 00:13:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707178437; cv=none; b=q0M+pG3gG+nPZltvz3awyn155PTFv41UUmHu3GeNb5ZhV8GCHSjIvu7PVBeECPVkKHL/F8zHc35DPdJ96HiGJMLFC9mP9SYTg6GEDYARwOlp6LYXDSEjXQtMtF3XDLlZzVNrdR4vn+yvf1zypfDicv5qc55rw1BrTWHDxQ0Wa60= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707178437; c=relaxed/simple; bh=BvD7KT+7ul13q1wVJvqPxQDUSv1WiR9wKCxQbbEr318=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZnKuDvKPdUdMuoscoEw7bPoWWU6dPtE6Uff1JMDgbqZf6OKWRcG0eX7BKX9VYdKVWrSxMiHoyGXTJnY7zSazUdogylrKLq16wExlMQ+eNc9bv4/ByFlynomMU5/Vt8PrqAVOc5I6BwNohlwas0bKyB7atNuenZSGL7LJMKCuFh4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=smile.fr; spf=pass smtp.mailfrom=smile.fr; dkim=pass (2048-bit key) header.d=smile-fr.20230601.gappssmtp.com header.i=@smile-fr.20230601.gappssmtp.com header.b=rgV6cLJB; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=smile.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=smile.fr Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-40fe2e746bdso229895e9.3 for ; Mon, 05 Feb 2024 16:13:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20230601.gappssmtp.com; s=20230601; t=1707178434; x=1707783234; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sFNpFi093TpETZs6mdYZEjtXAaH8xI625rElwAZwslo=; b=rgV6cLJB9BmJCHfqJ7i6XQ1wFQ3K/bhMQOZuHD0bMnpzwrZjXvrpplDfavsz1jBG1l nhaTW42WP5l5kiUjRYDnpH6iYluRCWnwtZcxSoxyXEuVs6RUBlKVU/uejeApAKpSrhwf bT63NS4n1c8yS+FTqtCrVOpA45xwRGfaCIlJUGpn2QtiyRKb5PWNII7/Em+nzFWBmCIw a5BGFEbIaiKe60WyONXW8QOsisCHHEDgPJgL+1iL2Elx+C7V40f5cCJ3KObisQIy9uZU hHaQ/YT5weS9MjgRdfY+Sf7Ki4iyMViS8GUEx9mgp9zgaRew2T/6g2il60+E+VTKrxNK /GOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707178434; x=1707783234; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sFNpFi093TpETZs6mdYZEjtXAaH8xI625rElwAZwslo=; b=v3WYa77YCa1puTb4R3NwRZtslVrmJwNYjvAqszvRvTY89B7aYhVn8o+oJTV2yioxh/ A2BBudCOb7wjOLiSvYyzsZnRMYszmF3GO49ITLonP4bc0FF+2NLtIbq0lTKxDGDmbjDl KK3bqSHvQXlnw76vnoKAoZz6qvcHIgxVWH46ATgjgR93X8c+OsiGq2hDUYIawvc+IswE 5IVwqOY2s9OIQYFxqw84cPFJB5GfZlO3n+lRCXdLMYLnw7o4LS/FZ3vcKXXcwM5Xiz75 CHgorA66FK/91H1mk5eQWyF9Ak08iYNyp/Md7KA2wCFtTtDy7+WAtKrBkjmcp1tFTmTv pTWw== X-Gm-Message-State: AOJu0Yy1errU+0sHcCKSi9DKFBXHu+fqiWcULCZDqdQ9m51FWe8N06H9 +5yofD3/4zxe304lx9ouNAfOBsQ8obXiBK0I6qKw/pnTFpcPwSK1kN2yvftoquU= X-Received: by 2002:a05:600c:3c8a:b0:40f:de23:b8f3 with SMTP id bg10-20020a05600c3c8a00b0040fde23b8f3mr267229wmb.23.1707178433811; Mon, 05 Feb 2024 16:13:53 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXWwuJ25X3TFhf5cpubZjv3P0jtvVpxgluOyArwnSdlojbnQ4acGDwOCQfPrJE6Ev1XGktp7X3OjOkNEWC2yAp9QZw3MG7u7//ot52N8OQSL6BXaarM6yxmsJrfjFOBI3LuRCJQoLhrF2rRzhxobhoeFmtq3dhpWhv723aainhkH/CRmlvbt/WWnIMyJhu2dHqJPEM7SKlViiT3cT3VWECjVsyvwwQsr0IWdLi60kkUo6P+PpKO3E4VjYcSN4hyazIpoxZyCmXReAaDPECKyQZsEyLNJDNB8dJKgLzM+t5pa9SrRRMYhCwfrxj0yDZesLWim46+bNg+5wgJJsU9kWHgZ4XVQDaGeyYaYmsN8Af4GwvMaVRAukQHsY8dwK7S/lxgFTYSy7mki4cLxPv8tNnKbbbagqoToFaJcAAP4UBOx1MaBxCr8auuEfWN0sSG6BUqCf34j2LCFBtxK/RlrgdH0CJBVnVwRW1V8MaW1H86a1L5177676DURWdKISZO0/jJGyI/khY/ovy6RBZXJUDEVJ6UW2I6Kr2RiAsWiw1N+UADfzIFEVHhwUxh9lNBVRb0gpNjzlTjH1iY8ybmRwcQPK332VQ+XaL9M8yYVZRjK/U/WWgbFVA4u2SlDpSKHLSYAaO0DiNohXVm1fxdHjyKizT+v78PdmWH9Flv891/HffxvBd89gwEerzZVYqpcyK5Osv4DD2lMhkHc7VI1A6U6icC2G1Jo2szIa8SFb5s52iftg/IU9tIE0qAfElAxQS4W8WABNAun8aUexQA4+Q0C4pODpA= Received: from P-ASN-ECS-830T8C3.local ([89.159.1.53]) by smtp.gmail.com with ESMTPSA id b17-20020a5d40d1000000b0033ae7d768b2sm686959wrq.117.2024.02.05.16.13.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 16:13:53 -0800 (PST) From: Yoann Congal To: linux-fsdevel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, x86@kernel.org Cc: =?utf-8?q?Andr=C3=A9_Almeida?= , Borislav Petkov , Darren Hart , Dave Hansen , Davidlohr Bueso , Geert Uytterhoeven , Greg Kroah-Hartman , "H . Peter Anvin" , Ingo Molnar , Jiri Slaby , John Ogness , Josh Triplett , Masahiro Yamada , Matthew Wilcox , Peter Zijlstra , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , Willem de Bruijn , Yoann Congal Subject: [PATCH v4 3/3] printk: Remove redundant CONFIG_BASE_FULL Date: Tue, 6 Feb 2024 01:13:33 +0100 Message-Id: <20240206001333.1710070-4-yoann.congal@smile.fr> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240206001333.1710070-1-yoann.congal@smile.fr> References: <20240206001333.1710070-1-yoann.congal@smile.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790106421554867986 X-GMAIL-MSGID: 1790106421554867986 CONFIG_BASE_FULL is equivalent to !CONFIG_BASE_SMALL and is enabled by default: CONFIG_BASE_SMALL is the special case to take care of. So, remove CONFIG_BASE_FULL and move the config choice to CONFIG_BASE_SMALL (which defaults to 'n') Signed-off-by: Yoann Congal --- v3->v4: * Split "switch CONFIG_BASE_SMALL to bool" and "Remove the redundant config" (this patch) into two patches * keep CONFIG_BASE_SMALL instead of CONFIG_BASE_FULL --- init/Kconfig | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/init/Kconfig b/init/Kconfig index d4b16cad98502..4ecf2572d00ee 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1581,11 +1581,11 @@ config PCSPKR_PLATFORM This option allows to disable the internal PC-Speaker support, saving some memory. -config BASE_FULL - default y - bool "Enable full-sized data structures for core" if EXPERT +config BASE_SMALL + default n + bool "Enable smaller-sized data structures for core" if EXPERT help - Disabling this option reduces the size of miscellaneous core + Enabling this option reduces the size of miscellaneous core kernel data structures. This saves memory on small machines, but may reduce performance. @@ -1940,11 +1940,6 @@ config RT_MUTEXES bool default y if PREEMPT_RT -config BASE_SMALL - bool - default y if !BASE_FULL - default n - config MODULE_SIG_FORMAT def_bool n select SYSTEM_DATA_VERIFICATION