Jisheng Zhang
f05fa10901
kexec: make crashk_res, crashk_low_res and crash_notes symbols always visible
Patch series "kexec: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdef", v2.
Replace the conditional compilation using "#ifdef CONFIG_KEXEC_CORE" by
a check for "IS_ENABLED(CONFIG_KEXEC_CORE)", to simplify the code and
increase compile coverage.
I only modified x86, arm, arm64 and riscv, other architectures such as
sh, powerpc and s390 are better to be kept kexec code as-is so they are
not touched.
This patch (of 5):
Make the forward declarations of crashk_res, crashk_low_res and
crash_notes always visible. Code referring to these symbols can then just
check for IS_ENABLED(CONFIG_KEXEC_CORE), instead of requiring conditional
compilation using an #ifdef, thus preparing to increase compile coverage
and simplify the code.
Link: https://lkml.kernel.org/r/20211206160514.2000-1-jszhang@kernel.org
Link: https://lkml.kernel.org/r/20211206160514.2000-2-jszhang@kernel.org
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Acked-by: Baoquan He <bhe@redhat.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Alexandre Ghiti <alex@ghiti.fr>
Cc: Palmer Dabbelt <palmer@rivosinc.com>
Cc: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-03-23 19:00:34 -07:00
..
2022-02-02 18:50:36 +01:00
2022-03-09 11:39:35 -08:00
2022-02-19 11:11:05 +01:00
2022-01-20 08:52:53 +02:00
2022-01-25 18:30:15 +01:00
2022-01-22 08:33:34 +02:00
2022-02-16 13:16:08 +00:00
2022-02-07 22:38:02 +09:00
2022-03-23 19:00:33 -07:00
2022-02-17 07:54:03 -07:00
2022-01-19 01:21:24 +01:00
2022-03-07 17:29:47 -08:00
2022-03-23 19:00:33 -07:00
2022-02-02 14:41:04 -08:00
2022-01-22 08:33:36 +02:00
2022-02-09 13:18:49 +05:30
2022-01-22 08:33:36 +02:00
2022-01-20 08:52:55 +02:00
2022-03-07 11:26:02 -08:00
2022-01-22 08:33:34 +02:00
2022-01-20 08:52:53 +02:00
2022-01-20 08:52:53 +02:00
2022-01-20 11:30:15 +00:00
2022-01-22 08:33:35 +02:00
2022-02-02 15:14:56 +01:00
2022-01-22 08:33:38 +02:00
2022-02-01 11:13:24 -08:00
2022-01-21 21:36:28 +00:00
2022-01-24 14:16:46 +01:00
2022-01-20 08:52:54 +02:00
2022-02-07 17:55:30 +00:00
2022-03-16 19:38:41 -07:00
2022-02-01 20:59:43 -08:00
2022-03-23 19:00:34 -07:00
2022-01-22 08:33:35 +02:00
2022-01-26 09:19:20 -08:00
2022-02-03 10:57:44 -05:00
2022-01-20 10:41:01 +02:00
2022-03-23 19:00:34 -07:00
2022-02-11 17:55:00 -08:00
2022-01-22 08:33:36 +02:00
2022-01-20 10:41:01 +02:00
2022-02-05 00:58:25 -05:00
2022-02-04 16:44:23 +09:00
2022-01-20 08:52:53 +02:00
2022-03-23 19:00:33 -07:00
2022-01-29 08:52:27 +02:00
2022-02-11 17:55:00 -08:00
2022-01-22 08:33:34 +02:00
2022-03-05 11:08:32 -08:00
2022-03-05 11:08:32 -08:00
2022-03-05 11:08:32 -08:00
2022-01-22 08:33:36 +02:00
2022-03-07 13:14:04 +01:00
2022-02-28 22:34:04 +01:00
2022-02-01 10:29:18 -06:00
2022-01-25 20:16:03 +02:00
2022-02-02 10:47:33 -05:00
2022-02-09 09:24:40 -05:00
2022-02-23 14:43:11 +01:00
2022-02-21 17:59:25 +01:00
2022-01-20 12:55:26 -06:00
2022-02-04 09:25:04 -08:00
2022-01-20 08:52:52 +02:00
2022-01-18 12:09:47 +01:00
2022-02-04 09:25:05 -08:00
2022-03-10 14:40:59 -08:00
2022-01-26 18:57:09 -08:00
2022-01-22 08:33:36 +02:00
2022-01-22 08:33:35 +02:00
2022-01-22 08:33:36 +02:00
2022-01-22 08:33:37 +02:00
2022-01-18 12:09:57 +01:00
2022-01-30 09:56:58 +02:00
2022-01-24 14:45:02 +01:00
2022-01-22 08:33:37 +02:00
2022-03-01 10:59:13 +01:00
2022-01-22 08:33:37 +02:00
2022-01-22 08:33:37 +02:00
2022-01-22 08:33:37 +02:00
2022-02-03 11:20:34 -08:00
2022-01-22 08:33:37 +02:00
2022-01-22 08:33:38 +02:00
2022-01-27 08:45:13 -08:00
2022-02-21 11:32:44 +01:00
2022-01-22 08:33:37 +02:00
2022-01-22 08:33:37 +02:00
2022-01-22 08:33:35 +02:00
2022-03-23 19:00:33 -07:00
2022-02-07 21:02:31 +01:00
2022-01-22 08:33:38 +02:00
2022-01-30 09:56:58 +02:00
2022-02-25 12:07:01 -05:00
2022-03-04 11:56:33 -05:00
2022-03-04 08:33:21 -05:00
2022-03-04 08:33:21 -05:00
2022-03-11 10:17:12 -08:00