From: Tom Rini Date: Thu, 14 Jan 2016 08:20:34 -0500 Subject: [U-Boot] hash.c: Conditionally compile hash_command, static hash_show In-Reply-To: <1452001801-22239-1-git-send-email-trini@konsulko.com> References: <1452001801-22239-1-git-send-email-trini@konsulko.com> Message-ID: <20160114132034.GC3359@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jan 05, 2016 at 08:50:01AM -0500, Tom Rini wrote: > The function hash_show is now only called by hash_command, so mark it as > static (and drop from hash.h). We only call hash_command when any of > CONFIG_CMD_CRC32, CONFIG_CMD_SHA1SUM or CONFIG_CMD_HASH are set. Since > hash.c is linked in unconditionally we must take extra care with > functions that bring in read-only strings as these will not be > discarded. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: