OSDN Git Service

arm64: kexec_file: include linux/vmalloc.h
authorArnd Bergmann <arnd@arndb.de>
Tue, 11 Dec 2018 10:05:46 +0000 (11:05 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 11 Dec 2018 10:37:38 +0000 (10:37 +0000)
This is needed for compilation in some configurations that don't
include it implicitly:

arch/arm64/kernel/machine_kexec_file.c: In function 'arch_kimage_file_post_load_cleanup':
arch/arm64/kernel/machine_kexec_file.c:37:2: error: implicit declaration of function 'vfree'; did you mean 'kvfree'? [-Werror=implicit-function-declaration]

Fixes: 52b2a8af7436 ("arm64: kexec_file: load initrd and device-tree")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/machine_kexec_file.c

index 3c2c8a6..10e3386 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/random.h>
 #include <linux/string.h>
 #include <linux/types.h>
+#include <linux/vmalloc.h>
 #include <asm/byteorder.h>
 
 /* relevant device tree properties */