Skip to content

kexec: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdef

Jisheng Zhang kexec linux-arm-kernel linux-riscv lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 9 repliesIn review 4 of 5 applied
  2. v1 RFC5 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- collect Reviewed-by tag
- fix misleading commit msg.

Patches in v2 4 of 5 applied

#Subject and filesSizeRepliesApplied
1/5kexec: make crashk_res, crashk_low_res and crash_notes symbols always visibleinclude/linux/kexec.h+6 -60 repliesApplied
2/5riscv: mm: init: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdefarch/riscv/mm/init.c+2 -41 replyApplied
3/5x86/setup: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdefarch/x86/kernel/setup.c+3 -70 repliesApplied
4/5arm64: mm: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdefarch/arm64/mm/init.c+3 -60 repliesApplied
5/5arm: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdefarch/arm/kernel/setup.c+3 -40 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchCatalin MarinasRussell King (Oracle)Palmer DabbeltBaoquan He
SeriesA-b
1/5
2/5A-b
3/5
4/5A-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/5] kexec: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdef

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 modify 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.

Since v1:
- collect Reviewed-by tag
- fix misleading commit msg.

Jisheng Zhang (5):
kexec: make crashk_res, crashk_low_res and crash_notes symbols always
visible
riscv: mm: init: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdef x86/setup: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdef
arm64: mm: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdef
arm: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdef

 arch/arm/kernel/setup.c |  7 +++----
 arch/arm64/mm/init.c    |  9 +++------
 arch/riscv/mm/init.c    |  6 ++----
 arch/x86/kernel/setup.c | 10 +++-------
 include/linux/kexec.h   | 12 ++++++------
 5 files changed, 17 insertions(+), 27 deletions(-)
Signature · 7 lines
2.34.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec