]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - tools/lib/bpf/nlattr.c
Merge tag 'xfs-5.6-merge-8' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[linux.git] / tools / lib / bpf / nlattr.c
index 8db44bbfc66ddb7f02a062cc7a6f589577e429ba..0ad41dfea8eb2b9152dd9ecb4eeb80cde791a064 100644 (file)
@@ -13,6 +13,9 @@
 #include <string.h>
 #include <stdio.h>
 
+/* make sure libbpf doesn't use kernel-only integer typedefs */
+#pragma GCC poison u8 u16 u32 u64 s8 s16 s32 s64
+
 static uint16_t nla_attr_minlen[LIBBPF_NLA_TYPE_MAX+1] = {
        [LIBBPF_NLA_U8]         = sizeof(uint8_t),
        [LIBBPF_NLA_U16]        = sizeof(uint16_t),