mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 23:04:54 +01:00
Commit74e19ef0ff("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 <linux/nospec.h> include incidentally through other header files (<linux/kvm_host.h> 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 <linux/nospec.h> header file to make everybody see it. Fixes:74e19ef0ff("uaccess: Add speculation barrier to copy_from_user()") Reported-by: kernel test robot <[email protected]> Reported-by: Viresh Kumar <[email protected]> Reported-by: Huacai Chen <[email protected]> Tested-by: Geert Uytterhoeven <[email protected]> Tested-by: Dave Hansen <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>