diff options
author | Borislav Petkov <bp@suse.de> | 2014-04-25 15:31:02 -0400 |
---|---|---|
committer | Jiri Olsa <jolsa@kernel.org> | 2014-05-01 15:22:39 -0400 |
commit | d944c4eebcf4c0d5e5d9728fec110cbf0047ad7f (patch) | |
tree | 94240760600b3b1de6b6c95fe76b68a6990b2669 /tools/virtio | |
parent | 5ac3e4b6d1d8fb911bb9c497126c51b02033a412 (diff) |
tools: Consolidate types.h
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>
Diffstat (limited to 'tools/virtio')
-rw-r--r-- | tools/virtio/linux/kernel.h | 7 | ||||
-rw-r--r-- | tools/virtio/linux/types.h | 28 |
2 files changed, 0 insertions, 35 deletions
diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h index fba705963968..1e8ce6979c1e 100644 --- a/tools/virtio/linux/kernel.h +++ b/tools/virtio/linux/kernel.h | |||
@@ -38,13 +38,6 @@ struct page { | |||
38 | 38 | ||
39 | #define __printf(a,b) __attribute__((format(printf,a,b))) | 39 | #define __printf(a,b) __attribute__((format(printf,a,b))) |
40 | 40 | ||
41 | typedef enum { | ||
42 | GFP_KERNEL, | ||
43 | GFP_ATOMIC, | ||
44 | __GFP_HIGHMEM, | ||
45 | __GFP_HIGH | ||
46 | } gfp_t; | ||
47 | |||
48 | #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) | 41 | #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) |
49 | 42 | ||
50 | extern void *__kmalloc_fake, *__kfree_ignore_start, *__kfree_ignore_end; | 43 | 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 index f8ebb9a2b3d6..000000000000 --- a/tools/virtio/linux/types.h +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | #ifndef TYPES_H | ||
2 | #define TYPES_H | ||
3 | #include <stdint.h> | ||
4 | |||
5 | #define __force | ||
6 | #define __user | ||
7 | #define __must_check | ||
8 | #define __cold | ||
9 | |||
10 | typedef uint64_t u64; | ||
11 | typedef int64_t s64; | ||
12 | typedef uint32_t u32; | ||
13 | typedef int32_t s32; | ||
14 | typedef uint16_t u16; | ||
15 | typedef int16_t s16; | ||
16 | typedef uint8_t u8; | ||
17 | typedef int8_t s8; | ||
18 | |||
19 | typedef uint64_t __u64; | ||
20 | typedef int64_t __s64; | ||
21 | typedef uint32_t __u32; | ||
22 | typedef int32_t __s32; | ||
23 | typedef uint16_t __u16; | ||
24 | typedef int16_t __s16; | ||
25 | typedef uint8_t __u8; | ||
26 | typedef int8_t __s8; | ||
27 | |||
28 | #endif /* TYPES_H */ | ||