tools: Consolidate types.h
authorBorislav Petkov <bp@suse.de>
Fri, 25 Apr 2014 19:31:02 +0000 (21:31 +0200)
committerJiri Olsa <jolsa@kernel.org>
Thu, 1 May 2014 19:22:39 +0000 (21:22 +0200)
Combine all definitions into a common tools/include/linux/types.h and
kill the wild growth elsewhere. Move DECLARE_BITMAP to its proper
bitmap.h header.

Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Link: http://lkml.kernel.org/n/tip-azczs7qcv6h9xek9od10hiv2@git.kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
43 files changed:
tools/include/linux/types.h [new file with mode: 0644]
tools/lib/lockdep/uinclude/linux/types.h [deleted file]
tools/perf/MANIFEST
tools/perf/Makefile.perf
tools/perf/arch/x86/include/perf_regs.h
tools/perf/arch/x86/util/tsc.c
tools/perf/arch/x86/util/tsc.h
tools/perf/perf.h
tools/perf/tests/attr.c
tools/perf/tests/code-reading.c
tools/perf/tests/dso-data.c
tools/perf/tests/dwarf-unwind.c
tools/perf/tests/keep-tracking.c
tools/perf/tests/parse-no-sample-id-all.c
tools/perf/tests/perf-time-to-tsc.c
tools/perf/tests/rdpmc.c
tools/perf/tests/sample-parsing.c
tools/perf/ui/browser.h
tools/perf/ui/progress.h
tools/perf/util/annotate.h
tools/perf/util/build-id.h
tools/perf/util/dso.h
tools/perf/util/evsel.h
tools/perf/util/header.h
tools/perf/util/include/linux/bitmap.h
tools/perf/util/include/linux/list.h
tools/perf/util/include/linux/types.h [deleted file]
tools/perf/util/map.h
tools/perf/util/parse-events.h
tools/perf/util/parse-events.y
tools/perf/util/perf_regs.h
tools/perf/util/pmu.h
tools/perf/util/stat.h
tools/perf/util/svghelper.c
tools/perf/util/svghelper.h
tools/perf/util/top.h
tools/perf/util/types.h [deleted file]
tools/perf/util/unwind-libdw.c
tools/perf/util/unwind.h
tools/perf/util/util.h
tools/perf/util/values.h
tools/virtio/linux/kernel.h
tools/virtio/linux/types.h [deleted file]

