diff options
author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-09-18 20:52:44 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-09-22 18:32:48 +0800 |
commit | 8d46a5c872946ab5e1cc8ff54cac5b83d05b848d (patch) | |
tree | 85b9c6af27dd1c74f892db86d997a94015d64c9a /drivers/crypto | |
parent | 7514e3688811e610640ec2201ca14dfebfe13442 (diff) | |
download | linux-8d46a5c872946ab5e1cc8ff54cac5b83d05b848d.tar.gz linux-8d46a5c872946ab5e1cc8ff54cac5b83d05b848d.tar.bz2 linux-8d46a5c872946ab5e1cc8ff54cac5b83d05b848d.zip |
crypto: sun4i-ss - mark sun4i_hash() static
We get 1 warning when building kernel with W=1:
drivers/crypto/sunxi-ss/sun4i-ss-hash.c:168:5: warning: no previous prototype for 'sun4i_hash' [-Wmissing-prototypes]
In fact, this function is only used in the file in which it is
declared and don't need a declaration, but can be made static.
So this patch marks it 'static'.
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/sunxi-ss/sun4i-ss-hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-hash.c b/drivers/crypto/sunxi-ss/sun4i-ss-hash.c index 1afeb8e5f709..0de2f62d51ff 100644 --- a/drivers/crypto/sunxi-ss/sun4i-ss-hash.c +++ b/drivers/crypto/sunxi-ss/sun4i-ss-hash.c @@ -165,7 +165,7 @@ int sun4i_hash_import_sha1(struct ahash_request *areq, const void *in) * write remaining data in op->buf * final state op->len=56 */ -int sun4i_hash(struct ahash_request *areq) +static int sun4i_hash(struct ahash_request *areq) { u32 v, ivmode = 0; unsigned int i = 0; |