commit | 6173838defcfa68937e3fca790d882fc2fe3f2c3 | [log] [tgz] |
---|---|---|
author | Tom Rini <trini@konsulko.com> | Tue Jan 05 08:47:48 2016 -0500 |
committer | Tom Rini <trini@konsulko.com> | Wed Jan 13 21:05:08 2016 -0500 |
tree | 6e25289f3a294bb3a8df66b9bd45ea11b3545bb0 | |
parent | 4c6e960f81c59b74ed0b0a0f24c9d00f2b622564 [diff] |
hash.c: Conditionally compile hash_command, static hash_show 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@konsulko.com>