Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redefine asm_inline for Linux 5.4+, Fixes #2546 (#2547) (#5)
Here's the upstream commit that introduced `asm_inline`: * torvalds/linux@eb11186 Without this patch BCC fails with the following: ``` $ sudo /usr/share/bcc/tools/opensnoop In file included from /virtual/main.c:2: In file included from include/uapi/linux/ptrace.h:142: In file included from ./arch/x86/include/asm/ptrace.h:5: ./arch/x86/include/asm/segment.h:254:2: error: expected '(' after 'asm' alternative_io ("lsl %[seg],%[p]", ^ ./arch/x86/include/asm/alternative.h:240:2: note: expanded from macro 'alternative_io' asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \ ^ include/linux/compiler_types.h:210:24: note: expanded from macro 'asm_inline' ^ ``` Co-authored-by: Ivan Babrou <[email protected]>
- Loading branch information