mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-21 08:03:45 -04:00
tools/virtio: fix build after 4.2 changes
more stubs, mostly Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user