Browse Source

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.
Dmitry V. Levin 2 months ago
parent
commit
7e05c30b1b
2 changed files with 3 additions and 2 deletions
  1. 3
    1
      bpf_sock_filter.c
  2. 0
    1
      xlat/skf_off.in

+ 3
- 1
bpf_sock_filter.c View File

@@ -14,7 +14,9 @@
14 14
 
15 15
 #include <linux/filter.h>
16 16
 #include "xlat/skf_ad.h"
17
-#include "xlat/skf_off.h"
17
+#define XLAT_MACROS_ONLY
18
+# include "xlat/skf_off.h"
19
+#undef XLAT_MACROS_ONLY
18 20
 
19 21
 static bool
20 22
 print_sock_filter_k(const struct bpf_filter_block *const fp)

+ 0
- 1
xlat/skf_off.in View File

@@ -1,4 +1,3 @@
1 1
 SKF_AD_OFF	-0x1000
2 2
 SKF_NET_OFF	-0x100000
3 3
 SKF_LL_OFF	-0x200000
4
-#stop

Loading…
Cancel
Save