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
2323 #include <linux/types.h>
2424 #include <linux/compiler.h>
2525 #include <linux/slab.h>
26+#include <linux/mm.h>
2627 #include <asm/errno.h>
2728 #endif
2829