]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: omap3: Make secureworld_exit() static
authorAdam Ford <aford173@gmail.com>
Fri, 25 Jun 2021 19:23:07 +0000 (14:23 -0500)
committerLokesh Vutla <lokeshvutla@ti.com>
Thu, 15 Jul 2021 12:26:04 +0000 (17:56 +0530)
secureworld_exit() is only used in one file, so make it static
to that file and remove it from sys_proto.h. This
may help with some further optimization in the future.

Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Link: https://lore.kernel.org/r/20210625192308.277136-3-aford173@gmail.com
arch/arm/include/asm/arch-omap3/sys_proto.h
arch/arm/mach-omap2/omap3/board.c

index 656f848a73b010dc9404e20f232c4cbc4b7cb0c1..a6e9ff84aa0abce3da1110e19eab9aad5ee60d7e 100644 (file)
@@ -59,7 +59,6 @@ u32 is_running_in_sdram(void);
 u32 is_running_in_sram(void);
 u32 is_running_in_flash(void);
 u32 get_device_type(void);
-void secureworld_exit(void);
 u32 get_boot_type(void);
 void invalidate_dcache(u32);
 u32 wait_on_value(u32, u32, void *, u32);
index ef4fa80c7b411fb54e522fed6ec8ec26a607ca38..41d0d3ef690ec7963e7a2290edef07b78ae2db2d 100644 (file)
@@ -114,7 +114,7 @@ void secure_unlock_mem(void)
  *             configure secure registers and exit secure world
  *              general use.
  *****************************************************************************/
-void secureworld_exit(void)
+static void secureworld_exit(void)
 {
        unsigned long i;