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.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -23,6 +23,7 @@ · 22 unmodified lines | ||
| 23 | 23 | #include <linux/types.h> |
| 24 | 24 | #include <linux/compiler.h> |
| 25 | 25 | #include <linux/slab.h> |
| 26 | +#include <linux/mm.h> | |
| 26 | 27 | #include <asm/errno.h> |
| 27 | 28 | #endif |
| 28 | 29 | |