]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Remove inclusions of crypto/sha1.h
authorEric Biggers <ebiggers@kernel.org>
Sat, 14 Mar 2026 21:45:55 +0000 (14:45 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 24 Mar 2026 15:40:45 +0000 (08:40 -0700)
commita02327413acc141a887fe77b89656e88bcc4f412
tree198a88647bbf6a2f451657dae2ff759940cbae22
parentbb6da652c585c397fc2c98df9e7534197e1b1cb1
bpf: Remove inclusions of crypto/sha1.h

Since commit 603b44162325 ("bpf: Update the bpf_prog_calc_tag to use
SHA256") made BPF program tags use SHA-256 instead of SHA-1, the header
<crypto/sha1.h> no longer needs to be included.  Remove the relevant
inclusions so that they no longer unnecessarily come up in searches for
which kernel code is still using the obsolete SHA-1 algorithm.

Since net/ipv6/addrconf.c was relying on the transitive inclusion of
<crypto/sha1.h> (for an unrelated purpose) via <linux/filter.h>, make it
include <crypto/sha1.h> explicitly in order to keep that file building.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Acked-by: Paul Chaignon <paul.chaignon@gmail.com>
Link: https://lore.kernel.org/r/20260314214555.112386-1-ebiggers@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/filter.h
kernel/bpf/core.c
net/ipv6/addrconf.c