mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
ptr_ring: add include of linux/mm.h
Commit0bf7800f17
("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:0bf7800f17
("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>
This commit is contained in:
parent
1657adccaa
commit
0eac8ce95b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user