[U-Boot] hash.c: Conditionally compile hash_command, static hash_show

Tom Rini trini at konsulko.com
Thu Jan 14 14:20:34 CET 2016


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 <trini at konsulko.com>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20160114/25aa923f/attachment.sig>


More information about the U-Boot mailing list