kernel/crash: Remove inclusion of crypto/sha1.h
Subsystems (3)
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.
Signed-off-by Eric Biggers <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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