xen/arm: bootfdt.c is only used during initialization
authorJulien Grall <julien.grall@arm.com>
Tue, 17 Jan 2017 15:53:24 +0000 (15:53 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 17 Jan 2017 23:50:39 +0000 (15:50 -0800)
This file contains data and code only used at initialization. Mark the
file as such in the build system and correct kind_guess.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/Makefile
xen/arch/arm/bootfdt.c

index 59b3b534801b31d5c043fa6c5b1fca35749a1558..cf67bbe4eb8902cf3c411fd4b4982b3ec7a2511d 100644 (file)
@@ -5,7 +5,7 @@ subdir-$(CONFIG_ARM_64) += efi
 subdir-$(CONFIG_ACPI) += acpi
 
 obj-$(CONFIG_HAS_ALTERNATIVE) += alternative.o
-obj-y += bootfdt.o
+obj-y += bootfdt.init.o
 obj-y += cpu.o
 obj-y += cpuerrata.o
 obj-y += cpufeature.o
index d13063371ed149a2954809dc1268c06dfebf2f80..cae6f83260e3ac01abb38c2b70feed3432ecf0e0 100644 (file)
@@ -168,7 +168,7 @@ static void __init process_multiboot_node(const void *fdt, int node,
                                           const char *name,
                                           u32 address_cells, u32 size_cells)
 {
-    static int kind_guess = 0;
+    static int __initdata kind_guess = 0;
     const struct fdt_property *prop;
     const __be32 *cell;
     bootmodule_kind kind;