Skip to contentSkip to conversation

xen/arm: bootfdt.c is only used during initialization

PATCH In review Julien Grall 2 participants 2 messages Jan 17, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: bootfdt.c is only used during initialization

This file contains data and code only used at initialization. Mark the file as such in the build system and correct kind_guess.

---
 xen/arch/arm/Makefile  | 2 +-
 xen/arch/arm/bootfdt.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
xen/arch/arm/Makefile +1 -1
index 59b3b53..cf67bbe 100644
@@ -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
xen/arch/arm/bootfdt.c +1 -1
index d130633..cae6f83 100644
@@ -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;
Signature · 7 lines
1.9.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Julien Grall

This file contains data and code only used at initialization. Mark the file as such in the build system and correct kind_guess.

Quoted 33 lines
 xen/arch/arm/Makefile  | 2 +-
 xen/arch/arm/bootfdt.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
xen/arch/arm/Makefile +1 -1
index 59b3b53..cf67bbe 100644
@@ -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
xen/arch/arm/bootfdt.c +1 -1
index d130633..cae6f83 100644
@@ -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;
Signature · 1 line
1.9.1

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel