diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-09-23 09:52:03 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-09-23 09:52:03 +0200 |
commit | 4bbffe718fe1bfae6176a6fb783c1576b69338e5 (patch) | |
tree | e4d25102f0d2fa2a3480e03ba7bde45c9958511e /tools/virtio/linux/kernel.h | |
parent | ac742d37180bee83bc433be087b66a17af2883b9 (diff) | |
parent | 21199f27b430576552b26210b3194a363d7f05cd (diff) | |
download | talos-op-linux-4bbffe718fe1bfae6176a6fb783c1576b69338e5.tar.gz talos-op-linux-4bbffe718fe1bfae6176a6fb783c1576b69338e5.zip |
Merge branch 'locking/urgent' into locking/core, to pick up fixes before applying new changes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/virtio/linux/kernel.h')
-rw-r--r-- | tools/virtio/linux/kernel.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h index 1e8ce6979c1e..0a3da64638ce 100644 --- a/tools/virtio/linux/kernel.h +++ b/tools/virtio/linux/kernel.h @@ -22,6 +22,7 @@ typedef unsigned long long dma_addr_t; typedef size_t __kernel_size_t; +typedef unsigned int __wsum; struct page { unsigned long long dummy; @@ -47,6 +48,13 @@ static inline void *kmalloc(size_t s, gfp_t gfp) return __kmalloc_fake; return malloc(s); } +static inline void *kzalloc(size_t s, gfp_t gfp) +{ + void *p = kmalloc(s, gfp); + + memset(p, 0, s); + return p; +} static inline void kfree(void *p) { |