Re: [PATCH] x86, hibernate: Remove inclusion of crypto/hash.h
From: Rafael J. Wysocki
Date: Thu Mar 19 2026 - 11:22:36 EST
On Sat, Mar 14, 2026 at 9:15 PM Eric Biggers <ebiggers@xxxxxxxxxx> wrote:
>
> hibernate_64.c does not do any cryptographic hashing, so the header
> crypto/hash.h is not needed at all.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
> arch/x86/power/hibernate_64.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/arch/x86/power/hibernate_64.c b/arch/x86/power/hibernate_64.c
> index a595953f1d6d8..e72d26acae797 100644
> --- a/arch/x86/power/hibernate_64.c
> +++ b/arch/x86/power/hibernate_64.c
> @@ -12,12 +12,10 @@
> #include <linux/suspend.h>
> #include <linux/scatterlist.h>
> #include <linux/kdebug.h>
> #include <linux/pgtable.h>
>
> -#include <crypto/hash.h>
> -
> #include <asm/e820/api.h>
> #include <asm/init.h>
> #include <asm/proto.h>
> #include <asm/page.h>
> #include <asm/mtrr.h>
>
> base-commit: 1c9982b4961334c1edb0745a04cabd34bc2de675
> --
Applied as 7.1 material, thanks!