]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
printk: reduce LOG_BUF_SHIFT range for H8300
authorJohn Ogness <john.ogness@linutronix.de>
Wed, 12 Aug 2020 07:31:22 +0000 (09:37 +0206)
committerPetr Mladek <pmladek@suse.com>
Tue, 8 Sep 2020 07:33:15 +0000 (09:33 +0200)
The .bss section for the h8300 is relatively small. A value of
CONFIG_LOG_BUF_SHIFT that is larger than 19 will create a static
printk ringbuffer that is too large. Limit the range appropriately
for the H8300.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20200812073122.25412-1-john.ogness@linutronix.de
init/Kconfig

index a46aa8f3174d5315b5287fa26b7c3c471fcd86fa..485f7e53a8a59edf87a08a3ad3f2d9bffd7762c9 100644 (file)
@@ -654,7 +654,8 @@ config IKHEADERS
 
 config LOG_BUF_SHIFT
        int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
-       range 12 25
+       range 12 25 if !H8300
+       range 12 19 if H8300
        default 17
        depends on PRINTK
        help