[PATCH V2 0/3] Make omap3 board functions static

Adam Ford aford173 at gmail.com
Fri Jun 25 21:23:05 CEST 2021


Several functions in omap3/board.c are only used in that file, and
two of them are only called when certain conditions are true in an
ifdef.  Rearange these functions to also be inside the ifdef and
make them static.

Before:

 text	   data	    bss	    dec	    hex	filename
  49998	   1057	   1888	  52943	   cecf	spl/u-boot-spl
 605972	  29244	  53020	 688236	  a806c	u-boot

After Patch 3/3:
   text	   data	    bss	    dec	    hex	filename
 605744	  29244	  52996	 687984	  a7f70	u-boot
  49918	   1057	   1888	  52863	   ce7f	spl/u-boot-spl

Adam Ford (3):
  arm: omap3: Make try_unlock_memory() static
  arm: omap3: Make secureworld_exit() static
  arm: omap3: Make secure_unlock_mem() static

 arch/arm/include/asm/arch-omap3/sys_proto.h |  2 --
 arch/arm/mach-omap2/omap3/board.c           | 21 +++++++++++----------
 2 files changed, 11 insertions(+), 12 deletions(-)

-- 
2.25.1



More information about the U-Boot mailing list