Skip to content

Commit ce4e458

Browse files
Wei Yongjunherbertx
authored andcommitted
crypto: mxs-dcp - make symbols 'sha1_null_hash' and 'sha256_null_hash' static
Fixes the following sparse warnings: drivers/crypto/mxs-dcp.c:39:15: warning: symbol 'sha1_null_hash' was not declared. Should it be static? drivers/crypto/mxs-dcp.c:43:15: warning: symbol 'sha256_null_hash' was not declared. Should it be static? Fixes: c709eeb ("crypto: mxs-dcp - Fix SHA null hashes and output length") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent cc3cc48 commit ce4e458

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/mxs-dcp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
* Null hashes to align with hw behavior on imx6sl and ull
3737
* these are flipped for consistency with hw output
3838
*/
39-
const uint8_t sha1_null_hash[] =
39+
static const uint8_t sha1_null_hash[] =
4040
"\x09\x07\xd8\xaf\x90\x18\x60\x95\xef\xbf"
4141
"\x55\x32\x0d\x4b\x6b\x5e\xee\xa3\x39\xda";
4242

43-
const uint8_t sha256_null_hash[] =
43+
static const uint8_t sha256_null_hash[] =
4444
"\x55\xb8\x52\x78\x1b\x99\x95\xa4"
4545
"\x4c\x93\x9b\x64\xe4\x41\xae\x27"
4646
"\x24\xb9\x6f\x99\xc8\xf4\xfb\x9a"

0 commit comments

Comments
 (0)