xen/arm: bootfdt.c is only used during initialization
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.
Signed-off-by Julien Grall <[email protected]>
--- xen/arch/arm/Makefile | 2 +- xen/arch/arm/bootfdt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
xen/arch/arm/Makefile +1 -1
@@ -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
@@ -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
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.Signed-off-by Julien Grall <[email protected]>
Reviewed-by Stefano Stabellini <[email protected]>
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@@ -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.oxen/arch/arm/bootfdt.c +1
-1@@ -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