From: Dmitry V. Levin Date: Wed, 14 Aug 2019 19:05:08 +0000 (+0000) Subject: xlat/skf_off: use XLAT_MACROS_ONLY instead of #stop X-Git-Tag: v5.3~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e05c30b1b8313d62d7d5090469084eec4a2b94d;p=strace xlat/skf_off: use XLAT_MACROS_ONLY instead of #stop * xlat/skf_off.in: Remove #stop. * bpf_sock_filter.c: Wrap "xlat/skf_off.h" inclusion in XLAT_MACROS_ONLY. --- diff --git a/bpf_sock_filter.c b/bpf_sock_filter.c index e66faa8e..c66070e1 100644 --- a/bpf_sock_filter.c +++ b/bpf_sock_filter.c @@ -14,7 +14,9 @@ #include #include "xlat/skf_ad.h" -#include "xlat/skf_off.h" +#define XLAT_MACROS_ONLY +# include "xlat/skf_off.h" +#undef XLAT_MACROS_ONLY static bool print_sock_filter_k(const struct bpf_filter_block *const fp) diff --git a/xlat/skf_off.in b/xlat/skf_off.in index 6db30a9a..afb75eea 100644 --- a/xlat/skf_off.in +++ b/xlat/skf_off.in @@ -1,4 +1,3 @@ SKF_AD_OFF -0x1000 SKF_NET_OFF -0x100000 SKF_LL_OFF -0x200000 -#stop