Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

panic: sys_info: align constant definition names with parameters

Align constant definition names with parameters to make it easier to map.
It's also better to maintain and extend the names while keeping their
uniqueness.

Link: https://lkml.kernel.org/r/20251030132007.3742368-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Feng Tang <feng.tang@linux.alibaba.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Andy Shevchenko and committed by
Andrew Morton
760fc597 d79a3aeb

+4 -4
+1 -1
include/linux/sys_info.h
··· 14 14 #define SYS_INFO_LOCKS 0x00000008 15 15 #define SYS_INFO_FTRACE 0x00000010 16 16 #define SYS_INFO_PANIC_CONSOLE_REPLAY 0x00000020 17 - #define SYS_INFO_ALL_CPU_BT 0x00000040 17 + #define SYS_INFO_ALL_BT 0x00000040 18 18 #define SYS_INFO_BLOCKED_TASKS 0x00000080 19 19 20 20 void sys_info(unsigned long si_mask);
+1 -1
kernel/panic.c
··· 401 401 */ 402 402 static void panic_other_cpus_shutdown(bool crash_kexec) 403 403 { 404 - if (panic_print & SYS_INFO_ALL_CPU_BT) 404 + if (panic_print & SYS_INFO_ALL_BT) 405 405 panic_trigger_all_cpu_backtrace(); 406 406 407 407 /*
+2 -2
lib/sys_info.c
··· 23 23 { SYS_INFO_TIMERS, "timers" }, 24 24 { SYS_INFO_LOCKS, "locks" }, 25 25 { SYS_INFO_FTRACE, "ftrace" }, 26 - { SYS_INFO_ALL_CPU_BT, "all_bt" }, 26 + { SYS_INFO_ALL_BT, "all_bt" }, 27 27 { SYS_INFO_BLOCKED_TASKS, "blocked_tasks" }, 28 28 }; 29 29 ··· 118 118 if (si_mask & SYS_INFO_FTRACE) 119 119 ftrace_dump(DUMP_ALL); 120 120 121 - if (si_mask & SYS_INFO_ALL_CPU_BT) 121 + if (si_mask & SYS_INFO_ALL_BT) 122 122 trigger_all_cpu_backtrace(); 123 123 124 124 if (si_mask & SYS_INFO_BLOCKED_TASKS)