summaryrefslogtreecommitdiff
path: root/samples/ftrace
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2020-10-05 21:34:27 -0700
committerAlexei Starovoitov <ast@kernel.org>2020-10-06 11:45:03 -0700
commit544d6adf3c3dddbf80e5757a3098c63612f5f8f8 (patch)
tree0906753354be5f71cd036a9695062237430f4d3d /samples/ftrace
parent9618bde489b2d23779b1e2d04c10983da21f3818 (diff)
downloadlinux-riscv-544d6adf3c3dddbf80e5757a3098c63612f5f8f8.tar.gz
linux-riscv-544d6adf3c3dddbf80e5757a3098c63612f5f8f8.tar.bz2
linux-riscv-544d6adf3c3dddbf80e5757a3098c63612f5f8f8.zip
samples/bpf: Fix a compilation error with fallthrough marking
Compiling samples/bpf hits an error related to fallthrough marking. ... CC samples/bpf/hbm.o samples/bpf/hbm.c: In function ‘main’: samples/bpf/hbm.c:486:4: error: ‘fallthrough’ undeclared (first use in this function) fallthrough; ^~~~~~~~~~~ The "fallthrough" is not defined under tools/include directory. Rather, it is "__fallthrough" is defined in linux/compiler.h. Including "linux/compiler.h" and using "__fallthrough" fixed the issue. Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20201006043427.1891805-1-yhs@fb.com
Diffstat (limited to 'samples/ftrace')
0 files changed, 0 insertions, 0 deletions