[PATCH v2] lib/test_firmware: add header to prevent build errors
From: Randy Dunlap
Date: Thu Feb 15 2018 - 19:58:53 EST
From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
lib/test_firmware.c has build errors on some $ARCHes due to a
missing header file, so add it.
lib/test_firmware.c:134:2: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]
lib/test_firmware.c:620:25: error: implicit declaration of function 'vzalloc' [-Werror=implicit-function-declaration]
Reported-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Cc: Wei Yongjun <weiyongjun1@xxxxxxxxxx>
Cc: Luis R. Rodriguez <mcgrof@xxxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Link: http://kisskb.ellerman.id.au/kisskb/head/13396/
---
v2: fix typo: s/vfree.h/vmalloc.h/, reported by "kbuild test robot"
lib/test_firmware.c | 1 +
1 file changed, 1 insertion(+)
--- lnx-416-rc1.orig/lib/test_firmware.c
+++ lnx-416-rc1/lib/test_firmware.c
@@ -21,6 +21,7 @@
#include <linux/uaccess.h>
#include <linux/delay.h>
#include <linux/kthread.h>
+#include <linux/vmalloc.h>
#define TEST_FIRMWARE_NAME "test-firmware.bin"
#define TEST_FIRMWARE_NUM_REQS 4