From: Andrii Nakryiko Date: Thu, 20 Aug 2020 23:12:37 +0000 (-0700) Subject: libbpf: Add __noinline macro to bpf_helpers.h X-Git-Tag: io_uring-5.10-2020-10-20~32^2~394^2~68 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=819c23af561c4dc8c35faaacacdfa9ba81bacf5f;p=linux-block.git libbpf: Add __noinline macro to bpf_helpers.h __noinline is pretty frequently used, especially with BPF subprograms, so add them along the __always_inline, for user convenience and completeness. Signed-off-by: Andrii Nakryiko Signed-off-by: Alexei Starovoitov Link: https://lore.kernel.org/bpf/20200820231250.1293069-4-andriin@fb.com --- diff --git a/tools/lib/bpf/bpf_helpers.h b/tools/lib/bpf/bpf_helpers.h index e9a4ecddb7a5..1106777df00b 100644 --- a/tools/lib/bpf/bpf_helpers.h +++ b/tools/lib/bpf/bpf_helpers.h @@ -32,6 +32,9 @@ #ifndef __always_inline #define __always_inline __attribute__((always_inline)) #endif +#ifndef __noinline +#define __noinline __attribute__((noinline)) +#endif #ifndef __weak #define __weak __attribute__((weak)) #endif