Skip to contentSkip to conversation

arm64: kexec_file: include linux/vmalloc.h

PATCH In review Arnd Bergmann 2 participants 2 messages Dec 11, 2018 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: kexec_file: include linux/vmalloc.h

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")
---
 arch/arm64/kernel/machine_kexec_file.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/kernel/machine_kexec_file.c +1 -0
index 3c2c8a687149..10e33860e47a 100644
@@ -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 */
Signature · 1 line
2.20.0
#1 lore raw
Quoted 17 lines · Arnd Bergmann

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")
---
 arch/arm64/kernel/machine_kexec_file.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/kernel/machine_kexec_file.c +0 -0
index 3c2c8a687149..10e33860e47a 100644

arch/arm64/kernel/machine_kexec_file.c line 25

Quoted 7 lines
arch/arm64/kernel/machine_kexec_file.c +1 -0
@@ -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 */

Cheers Arnd, I'll pick this up today.

Will