Skip to content

Commit ea00d4e

Browse files
jpemartinsawilliam
authored andcommitted
vfio/iova_bitmap: Explicitly include linux/slab.h
kzalloc/kzfree are used so include `slab.h`. While it happens to work without it, due to commit 8b9f3ac ("fs: introduce alloc_inode_sb() to allocate filesystems specific inode") which indirectly includes via: . ./include/linux/mm.h .. ./include/linux/huge_mm.h ... ./include/linux/fs.h .... ./include/linux/slab.h Make it explicit should any of its indirect dependencies be dropped/changed for entirely different reasons as it was the cause prior to commit above recently (i.e. <= v5.18). Signed-off-by: Joao Martins <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
1 parent e67e070 commit ea00d4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/vfio/iova_bitmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
#include <linux/iova_bitmap.h>
77
#include <linux/mm.h>
8+
#include <linux/slab.h>
89
#include <linux/highmem.h>
910

1011
#define BITS_PER_PAGE (PAGE_SIZE * BITS_PER_BYTE)

0 commit comments

Comments
 (0)