xen/arm: setup: Move in init code only used at boot in setup.c
authorJulien Grall <julien.grall@arm.com>
Wed, 11 Jul 2018 19:19:00 +0000 (12:19 -0700)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 11 Jul 2018 19:22:17 +0000 (12:22 -0700)
Some of the functions implemented in setup.c are only used at boot but
not yet marked as such.

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

index 3a75cb2a344c27d5208da9d57d89a2162f4b67fe..7d40a8466b5e1b8b91eb323e312e01dc01dd731f 100644 (file)
@@ -173,7 +173,7 @@ static void __init processor_id(void)
     processor_setup();
 }
 
-void dt_unreserved_regions(paddr_t s, paddr_t e,
+void __init dt_unreserved_regions(paddr_t s, paddr_t e,
                                   void (*cb)(paddr_t, paddr_t), int first)
 {
     int i, nr = fdt_num_mem_rsv(device_tree_flattened);
@@ -199,9 +199,9 @@ void dt_unreserved_regions(paddr_t s, paddr_t e,
     cb(s, e);
 }
 
-struct bootmodule *add_boot_module(bootmodule_kind kind,
-                                   paddr_t start, paddr_t size,
-                                   const char *cmdline)
+struct bootmodule __init *add_boot_module(bootmodule_kind kind,
+                                          paddr_t start, paddr_t size,
+                                          const char *cmdline)
 {
     struct bootmodules *mods = &bootinfo.modules;
     struct bootmodule *mod;
@@ -432,7 +432,7 @@ static paddr_t __init get_xen_paddr(void)
     return paddr;
 }
 
-static void init_pdx(void)
+static void __init init_pdx(void)
 {
     paddr_t bank_start, bank_size, bank_end;