]> git.baikalelectronics.ru Git - kernel.git/commitdiff
crypto: mxs-dcp - make symbols 'sha1_null_hash' and 'sha256_null_hash' static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 11 Oct 2018 01:49:48 +0000 (01:49 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Oct 2018 06:20:45 +0000 (14:20 +0800)
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: 571b8de25f20 ("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>
drivers/crypto/mxs-dcp.c

index aaa95c09f06830ba69e5395500ae5c5370a5b806..54f200eaa3ccedeca3206b9210c070173a1b0aa3 100644 (file)
  * Null hashes to align with hw behavior on imx6sl and ull
  * these are flipped for consistency with hw output
  */
-const uint8_t sha1_null_hash[] =
+static const uint8_t sha1_null_hash[] =
        "\x09\x07\xd8\xaf\x90\x18\x60\x95\xef\xbf"
        "\x55\x32\x0d\x4b\x6b\x5e\xee\xa3\x39\xda";
 
-const uint8_t sha256_null_hash[] =
+static const uint8_t sha256_null_hash[] =
        "\x55\xb8\x52\x78\x1b\x99\x95\xa4"
        "\x4c\x93\x9b\x64\xe4\x41\xae\x27"
        "\x24\xb9\x6f\x99\xc8\xf4\xfb\x9a"