Skip to contentSkip to conversation

kernel/crash: Remove inclusion of crypto/sha1.h

PATCH Applied Eric Biggers 1 participant 1 message Mar 14

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/crash: Remove inclusion of crypto/sha1.h

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.

---
 kernel/crash_core.c    | 2 --
 kernel/crash_reserve.c | 2 --
 kernel/vmcore_info.c   | 2 --
 3 files changed, 6 deletions(-)
kernel/crash_core.c +0 -2
index 2c1a3791e4101..4f21fc3b108b8 100644
@@ -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;
kernel/crash_reserve.c +0 -2
index 62e60e0223cff..eee37a11380ce 100644
@@ -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 = {
kernel/vmcore_info.c +0 -2
index 8d82913223a13..36772126385ce 100644
@@ -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

Signature · 1 line
2.53.0