OSDN Git Service

samples/bpf: Add a workaround for asm_inline
authorKP Singh <kpsingh@google.com>
Wed, 2 Oct 2019 19:16:52 +0000 (21:16 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 3 Oct 2019 15:37:11 +0000 (17:37 +0200)
commit98beb3edeb974e906a81f305d88f7bc96b2ec83e
tree02d7e57bced7c34991f04553cff725e7c91613d5
parentdf551058f7a303bd3a17a4cef001349974962ce8
samples/bpf: Add a workaround for asm_inline

This was added in commit eb111869301e ("compiler-types.h: add asm_inline
definition") and breaks samples/bpf as clang does not support asm __inline.

Fixes: eb111869301e ("compiler-types.h: add asm_inline definition")
Co-developed-by: Florent Revest <revest@google.com>
Signed-off-by: Florent Revest <revest@google.com>
Signed-off-by: KP Singh <kpsingh@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20191002191652.11432-1-kpsingh@chromium.org
samples/bpf/asm_goto_workaround.h