Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3031948rdb; Tue, 6 Feb 2024 05:26:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2l7m276lkjTVYfSIA7u5rRc29VYgiDC8F+7bFkJAZbyASWaAC/fttEW+HwZLW3QeoTEiL X-Received: by 2002:a2e:8757:0:b0:2d0:a47e:2590 with SMTP id q23-20020a2e8757000000b002d0a47e2590mr2357858ljj.41.1707225995787; Tue, 06 Feb 2024 05:26:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707225995; cv=pass; d=google.com; s=arc-20160816; b=nwj7gGz76AqvsVELvvAeqFgbBWCX6iP21glTPm+kyZcTG2ZAacvxwaxYB6F9plaqC5 s0dAu4F6tC6N0iSVmilB2uo6gvLNH8FB+Z1SL1z5AMvDwgrZFbR3p+4bv+K7xFvGhIXs tknEeF8ZAebBGtGbUhWDclLxVFjwRxIqulAGlr+7EQ9Q4h2m1hyHEnxABM5iH+SyBwMc heCnzC5fzOJBCTr5us08b4psuHz8f3053yETaSZbUh3cvJTPhipnoUqsVPwhrC7LJ6CU eukI8O5F0+gp+o+cdziBgB1+eQLOSyjNNVsuteqcTQe5YF2174qAEwF4+FnA2e59ZD/3 OXSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=FsdEwPqOoFE44o313xz3FCPtRa6JwAMOzrnmVIodrQU=; fh=DNURDK169OL17cWe9VMT5FrVWJvlJWquKbga8eqOSjc=; b=psmr8wSN+/4+gdLGG8MVi+y0vS/1U4Y6xN+g6nS2usQnFKdc5JFcgnTmSlOj+yVIaR 3wxVZBPh9HFC/a78Jxh0INikaVOmDrZyaLzjzAZzxPJ61NIFl0wRMuv+CtHh5nHSNITq DqOhaaeQgELA7yMSASCALUZ3rpsRjb3UvHVK7bvwdDROg1/dfCxpH9ohFyMjIMIrgTJK +SFBI8N2YBGaiTUDIbLsWACchXLuEf1pKGrQAXswBTIFmrSTMdPYRk2ISoe/BkyA4l9X GVskehAary4nii3Onb9PXQXl+Z3sra0v0RMkeXII9Q7PE+h9jvrP7ChIxH3dJGPgA6MZ +Dew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E7EeiG77; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55015-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCU69U8PBIL4iUKspzxTUDnBa8VKqZr0JQCbAb2MaxobvJFayNy9l6Cvs0i2vz32m03g4vitrr1YwRouCwq4S3g/H3MrJIPqEwxdMRpbtA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n5-20020a056402060500b005602b61a7desi1108826edv.538.2024.02.06.05.26.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 05:26:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E7EeiG77; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55015-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7D7B71F2621F for ; Tue, 6 Feb 2024 13:26:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 88524130E4A; Tue, 6 Feb 2024 13:26:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E7EeiG77" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2D02130AE8; Tue, 6 Feb 2024 13:26:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707225982; cv=none; b=Z5ivhBZaKw63SoIWM5qvTtI4QWQpT6QOhyFsk2m3tbCsMrA6pZRfwT6wCNerrYevl7wWqFrtMxli1e4VQJthOwzriyjClJDb/pGZIblGDh+PQrsd6gsKKeEPZTjuOYDJiQL2ZO3q5HqYZsnIOYUWRkfTy3xwghHyG6jeMNqJJCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707225982; c=relaxed/simple; bh=TIFO8gUqQl8VkEe9RY5Z1blMtAjsU3qzRmne20uAnpk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=JNIoLPiV5Gyf6L8tx+yehY//yaBEEEvPzg/WyMiFiTtBENMQGat9Xt0LgC4y23qlbcbaxjJm3F29LOiwsNBpTyr60UejiXzSgyHHppbJgSzzVlo4NU2Jwf6YehXFgcF/1epplOQnEnGHWQd+yrcmCaGhWI82aqZK/YeAeSwEmPs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E7EeiG77; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B17DC4166A; Tue, 6 Feb 2024 13:26:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707225982; bh=TIFO8gUqQl8VkEe9RY5Z1blMtAjsU3qzRmne20uAnpk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=E7EeiG77Ofh6vxf9juuo6IqjVmfqWbjXrUeDdCP6AHe2FZgtO0FCqyfGmCZhhXpgs qi0YDrUzhy8cXxysZGgyx7uyip5GuvNfK8Oi21ZQaLumhjpJcdaZB2crrikxvPKJgz hOPlcWHaTqGJsc+ODjpb2GgM6l9OyQg+H79aQw/Hnw1bQD1q/cuWILI5uMcYPREVmE /f7eVkohOf96HdMBaI6AEp38fzOvx6vcCCWrVee+Q5WonhwCqGPISvKD/KhfZ7BwZB stGzqsRtds9y+ywMkSh7gR3Sx6gu3yFP/KXJiiVMJA8jpdXJKG63frKBf28xuQJ2iv oqhW88P+xREsA== Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-5114c05806eso1367380e87.1; Tue, 06 Feb 2024 05:26:22 -0800 (PST) X-Gm-Message-State: AOJu0YwCXJbvjxta5qUd0RpCyMPmtay5+TNgr/jl9SL/0zZIJVRrtcUj X4WVWpqHqm+SC+EG0fbChPIavKlXU0Q1+qjldrINZanwwjg7oZIHPSXSSPcruDpyp2Rnjd93qRg O7+Nky3qX5SFFvpPVRdy0hksfhl4= X-Received: by 2002:a05:6512:1091:b0:511:5ca2:2a3f with SMTP id j17-20020a056512109100b005115ca22a3fmr1990570lfg.9.1707225980312; Tue, 06 Feb 2024 05:26:20 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240206001333.1710070-1-yoann.congal@smile.fr> <20240206001333.1710070-4-yoann.congal@smile.fr> In-Reply-To: <20240206001333.1710070-4-yoann.congal@smile.fr> From: Masahiro Yamada Date: Tue, 6 Feb 2024 22:25:43 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 3/3] printk: Remove redundant CONFIG_BASE_FULL To: Yoann Congal Cc: linux-fsdevel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, x86@kernel.org, =?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 , Matthew Wilcox , Peter Zijlstra , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , Willem de Bruijn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 6, 2024 at 9:13=E2=80=AFAM Yoann Congal = wrote: > > 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 A nit. Please drop the redundant 'default n' next time (as it seems you will have a change to send v5) > + 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 > -- > 2.39.2 > --=20 Best Regards Masahiro Yamada