summaryrefslogtreecommitdiffstats
path: root/tools/arch/arm/include
diff options
context:
space:
mode:
authorAurelien Jarno2018-12-25 15:46:24 +0100
committerGreg Kroah-Hartman2019-02-20 10:25:39 +0100
commitda78c8cda5b90df90830a67b5214e8e5ecfcfe11 (patch)
treecef4e47b557f1f82c584572db3ecb8b35fe291ce /tools/arch/arm/include
parentperf test shell: Use a fallback to get the pathname in vfs_getname (diff)
downloadkernel-qcow2-linux-da78c8cda5b90df90830a67b5214e8e5ecfcfe11.tar.gz
kernel-qcow2-linux-da78c8cda5b90df90830a67b5214e8e5ecfcfe11.tar.xz
kernel-qcow2-linux-da78c8cda5b90df90830a67b5214e8e5ecfcfe11.zip
tools uapi: fix RISC-V 64-bit support
[ Upstream commit d0df00e30e4bf9bc27ddbd092ad683ff6121b360 ] The BPF library is not built on 64-bit RISC-V, as the BPF feature is not detected. Looking more in details, feature/test-bpf.c fails to build with the following error: | In file included from /tmp/linux-4.19.12/tools/include/uapi/asm/bitsperlong.h:17, | from /tmp/linux-4.19.12/tools/include/uapi/asm-generic/unistd.h:2, | from /usr/include/riscv64-linux-gnu/asm/unistd.h:1, | from test-bpf.c:2: | /tmp/linux-4.19.12/tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h | #error Inconsistent word size. Check asm/bitsperlong.h | ^~~~~ The UAPI from the tools directory is missing RISC-V support, therefore bitsperlong.h from asm-generic is used, defaulting to 32 bits. Fix that by adding tools/arch/riscv/include/uapi/asm/bitsperlong.h as a copy of arch/riscv/include/uapi/asm/bitsperlong.h and by updating tools/include/uapi/asm/bitsperlong.h. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Palmer Dabbelt <palmer@sifive.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/arch/arm/include')
0 files changed, 0 insertions, 0 deletions