ptr_ring: add include of linux/mm.h
authorJesper Dangaard Brouer <brouer@redhat.com>
Mon, 13 Jan 2020 10:22:16 +0000 (11:22 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Jan 2020 02:16:43 +0000 (18:16 -0800)
Commit 0bf7800f1799 ("ptr_ring: try vmalloc() when kmalloc() fails")
started to use kvmalloc_array and kvfree, which are defined in mm.h,
the previous functions kcalloc and kfree, which are defined in slab.h.

Add the missing include of linux/mm.h.  This went unnoticed as other
include files happened to include mm.h.

Fixes: 0bf7800f1799 ("ptr_ring: try vmalloc() when kmalloc() fails")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ptr_ring.h

index 0abe9a4..417db0a 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/types.h>
 #include <linux/compiler.h>
 #include <linux/slab.h>
+#include <linux/mm.h>
 #include <asm/errno.h>
 #endif