* [PATCH] kernel/crash: Remove inclusion of crypto/sha1.h
@ 2026-03-14 20:42 Eric Biggers
0 siblings, 0 replies; only message in thread
From: Eric Biggers @ 2026-03-14 20:42 UTC (permalink / raw)
To: Andrew Morton, Baoquan He; +Cc: kexec, linux-kernel, Eric Biggers
Several files related to kernel crash dumps include crypto/sha1.h but
never use any of its functionality. Remove these includes so that these
files don't unnecessarily come up in searches for which kernel code is
still using the obsolete SHA-1 algorithm.
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
---
kernel/crash_core.c | 2 --
kernel/crash_reserve.c | 2 --
kernel/vmcore_info.c | 2 --
3 files changed, 6 deletions(-)
diff --git a/kernel/crash_core.c b/kernel/crash_core.c
index 2c1a3791e4101..4f21fc3b108b8 100644
--- a/kernel/crash_core.c
+++ b/kernel/crash_core.c
@@ -25,12 +25,10 @@
#include <linux/panic.h>
#include <asm/page.h>
#include <asm/sections.h>
-#include <crypto/sha1.h>
-
#include "kallsyms_internal.h"
#include "kexec_internal.h"
/* Per cpu memory for storing cpu states in case of system crash. */
note_buf_t __percpu *crash_notes;
diff --git a/kernel/crash_reserve.c b/kernel/crash_reserve.c
index 62e60e0223cff..eee37a11380ce 100644
--- a/kernel/crash_reserve.c
+++ b/kernel/crash_reserve.c
@@ -18,12 +18,10 @@
#include <linux/crash_reserve.h>
#include <asm/page.h>
#include <asm/sections.h>
-#include <crypto/sha1.h>
-
#include "kallsyms_internal.h"
#include "kexec_internal.h"
/* Location of the reserved area for the crash kernel */
struct resource crashk_res = {
diff --git a/kernel/vmcore_info.c b/kernel/vmcore_info.c
index 8d82913223a13..36772126385ce 100644
--- a/kernel/vmcore_info.c
+++ b/kernel/vmcore_info.c
@@ -16,12 +16,10 @@
#include <linux/kmemleak.h>
#include <asm/page.h>
#include <asm/sections.h>
-#include <crypto/sha1.h>
-
#include "kallsyms_internal.h"
#include "kexec_internal.h"
/* vmcoreinfo stuff */
unsigned char *vmcoreinfo_data;
base-commit: 1c9982b4961334c1edb0745a04cabd34bc2de675
--
2.53.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-14 20:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-14 20:42 [PATCH] kernel/crash: Remove inclusion of crypto/sha1.h Eric Biggers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox