History

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.

Jesper Dangaard Brouer committed 6 years ago

Commit 0eac8ce1 parent 1657adc1 file · +1 −0Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/ptr_ring.h+1−0
@@ -23,6 +23,7 @@ · 22 unmodified lines
23#include <linux/types.h>23#include <linux/types.h>
24#include <linux/compiler.h>24#include <linux/compiler.h>
25#include <linux/slab.h>25#include <linux/slab.h>
26#include <linux/mm.h>
26#include <asm/errno.h>27#include <asm/errno.h>
27#endif28#endif
28 29