cd61ac719bcac35ef58c7478d0b3103e093fcdef
[openwrt/staging/jow.git] /
1 From 886c251fd4ca40a27697afec7bc44c115e803d78 Mon Sep 17 00:00:00 2001
2 From: Christian Lamparter <chunkeey@googlemail.com>
3 Date: Fri, 25 Aug 2017 15:47:17 +0200
4 Subject: [PATCH 04/25] crypto: crypto4xx - remove extern statement before
5 function declaration
6
7 All function declarations are "extern" by default, there is no need to
8 specify it explicitly.
9
10 For C99 states in 6.2.2.5:
11 "If the declaration of an identifier for a function has no
12 storage-class specifier, its linkage is determined exactly
13 as if it were declared with the storage-class specifier
14 extern."
15
16 Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
17 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 ---
19 drivers/crypto/amcc/crypto4xx_core.h | 48 ++++++++++++++++++------------------
20 1 file changed, 24 insertions(+), 24 deletions(-)
21
22 --- a/drivers/crypto/amcc/crypto4xx_core.h
23 +++ b/drivers/crypto/amcc/crypto4xx_core.h
24 @@ -157,28 +157,28 @@ static inline struct crypto4xx_alg *cryp
25 return container_of(x, struct crypto4xx_alg, alg.u.cipher);
26 }
27
28 -extern int crypto4xx_alloc_sa(struct crypto4xx_ctx *ctx, u32 size);
29 -extern void crypto4xx_free_sa(struct crypto4xx_ctx *ctx);
30 -extern void crypto4xx_free_ctx(struct crypto4xx_ctx *ctx);
31 -extern u32 crypto4xx_alloc_state_record(struct crypto4xx_ctx *ctx);
32 -extern u32 get_dynamic_sa_offset_state_ptr_field(struct crypto4xx_ctx *ctx);
33 -extern u32 get_dynamic_sa_offset_key_field(struct crypto4xx_ctx *ctx);
34 -extern u32 get_dynamic_sa_iv_size(struct crypto4xx_ctx *ctx);
35 -extern void crypto4xx_memcpy_le(unsigned int *dst,
36 - const unsigned char *buf, int len);
37 -extern u32 crypto4xx_build_pd(struct crypto_async_request *req,
38 - struct crypto4xx_ctx *ctx,
39 - struct scatterlist *src,
40 - struct scatterlist *dst,
41 - unsigned int datalen,
42 - void *iv, u32 iv_len);
43 -extern int crypto4xx_setkey_aes_cbc(struct crypto_ablkcipher *cipher,
44 - const u8 *key, unsigned int keylen);
45 -extern int crypto4xx_encrypt(struct ablkcipher_request *req);
46 -extern int crypto4xx_decrypt(struct ablkcipher_request *req);
47 -extern int crypto4xx_sha1_alg_init(struct crypto_tfm *tfm);
48 -extern int crypto4xx_hash_digest(struct ahash_request *req);
49 -extern int crypto4xx_hash_final(struct ahash_request *req);
50 -extern int crypto4xx_hash_update(struct ahash_request *req);
51 -extern int crypto4xx_hash_init(struct ahash_request *req);
52 +int crypto4xx_alloc_sa(struct crypto4xx_ctx *ctx, u32 size);
53 +void crypto4xx_free_sa(struct crypto4xx_ctx *ctx);
54 +void crypto4xx_free_ctx(struct crypto4xx_ctx *ctx);
55 +u32 crypto4xx_alloc_state_record(struct crypto4xx_ctx *ctx);
56 +u32 get_dynamic_sa_offset_state_ptr_field(struct crypto4xx_ctx *ctx);
57 +u32 get_dynamic_sa_offset_key_field(struct crypto4xx_ctx *ctx);
58 +u32 get_dynamic_sa_iv_size(struct crypto4xx_ctx *ctx);
59 +void crypto4xx_memcpy_le(unsigned int *dst,
60 + const unsigned char *buf, int len);
61 +u32 crypto4xx_build_pd(struct crypto_async_request *req,
62 + struct crypto4xx_ctx *ctx,
63 + struct scatterlist *src,
64 + struct scatterlist *dst,
65 + unsigned int datalen,
66 + void *iv, u32 iv_len);
67 +int crypto4xx_setkey_aes_cbc(struct crypto_ablkcipher *cipher,
68 + const u8 *key, unsigned int keylen);
69 +int crypto4xx_encrypt(struct ablkcipher_request *req);
70 +int crypto4xx_decrypt(struct ablkcipher_request *req);
71 +int crypto4xx_sha1_alg_init(struct crypto_tfm *tfm);
72 +int crypto4xx_hash_digest(struct ahash_request *req);
73 +int crypto4xx_hash_final(struct ahash_request *req);
74 +int crypto4xx_hash_update(struct ahash_request *req);
75 +int crypto4xx_hash_init(struct ahash_request *req);
76 #endif