From: Linus Torvalds Date: Wed, 22 Feb 2023 17:52:32 +0000 (-0800) Subject: bpf: add missing header file include X-Git-Tag: v6.3-rc1~161 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f3dd0c53370e70c0f9b7e931bbec12916f3bb8cc;p=tomoyo%2Ftomoyo-test1.git bpf: add missing header file include Commit 74e19ef0ff80 ("uaccess: Add speculation barrier to copy_from_user()") built fine on x86-64 and arm64, and that's the extent of my local build testing. It turns out those got the include incidentally through other header files ( in particular), but that was not true of other architectures, resulting in build errors kernel/bpf/core.c: In function ‘___bpf_prog_run’: kernel/bpf/core.c:1913:3: error: implicit declaration of function ‘barrier_nospec’ so just make sure to explicitly include the proper header file to make everybody see it. Fixes: 74e19ef0ff80 ("uaccess: Add speculation barrier to copy_from_user()") Reported-by: kernel test robot Reported-by: Viresh Kumar Reported-by: Huacai Chen Tested-by: Geert Uytterhoeven Tested-by: Dave Hansen Acked-by: Alexei Starovoitov Signed-off-by: Linus Torvalds --- diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index 933869983e2a..b297e9f60ca1 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include