On 30/10/2021 08:51, Ovidiu Panait wrote:
Add a return value to init_addr_map and use it directly in the
post-relocation init sequence, rather than using a wrapper stub.

Signed-off-by: Ovidiu Panait <ovidiu.pan...@windriver.com>
---

  arch/arm/include/asm/mmu.h     |  2 +-
  arch/arm/mach-bcm283x/init.c   |  4 +++-
  arch/powerpc/cpu/mpc85xx/tlb.c |  4 ++--
  arch/powerpc/include/asm/mmu.h |  2 +-
  common/board_r.c               | 11 +----------
  5 files changed, 8 insertions(+), 15 deletions(-)
[...]
diff --git a/arch/arm/mach-bcm283x/init.c b/arch/arm/mach-bcm283x/init.c
index 9803499985..183650a90a 100644
--- a/arch/arm/mach-bcm283x/init.c
+++ b/arch/arm/mach-bcm283x/init.c
@@ -152,7 +152,7 @@ int mach_cpu_init(void)
  #include <addr_map.h>
  #include <asm/system.h>
-void init_addr_map(void)
+int init_addr_map(void)
  {
        mmu_set_region_dcache_behaviour_phys(BCM2711_RPI4_PCIE_XHCI_MMIO_VIRT,
                                             BCM2711_RPI4_PCIE_XHCI_MMIO_PHYS,

For the bcm283x part:
Reviewed-by: Matthias Brugger <mbrug...@suse.com>

Reply via email to