diff mbox

spi: loopback-test: fix compile error on x86

Message ID 1489748878-15020-1-git-send-email-fisaksen@baylibre.com (mailing list archive)
State Accepted
Commit e542f7e63cb17242fcfc1be5edd69532cf434697
Headers show

Commit Message

Frode Isaksen March 17, 2017, 11:07 a.m. UTC
Fix compile error caused by missing vmalloc() definition
on x86 (and maybe other platforms) by including vmalloc.h.

Signed-off-by: Frode Isaksen <fisaksen@baylibre.com>
---
 drivers/spi/spi-loopback-test.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/drivers/spi/spi-loopback-test.c b/drivers/spi/spi-loopback-test.c
index 3596051..4e7843e 100644
--- a/drivers/spi/spi-loopback-test.c
+++ b/drivers/spi/spi-loopback-test.c
@@ -25,6 +25,7 @@ 
 #include <linux/module.h>
 #include <linux/of_device.h>
 #include <linux/printk.h>
+#include <linux/vmalloc.h>
 #include <linux/spi/spi.h>
 
 #include "spi-test.h"