summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorYoann Congal <yoann.congal@smile.fr>2024-05-05 10:03:42 +0200
committerPetr Mladek <pmladek@suse.com>2024-05-06 17:39:09 +0200
commitb3e90f375b3c7ab85aef631ebb0ad8ce66cbf3fd (patch)
treedc481e84dd538220f8f279be9fea702b0a62b9a3 /init
parent320bf43190514be5c00e11f47ec2160dd3993844 (diff)
printk: Change type of CONFIG_BASE_SMALL to bool
CONFIG_BASE_SMALL is currently a type int but is only used as a boolean. So, change its type to bool and adapt all usages: CONFIG_BASE_SMALL == 0 becomes !IS_ENABLED(CONFIG_BASE_SMALL) and CONFIG_BASE_SMALL != 0 becomes IS_ENABLED(CONFIG_BASE_SMALL). Reviewed-by: Petr Mladek <pmladek@suse.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Link: https://lore.kernel.org/r/20240505080343.1471198-3-yoann.congal@smile.fr Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig6
1 files changed, 2 insertions, 4 deletions
diff --git a/init/Kconfig b/init/Kconfig
index ff5b607c3218..4b517523d566 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -743,7 +743,7 @@ config LOG_CPU_MAX_BUF_SHIFT
int "CPU kernel log buffer size contribution (13 => 8 KB, 17 => 128KB)"
depends on SMP
range 0 21
- default 0 if BASE_SMALL != 0
+ default 0 if BASE_SMALL
default 12
depends on PRINTK
help
@@ -1945,9 +1945,7 @@ config RT_MUTEXES
default y if PREEMPT_RT
config BASE_SMALL
- int
- default 0 if BASE_FULL
- default 1 if !BASE_FULL
+ def_bool !BASE_FULL
config MODULE_SIG_FORMAT
def_bool n