summaryrefslogtreecommitdiffstats
path: root/include/linux/ptr_ring.h
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2020-01-13 11:22:16 +0100
committerJakub Kicinski <kuba@kernel.org>2020-01-13 18:16:43 -0800
commit0eac8ce95bb386838121189b2aa2216cd070f143 (patch)
tree09434b82ad7bf2879477617641598bcff17b48a1 /include/linux/ptr_ring.h
parent1657adccaa37e1895356658212a1847f617ebf8f (diff)
downloadlinux-0eac8ce95bb386838121189b2aa2216cd070f143.tar.gz
linux-0eac8ce95bb386838121189b2aa2216cd070f143.tar.bz2
linux-0eac8ce95bb386838121189b2aa2216cd070f143.zip
ptr_ring: add include of linux/mm.h
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>
Diffstat (limited to 'include/linux/ptr_ring.h')
-rw-r--r--include/linux/ptr_ring.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ptr_ring.h b/include/linux/ptr_ring.h
index 0abe9a4fc842..417db0a79a62 100644
--- a/include/linux/ptr_ring.h
+++ b/include/linux/ptr_ring.h
@@ -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