From: Eric Biggers Date: Sat, 14 Mar 2026 21:45:55 +0000 (-0700) Subject: bpf: Remove inclusions of crypto/sha1.h X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a02327413acc141a887fe77b89656e88bcc4f412;p=thirdparty%2Flinux.git 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 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 (for an unrelated purpose) via , make it include explicitly in order to keep that file building. Signed-off-by: Eric Biggers Acked-by: Paul Chaignon Link: https://lore.kernel.org/r/20260314214555.112386-1-ebiggers@kernel.org Signed-off-by: Alexei Starovoitov --- diff --git a/include/linux/filter.h b/include/linux/filter.h index 44d7ae95ddbcc..e40d4071a3455 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -21,7 +21,6 @@ #include #include #include -#include #include #include diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index 67eb12b637a5d..1af5fb3f21d96 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c @@ -18,7 +18,6 @@ */ #include -#include #include #include #include diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 0e55f139e05d5..04c1e856bf7fc 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -36,6 +36,7 @@ #define pr_fmt(fmt) "IPv6: " fmt +#include #include #include #include