From: Adam Ford Date: Thu, 18 Mar 2021 07:40:51 -0500 Subject: [PATCH V2 0/3] arm: omap3: Make functions static when possible Message-ID: <20210318124054.2475426-1-aford173@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de A few functions are defined without being labeled as static to that file. In an effort to keep SPL as small as possible, one function needs to be moved into an #ifdef so it's only enabled when the calling function is available, and all of these can simply be marked as static. Before: text data bss dec hex filename 50988 1053 1888 53929 d2a9 spl/u-boot-spl After: text data bss dec hex filename 50972 1053 1888 53913 d299 spl/u-boot-spl While not significant, a few bytes can be very helpful when SPL is limited. 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