Re: [PATCH bpf-next] bpf: Remove inclusion of crypto/sha1.h
From: Eric Biggers
Date: Sat Mar 14 2026 - 17:06:31 EST
On Sat, Mar 14, 2026 at 01:47:34PM -0700, Eric Biggers wrote:
> Since commit 603b44162325 ("bpf: Update the bpf_prog_calc_tag to use
> SHA256") made kernel/bpf/core.c use only SHA-256 and not SHA-1, the
> header <crypto/sha1.h> no longer needs to be included. Remove the
> inclusion so that it no longer unnecessarily comes up in searches for
> which kernel code is still using the obsolete SHA-1 algorithm.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
> kernel/bpf/core.c | 1 -
> 1 file changed, 1 deletion(-)
I missed include/linux/filter.h which is related. I'll send a v2.
- Eric