diff --git a/tools/include/linux/types.h b/tools/include/linux/types.h
new file mode 100644 (file)
index 0000000..b5cf25e
--- /dev/null
@@ -0,0 +1,75 @@
+#ifndef _TOOLS_LINUX_TYPES_H_
+#define _TOOLS_LINUX_TYPES_H_
+
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+
+#define __SANE_USERSPACE_TYPES__       /* For PPC64, to get LL64 types */
+#include <asm/types.h>
+
+struct page;
+struct kmem_cache;
+
+typedef enum {
+       GFP_KERNEL,
+       GFP_ATOMIC,
+       __GFP_HIGHMEM,
+       __GFP_HIGH
+} gfp_t;
+
+/*
+ * We define u64 as uint64_t for every architecture
+ * so that we can print it with "%"PRIx64 without getting warnings.
+ *
+ * typedef __u64 u64;
+ * typedef __s64 s64;
+ */
+typedef uint64_t u64;
+typedef int64_t s64;
+
+typedef __u32 u32;
+typedef __s32 s32;
+
+typedef __u16 u16;
+typedef __s16 s16;
+
+typedef __u8  u8;
+typedef __s8  s8;
+
+#ifdef __CHECKER__
+#define __bitwise__ __attribute__((bitwise))
+#else
+#define __bitwise__
+#endif
+#ifdef __CHECK_ENDIAN__
+#define __bitwise __bitwise__
+#else
+#define __bitwise
+#endif
+
+#define __force
+#define __user
+#define __must_check
+#define __cold
+
+typedef __u16 __bitwise __le16;
+typedef __u16 __bitwise __be16;
+typedef __u32 __bitwise __le32;
+typedef __u32 __bitwise __be32;
+typedef __u64 __bitwise __le64;
+typedef __u64 __bitwise __be64;
+
+struct list_head {
+       struct list_head *next, *prev;
+};
+
+struct hlist_head {
+       struct hlist_node *first;
+};
+
+struct hlist_node {
+       struct hlist_node *next, **pprev;
+};
+
+#endif /* _TOOLS_LINUX_TYPES_H_ */
diff --git a/tools/lib/lockdep/uinclude/linux/types.h b/tools/lib/lockdep/uinclude/linux/types.h
deleted file mode 100644 (file)
index 929938f..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-#ifndef _LIBLOCKDEP_LINUX_TYPES_H_
-#define _LIBLOCKDEP_LINUX_TYPES_H_
-
-#include <stdbool.h>
-#include <stddef.h>
-
-#define __SANE_USERSPACE_TYPES__       /* For PPC64, to get LL64 types */
-#include <asm/types.h>
-
-struct page;
-struct kmem_cache;
-
-typedef unsigned gfp_t;
-
-typedef __u64 u64;
-typedef __s64 s64;
-
-typedef __u32 u32;
-typedef __s32 s32;
-
-typedef __u16 u16;
-typedef __s16 s16;
-
-typedef __u8  u8;
-typedef __s8  s8;
-
-#ifdef __CHECKER__
-#define __bitwise__ __attribute__((bitwise))
-#else
-#define __bitwise__
-#endif
-#ifdef __CHECK_ENDIAN__
-#define __bitwise __bitwise__
-#else
-#define __bitwise
-#endif
-
-
-typedef __u16 __bitwise __le16;
-typedef __u16 __bitwise __be16;
-typedef __u32 __bitwise __le32;
-typedef __u32 __bitwise __be32;
-typedef __u64 __bitwise __le64;
-typedef __u64 __bitwise __be64;
-
-struct list_head {
-       struct list_head *next, *prev;
-};
-
-struct hlist_head {
-       struct hlist_node *first;
-};
-
-struct hlist_node {
-       struct hlist_node *next, **pprev;
-};
-
-#endif
index 81783c2037fc7326ded9b1daaa50d818f9868cc4..45da209b6ed39f5ef3c537a74f5a49156ecb26d9 100644 (file)
@@ -8,6 +8,7 @@ tools/include/asm/bug.h
 tools/include/linux/compiler.h
 tools/include/linux/hash.h
 tools/include/linux/export.h
+tools/include/linux/types.h
 include/linux/const.h
 include/linux/perf_event.h
 include/linux/rbtree.h
index bd11e8a3642228c46fec6a44e51d2e239f106e71..2baf61cec7ffa7c3cb35b60a218bb3aee046c380 100644 (file)
@@ -227,7 +227,7 @@ LIB_H += util/include/linux/poison.h
 LIB_H += util/include/linux/rbtree.h
 LIB_H += util/include/linux/rbtree_augmented.h
 LIB_H += util/include/linux/string.h
-LIB_H += util/include/linux/types.h
+LIB_H += ../include/linux/types.h
 LIB_H += util/include/linux/linkage.h
 LIB_H += util/include/asm/asm-offsets.h
 LIB_H += ../include/asm/bug.h
@@ -252,7 +252,6 @@ LIB_H += util/event.h
 LIB_H += util/evsel.h
 LIB_H += util/evlist.h
 LIB_H += util/exec_cmd.h
-LIB_H += util/types.h
 LIB_H += util/levenshtein.h
 LIB_H += util/machine.h
 LIB_H += util/map.h
index fc819ca34a7eeffd564cace9b9d0baea71ef36ed..7df517acfef856fbefaaf14ff1d21c884fdf5104 100644 (file)
@@ -2,7 +2,7 @@
 #define ARCH_PERF_REGS_H
 
 #include <stdlib.h>
-#include "../../util/types.h"
+#include <linux/types.h>
 #include <asm/perf_regs.h>
 
 void perf_regs_load(u64 *regs);
index b2519e49424f4c42bb389de846d21c8337773036..40021fa3129b8e958c6ecf591c2f3f2480a2bb34 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/perf_event.h>
 
 #include "../../perf.h"
