git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tools, bpftool: Poison and replace kernel integer typedefs
[sfrench/cifs-2.6.git]
/
tools
/
bpf
/
bpftool
/
main.h
diff --git
a/tools/bpf/bpftool/main.h
b/tools/bpf/bpftool/main.h
index a41cefabccaf7ec0b580acf3836f93feb7f43fef..f89ac70ef973f7f5f3a695135b65c85093a31598 100644
(file)
--- a/
tools/bpf/bpftool/main.h
+++ b/
tools/bpf/bpftool/main.h
@@
-18,6
+18,9
@@
#include "json_writer.h"
#include "json_writer.h"
+/* Make sure we do not use kernel-only integer typedefs */
+#pragma GCC poison u8 u16 u32 u64 s8 s16 s32 s64
+
#define ptr_to_u64(ptr) ((__u64)(unsigned long)(ptr))
#define NEXT_ARG() ({ argc--; argv++; if (argc < 0) usage(); })
#define ptr_to_u64(ptr) ((__u64)(unsigned long)(ptr))
#define NEXT_ARG() ({ argc--; argv++; if (argc < 0) usage(); })