summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-05-12 17:05:40 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-05-23 14:01:07 +0800
commitefc77e8107c5c0b301686d52bd11e0ec2b10cb61 (patch)
tree3b4c3b751eac64a88eb2db28335ec8e97594256e /arch/arm
parentdb07cd26ac6a418dc2823187958edcfdb415fa83 (diff)
downloadlinux-efc77e8107c5c0b301686d52bd11e0ec2b10cb61.tar.gz
linux-efc77e8107c5c0b301686d52bd11e0ec2b10cb61.tar.bz2
linux-efc77e8107c5c0b301686d52bd11e0ec2b10cb61.zip
crypto: arm/sha512 - Make sha512_arm_final static
Fix sparse warning: arch/arm/crypto/sha512-glue.c:40:5: warning: symbol 'sha512_arm_final' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/crypto/sha512-glue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/crypto/sha512-glue.c b/arch/arm/crypto/sha512-glue.c
index 86540cd4a6fa..23fc3813a91b 100644
--- a/arch/arm/crypto/sha512-glue.c
+++ b/arch/arm/crypto/sha512-glue.c
@@ -37,7 +37,7 @@ int sha512_arm_update(struct shash_desc *desc, const u8 *data,
(sha512_block_fn *)sha512_block_data_order);
}
-int sha512_arm_final(struct shash_desc *desc, u8 *out)
+static int sha512_arm_final(struct shash_desc *desc, u8 *out)
{
sha512_base_do_finalize(desc,
(sha512_block_fn *)sha512_block_data_order);