-#include "../../util/types.h"
+#include <linux/types.h>
 #include "../../util/debug.h"
 #include "tsc.h"
 
index a24dec81c7959462c8d52ae630709b8da31924dc..2affe0366b594922ec5b06fe935f97b604f1beff 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef TOOLS_PERF_ARCH_X86_UTIL_TSC_H__
 #define TOOLS_PERF_ARCH_X86_UTIL_TSC_H__
 
-#include "../../util/types.h"
+#include <linux/types.h>
 
 struct perf_tsc_conversion {
        u16 time_shift;
index ebdad3376c6728933ba789d02593da5c5ed18a0a..5aa8ac45082f14d59bddbfea732c077eb7d724a6 100644 (file)
 #include <sys/types.h>
 #include <sys/syscall.h>
 
+#include <linux/types.h>
 #include <linux/perf_event.h>
-#include "util/types.h"
-#include <stdbool.h>
 
 /*
  * prctl(PR_TASK_PERF_EVENTS_DISABLE) will (cheaply) disable all
@@ -202,7 +201,6 @@ static inline unsigned long long rdclock(void)
 /*
  * Pick up some kernel type conventions:
  */
-#define __user
 #define asmlinkage
 
 #define unlikely(x)    __builtin_expect(!!(x), 0)
index 00218f503b2e8b73b7243f52b65953fc540ea4f1..2dfc9ad0e6f2487d730008fac56988f9b408666d 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * The struct perf_event_attr test support.
  *
  * permissions. All the event text files are stored there.
  */
 
-/*
- * Powerpc needs __SANE_USERSPACE_TYPES__ before <linux/types.h> to select
- * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu.
- */
-#define __SANE_USERSPACE_TYPES__
 #include <stdlib.h>
 #include <stdio.h>
-#include <inttypes.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include "../perf.h"
index bfb186900ac0427ea5feff590f8055514c6652fa..adf3de3e38d6a9ad04d85487ef497c5df00f5df6 100644 (file)
@@ -1,8 +1,7 @@
-#include <sys/types.h>
+#include <linux/types.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdio.h>
-#include <inttypes.h>
 #include <ctype.h>
 #include <string.h>
 
index 9cc81a3eb9b456e6d2693bce799fedb0caba9862..3e6cb171e3d3b7578ede52017b7d08ecdb8d6403 100644 (file)
@@ -1,7 +1,7 @@
 #include "util.h"
 
 #include <stdlib.h>
-#include <sys/types.h>
+#include <linux/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <string.h>
index c059ee81c038abd1417c06172274c98d11a9c3ac..108f0cd49f4e3ed842190dd3c235b710d0ad7534 100644 (file)
@@ -1,5 +1,5 @@
 #include <linux/compiler.h>
-#include <sys/types.h>
+#include <linux/types.h>
 #include <unistd.h>
 #include "tests.h"
 #include "debug.h"
index 497957f269d8161f54b39574b5145e0dfc86ff4d..7a5ab7b0b8f698146794be7584af453a446f79ee 100644 (file)
@@ -1,4 +1,4 @@
-#include <sys/types.h>
+#include <linux/types.h>
 #include <unistd.h>
 #include <sys/prctl.h>
 
index e117b6c6a2485c255312472e1c01fea1686f3ea0..905019f9b7409ecd962d63c94a701f54aadcf715 100644 (file)
@@ -1,4 +1,4 @@
-#include <sys/types.h>
+#include <linux/types.h>
 #include <stddef.h>
 
 #include "tests.h"
index 47146d388dbffac3e6a90b6e1f6595083dfa1839..3b7cd4d32dcb5d1bc2a1d98e71685f80e381ffea 100644 (file)
@@ -1,7 +1,6 @@
 #include <stdio.h>
-#include <sys/types.h>
 #include <unistd.h>
-#include <inttypes.h>
+#include <linux/types.h>
 #include <sys/prctl.h>
 
 #include "parse-events.h"
index 46649c25fa5ed4982c364119792490c4ff861979..e59143fd9e711c0461196ce098ec64ec31cd6641 100644 (file)
@@ -2,7 +2,7 @@
 #include <stdlib.h>
 #include <signal.h>
 #include <sys/mman.h>
-#include "types.h"
+#include <linux/types.h>
 #include "perf.h"
 #include "debug.h"
 #include "tests.h"
index 0014d3c8c21cd47d2868cac66bc65253913e888e..7ae8d17db3d9d6b6a1041f1004de4759ea9eeda5 100644 (file)
@@ -1,5 +1,5 @@
 #include <stdbool.h>
-#include <inttypes.h>
+#include <linux/types.h>
 
 #include "util.h"
 #include "event.h"
index 118cca29dd26b5e52f73d1806e247febe590e841..03d4d6295f1000e3be48aa6efe6f74bc917a0c5e 100644 (file)
@@ -1,9 +1,7 @@
 #ifndef _PERF_UI_BROWSER_H_
 #define _PERF_UI_BROWSER_H_ 1
 
-#include <stdbool.h>
-#include <sys/types.h>
-#include "../types.h"
+#include <linux/types.h>
 
 #define HE_COLORSET_TOP                50
 #define HE_COLORSET_MEDIUM     51
index 29ec8efffefb7ec9e0ac1936304257cc8c5ff9ef..f34f89eb607cba5653e86801eff01c453e458903 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _PERF_UI_PROGRESS_H_
 #define _PERF_UI_PROGRESS_H_ 1
 
-#include <../types.h>
+#include <linux/types.h>
 
 void ui_progress__finish(void);
  
index 56ad4f5287dec04bf8e94fe15c814b6abc8b42ee..112d6e2681508ac66d160b50769be34fc7611e92 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <stdbool.h>
 #include <stdint.h>
-#include "types.h"
+#include <linux/types.h>
 #include "symbol.h"
 #include "hist.h"
 #include "sort.h"
index 845ef865eced46c24eda848d828100cd06dc43ae..ae392561470b83a6e268f177397cb195ce0f2e74 100644 (file)
@@ -4,7 +4,7 @@
 #define BUILD_ID_SIZE 20
 
 #include "tool.h"
-#include "types.h"
+#include <linux/types.h>
 
 extern struct perf_tool build_id__mark_dso_hit_ops;
 struct dso;
index ab06f1c0365542cc35c000ba90d6879b34070ed6..38efe95a7fddec1a78724e8bef797a8a4a09a76b 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/types.h>
 #include <linux/rbtree.h>
 #include <stdbool.h>
-#include "types.h"
+#include <linux/types.h>
 #include "map.h"
 #include "build-id.h"
 
index 0c581d0d5eb67e317efdfbf163fda0e2c3bfa5dc..a52e9a5bb2d0b56d0eeeb2401ff8a557fde629b4 100644 (file)
@@ -5,12 +5,12 @@
 #include <stdbool.h>
 #include <stddef.h>
 #include <linux/perf_event.h>
-#include "types.h"
+#include <linux/types.h>
 #include "xyarray.h"
 #include "cgroup.h"
 #include "hist.h"
 #include "symbol.h"
+
 struct perf_counts_values {
        union {
                struct {
index a2d047bdf4efab50837d04afd3a896bc482cf66f..d08cfe49940448170dc5c680dc30ff9256ed7158 100644 (file)
@@ -4,10 +4,10 @@
 #include <linux/perf_event.h>
 #include <sys/types.h>
 #include <stdbool.h>
-#include "types.h"
+#include <linux/bitmap.h>
+#include <linux/types.h>
 #include "event.h"
 
-#include <linux/bitmap.h>
 
 enum {
        HEADER_RESERVED         = 0,    /* always cleared */
index bb162e40c76cf6a2e990b5622955c2b2307f7482..01ffd12dc79140033d7d691d0c5b8f2e2bd38dd1 100644 (file)
@@ -4,6 +4,9 @@
 #include <string.h>
 #include <linux/bitops.h>
 
+#define DECLARE_BITMAP(name,bits) \
+       unsigned long name[BITS_TO_LONGS(bits)]
+
 int __bitmap_weight(const unsigned long *bitmap, int bits);
 void __bitmap_or(unsigned long *dst, const unsigned long *bitmap1,
                 const unsigned long *bitmap2, int bits);
index bfe0a2afd0d28bc736b8ab8ae9c063ca0248a158..76ddbc72634358ff0f08ea996e1f6e3275b54280 100644 (file)
@@ -1,4 +1,5 @@
 #include <linux/kernel.h>
+#include <linux/types.h>
 
 #include "../../../../include/linux/list.h"
 
diff --git a/tools/perf/util/include/linux/types.h b/tools/perf/util/include/linux/types.h
deleted file mode 100644 (file)
index eb46478..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef _PERF_LINUX_TYPES_H_
-#define _PERF_LINUX_TYPES_H_
-
-#include <asm/types.h>
-
-#ifndef __bitwise
-#define __bitwise
-#endif
-
-#ifndef __le32
-typedef __u32 __bitwise __le32;
-#endif
-
-#define DECLARE_BITMAP(name,bits) \
-       unsigned long name[BITS_TO_LONGS(bits)]
-
-struct list_head {
-       struct list_head *next, *prev;
-};
-
-struct hlist_head {
-       struct hlist_node *first;
-};
-
-struct hlist_node {
-       struct hlist_node *next, **pprev;
-};
-
-#endif
index d6445b27d672b48cc9b95ab68b9ae92bfdab44c6..ae2d45110588149a247bbcf0015ec93f0793b763 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/rbtree.h>
 #include <stdio.h>
 #include <stdbool.h>
-#include "types.h"
+#include <linux/types.h>
 
 enum map_type {
        MAP__FUNCTION = 0,
index f1cb4c4b3c70acad8ae4e9febfa2a3c6b4681b6c..df094b4ed5ed7d8157af73dcc592194fc8475782 100644 (file)
@@ -6,9 +6,8 @@
 
 #include <linux/list.h>
 #include <stdbool.h>
-#include "types.h"
+#include <linux/types.h>
 #include <linux/perf_event.h>
-#include "types.h"
 
 struct list_head;
 struct perf_evsel;
index ac9db9f699f3f583e0ebd99baec9aa52eef9e029..0bc87ba46bf3f77f507116df36449655a9fbaa6f 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <linux/compiler.h>
 #include <linux/list.h>
-#include "types.h"
+#include <linux/types.h>
 #include "util.h"
 #include "parse-events.h"
 #include "parse-events-bison.h"
index d6e8b6a8d7f38f03632921789281569433826816..79c78f74e0cf882db1acc55c169115c92ed73d95 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __PERF_REGS_H
 #define __PERF_REGS_H
 
-#include "types.h"
+#include <linux/types.h>
 #include "event.h"
 
 #ifdef HAVE_PERF_REGS_SUPPORT
index 8b64125a92811885984912b5c8c3fac719a5c57c..c14a543ce1f3b563a6debfb0879c910003a2ac15 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __PMU_H
 #define __PMU_H
 
-#include <linux/bitops.h>
+#include <linux/bitmap.h>
 #include <linux/perf_event.h>
 #include <stdbool.h>
 
index ae8ccd7227cfa2d3f0a2e74ab06efab814ac3bfd..5667fc3e39cf45fe31f099e702a68eeeb202d16f 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __PERF_STATS_H
 #define __PERF_STATS_H
 
-#include "types.h"
+#include <linux/types.h>
 
 struct stats
 {
index 43262b83c5411894f3dff3244782b6bd8bfe580d..6a0a13d07a2803cfcb3a32dc91c466f50c151ee1 100644 (file)
@@ -17,7 +17,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
-#include <linux/bitops.h>
+#include <linux/bitmap.h>
 
 #include "perf.h"
 #include "svghelper.h"
index f7b4d6e699ea8d987dd461c108038b713bc6b958..e3aff5332e30b6588462c8dcb1dccbfa84165d7d 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __PERF_SVGHELPER_H
 #define __PERF_SVGHELPER_H
 
-#include "types.h"
+#include <linux/types.h>
 
 extern void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end);
 extern void svg_box(int Yslot, u64 start, u64 end, const char *type);
index dab14d0ad3d0093d4682bab9a0c4769e3949ca55..f92c37abb0a80b827c56bc32f2e8aeb3bb39463d 100644 (file)
@@ -2,7 +2,7 @@
 #define __PERF_TOP_H 1
 
 #include "tool.h"
-#include "types.h"
+#include <linux/types.h>
 #include <stddef.h>
 #include <stdbool.h>
 #include <termios.h>
diff --git a/tools/perf/util/types.h b/tools/perf/util/types.h
deleted file mode 100644 (file)
index 5f3689a..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#ifndef __PERF_TYPES_H
-#define __PERF_TYPES_H
-
-#include <stdint.h>
-
-/*
- * We define u64 as uint64_t for every architecture
- * so that we can print it with "%"PRIx64 without getting warnings.
- */
-typedef uint64_t          u64;
-typedef int64_t                   s64;
-typedef unsigned int      u32;
-typedef signed int        s32;
-typedef unsigned short    u16;
-typedef signed short      s16;
-typedef unsigned char     u8;
-typedef signed char       s8;
-
-#endif /* __PERF_TYPES_H */
index 67db73ec3dabb4600034cd2280f268636316e3eb..5ec80a575b50a111b64cd2a6a7593fd270f60814 100644 (file)
@@ -7,7 +7,7 @@
 #include "unwind-libdw.h"
 #include "machine.h"
 #include "thread.h"
-#include "types.h"
+#include <linux/types.h>
 #include "event.h"
 #include "perf_regs.h"
 
index b031316f221a7de76c1930d8289ba03300748672..f03061260b4e5459970978cc051461c64180dfb0 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __UNWIND_H
 #define __UNWIND_H
 
-#include "types.h"
+#include <linux/types.h>
 #include "event.h"
 #include "symbol.h"
 
index 6995d66f225c786a7a90ee3e6884f628474f7cec..b03da44e94e4d53517fc398d6b993953549182cb 100644 (file)
@@ -69,7 +69,7 @@
 #include <sys/ioctl.h>
 #include <inttypes.h>
 #include <linux/magic.h>
-#include "types.h"
+#include <linux/types.h>
 #include <sys/ttydefaults.h>
 #include <api/fs/debugfs.h>
 #include <termios.h>
index 2fa967e1a88aaa0a4a4f6dfe98517be6c08c8f68..b21a80c6cf8def4fe265a301f0bbf69078f7409a 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __PERF_VALUES_H
 #define __PERF_VALUES_H
 
-#include "types.h"
+#include <linux/types.h>
 
 struct perf_read_values {
        int threads;
index fba705963968370ea42ffc13a7904759bcc92428..1e8ce6979c1e5e0bd30b5424a1a1cf8b3063bf12 100644 (file)
@@ -38,13 +38,6 @@ struct page {
 
 #define __printf(a,b) __attribute__((format(printf,a,b)))
 
-typedef enum {
-       GFP_KERNEL,
-       GFP_ATOMIC,
-       __GFP_HIGHMEM,
-       __GFP_HIGH
-} gfp_t;
-
 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
 
 extern void *__kmalloc_fake, *__kfree_ignore_start, *__kfree_ignore_end;
diff --git a/tools/virtio/linux/types.h b/tools/virtio/linux/types.h
deleted file mode 100644 (file)
index f8ebb9a..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef TYPES_H
-#define TYPES_H
-#include <stdint.h>
-
-#define __force
-#define __user
-#define __must_check
-#define __cold
-
-typedef uint64_t u64;
-typedef int64_t s64;
-typedef uint32_t u32;
-typedef int32_t s32;
-typedef uint16_t u16;
-typedef int16_t s16;
-typedef uint8_t u8;
-typedef int8_t s8;
-
-typedef uint64_t __u64;
-typedef int64_t __s64;
-typedef uint32_t __u32;
-typedef int32_t __s32;
-typedef uint16_t __u16;
-typedef int16_t __s16;
-typedef uint8_t __u8;
-typedef int8_t __s8;
-
-#endif /* TYPES_H */