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-01-05 12:09:06 +01:00
2022-02-02 18:50:36 +01:00
2022-01-03 17:05:02 +05:30
2021-12-31 14:35:40 +00:00
2022-01-14 16:02:28 +01:00
2022-01-08 14:42:01 -05:00
2022-01-12 17:02:27 -08:00
2022-03-09 11:39:35 -08:00
2021-12-31 13:31:34 +01:00
2022-01-09 23:30:13 +01:00
2022-01-17 08:07:57 +02:00
2022-01-06 08:37:03 -08:00
2022-01-11 12:17:45 -08:00
2022-02-19 11:11:05 +01:00
2022-01-13 09:05:29 -08:00
2021-12-24 14:06:45 +00:00
2022-01-07 17:14:30 +00:00
2022-01-17 05:49:30 +02:00
2022-01-20 08:52:53 +02:00
2022-01-25 18:30:15 +01:00
2022-01-12 15:57:59 -08: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
2021-12-30 17:27:44 -08:00
2021-12-22 13:56:19 +01:00
2022-01-12 12:51:41 -08:00
2022-03-23 19:00:33 -07:00
2022-01-15 08:47:31 -08:00
2022-01-15 08:47:31 -08:00
2022-01-09 10:36:51 -07:00
2021-12-22 23:38:29 -05:00
2022-02-17 07:54:03 -07:00
2022-01-06 12:27:03 +01:00
2021-12-29 17:54:40 -08:00
2022-01-19 01:21:24 +01:00
2021-12-29 20:03:05 -08:00
2022-03-07 17:29:47 -08:00
2022-01-11 09:14:37 -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
2021-12-30 17:44:07 +01:00
2022-02-09 13:18:49 +05:30
2022-01-15 08:47:31 -08:00
2021-12-23 22:35:00 +11:00
2022-01-15 16:30:33 +02:00
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
2021-12-23 16:55:20 +01:00
2022-01-18 08:51:51 +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-08 14:42:01 -05:00
2022-01-22 08:33:35 +02:00
2022-02-02 15:14:56 +01:00
2022-01-05 19:46:32 -08:00
2022-01-15 08:47:31 -08:00
2022-01-22 08:33:38 +02:00
2022-01-17 09:40:29 +02:00
2022-02-01 11:13:24 -08:00
2022-01-07 13:43:18 +00:00
2022-01-21 21:36:28 +00:00
2022-01-24 14:16:46 +01:00
2022-01-15 16:30:29 +02:00
2022-01-20 08:52:54 +02:00
2022-01-10 09:49:13 +01:00
2022-01-04 13:15:33 -05:00
2022-01-15 16:30:29 +02:00
2022-01-15 16:30:29 +02:00
2021-12-26 15:02:06 -08: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
2021-12-24 10:24:30 -05:00
2022-03-23 19:00:34 -07:00
2022-01-22 08:33:35 +02:00
2021-12-21 15:09:46 -08:00
2022-01-26 09:19:20 -08:00
2022-01-04 12:17:35 +00:00
2022-02-03 10:57:44 -05:00
2022-01-15 20:37:06 +02:00
2022-01-20 10:41:01 +02:00
2021-12-21 10:34:39 +01:00
2022-03-23 19:00:34 -07:00
2022-02-11 17:55:00 -08:00
2022-01-04 14:36:06 +01:00
2022-01-22 08:33:36 +02:00
2022-01-20 10:41:01 +02:00
2022-01-07 10:44:44 -05:00
2022-02-05 00:58:25 -05:00
2022-01-07 10:44:44 -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-01-16 23:34:43 +01:00
2022-01-05 11:22:17 +00:00
2022-01-11 12:36:47 +02:00
2022-02-11 17:55:00 -08:00
2022-01-15 16:30:30 +02:00
2022-01-15 20:37:06 +02: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-15 16:30:29 +02:00
2022-01-17 07:32:51 +02: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-01-09 23:30:13 +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-01-13 09:30:48 -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-12 10:14:09 -06:00
2022-01-20 12:55:26 -06:00
2022-01-15 16:30:31 +02:00
2022-02-04 09:25:04 -08:00
2022-01-18 06:40:47 +02:00
2022-01-12 12:37:02 -08:00
2022-01-13 16:50:50 -05:00
2022-01-16 08:08:11 +02:00
2022-01-16 08:08:11 +02:00
2022-01-02 18:48:47 +00: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-03 21:24:34 -07:00
2022-01-12 19:59:05 +01:00
2022-01-12 19:59:05 +01:00
2021-12-23 22:35:00 +11:00
2022-01-22 08:33:35 +02:00
2022-01-11 11:26:57 -08:00
2022-01-22 08:33:36 +02:00
2022-01-22 08:33:37 +02:00
2022-01-08 12:43:57 -06:00
2022-01-14 16:02:28 +01:00
2022-01-18 12:09:57 +01:00
2022-01-30 09:56:58 +02:00
2022-01-06 12:18:08 +00:00
2022-01-24 14:45:02 +01:00
2022-01-07 00:25:25 +01:00
2022-01-22 08:33:37 +02:00
2022-03-01 10:59:13 +01:00
2021-12-21 10:22:19 +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-01-13 12:52:14 -07:00
2021-12-22 09:21:43 +01:00
2022-02-03 11:20:34 -08:00
2022-01-22 08:33:37 +02:00
2021-12-31 13:42:30 +01:00
2021-12-30 13:23:44 +01:00
2022-01-22 08:33:38 +02:00
2022-01-27 08:45:13 -08:00
2022-01-06 12:26:13 +01:00
2022-02-21 11:32:44 +01:00
2022-01-06 12:26:13 +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-15 16:30:28 +02:00
2022-01-22 08:33:38 +02:00
2022-01-11 15:38:59 -05:00
2022-01-15 16:30:30 +02:00
2022-01-30 09:56:58 +02:00
2022-01-10 08:13:52 -08:00
2022-01-09 00:18:47 +02:00
2022-02-25 12:07:01 -05:00
2022-01-08 12:43:58 -06:00
2022-01-12 15:46:11 -08:00
2021-12-30 12:13:04 +01: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-01-15 16:30:29 +02:00
2022-01-15 16:30:25 +02:00
2022-03-11 10:17:12 -08:00
2022-01-07 09:22:19 +00:00
2021-12-23 11:21:53 +00:00
2022-01-08 00:28:41 -05:00