From: Jesper Dangaard Brouer Date: Mon, 13 Jan 2020 10:22:16 +0000 (+0100) Subject: ptr_ring: add include of linux/mm.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0eac8ce95bb386838121189b2aa2216cd070f143;p=linux.git 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 Acked-by: Michael S. Tsirkin Signed-off-by: Jakub Kicinski --- diff --git a/include/linux/ptr_ring.h b/include/linux/ptr_ring.h index 0abe9a4fc8421..417db0a79a629 100644 --- a/include/linux/ptr_ring.h +++ b/include/linux/ptr_ring.h @@ -23,6 +23,7 @@ #include #include #include +#include #include #endif