diff options
author | Mark Brown <broonie@kernel.org> | 2015-09-30 23:21:11 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-30 23:21:11 +0100 |
commit | 5c0e869357454c2aab3d02d002ffc1f0a0ab2782 (patch) | |
tree | de3bf0f70d24fc33d791f776513593da5217ea08 /tools/virtio/linux/kernel.h | |
parent | baafd373e9287f20ca0c9a6bb38eb6785a146ac2 (diff) | |
parent | ed14ee0eea8b6808025356cecc87a8007885263f (diff) |
Merge tag 'asoc-fix-v4.3-rc2' into asoc-pxa
ASoC: Fixes for v4.3
A disappointingly large set of fixes, though none of them very big and
very widely spread over many different drivers. Nothing especially
stands out, it's mostly all device specific and relatively minor.
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) { |