Skip to content

Commit ea8a83a

Browse files
Dmitry Torokhovgregkh
authored andcommitted
VMCI: include slab.h into files using kmalloc/kfree
Do not rely on implicit header dependencies as they are known to break. Reported-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Andy King <acking@vmware.com> Signed-off-by: Dmitry Torokhov <dtor@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e6389a1 commit ea8a83a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/misc/vmw_vmci/vmci_guest.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@
1919
#include <linux/interrupt.h>
2020
#include <linux/highmem.h>
2121
#include <linux/kernel.h>
22+
#include <linux/mm.h>
2223
#include <linux/module.h>
2324
#include <linux/sched.h>
25+
#include <linux/slab.h>
2426
#include <linux/init.h>
2527
#include <linux/pci.h>
2628
#include <linux/smp.h>
2729
#include <linux/io.h>
30+
#include <linux/vmalloc.h>
2831

2932
#include "vmci_datagram.h"
3033
#include "vmci_doorbell.h"

drivers/misc/vmw_vmci/vmci_host.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <linux/module.h>
2525
#include <linux/mutex.h>
2626
#include <linux/sched.h>
27+
#include <linux/slab.h>
2728
#include <linux/file.h>
2829
#include <linux/init.h>
2930
#include <linux/poll.h>

0 commit comments

Comments
 (0)