1 From 64e1062b2371cb8d6126d4e970832365a1a84562 Mon Sep 17 00:00:00 2001
2 From: Christian Lamparter <chunkeey@gmail.com>
3 Date: Wed, 4 Oct 2017 01:00:12 +0200
4 Subject: [PATCH 20/25] crypto: crypto4xx - fix various warnings
6 crypto4xx_core.c:179:6: warning: symbol 'crypto4xx_free_state_record'
7 was not declared. Should it be static?
8 crypto4xx_core.c:331:5: warning: symbol 'crypto4xx_get_n_gd'
9 was not declared. Should it be static?
10 crypto4xx_core.c:652:6: warning: symbol 'crypto4xx_return_pd'
11 was not declared. Should it be static?
13 crypto4xx_return_pd() is not used by anything. Therefore it is removed.
15 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
16 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 drivers/crypto/amcc/crypto4xx_core.c | 16 +++-------------
19 1 file changed, 3 insertions(+), 13 deletions(-)
21 --- a/drivers/crypto/amcc/crypto4xx_core.c
22 +++ b/drivers/crypto/amcc/crypto4xx_core.c
23 @@ -176,7 +176,7 @@ u32 crypto4xx_alloc_state_record(struct
27 -void crypto4xx_free_state_record(struct crypto4xx_ctx *ctx)
28 +static void crypto4xx_free_state_record(struct crypto4xx_ctx *ctx)
30 if (ctx->state_record != NULL)
31 dma_free_coherent(ctx->dev->core_dev->device,
32 @@ -322,10 +322,11 @@ static inline void crypto4xx_destroy_gdr
33 * when this function is called.
34 * preemption or interrupt must be disabled
36 -u32 crypto4xx_get_n_gd(struct crypto4xx_device *dev, int n)
37 +static u32 crypto4xx_get_n_gd(struct crypto4xx_device *dev, int n)
42 if (n >= PPC4XX_NUM_GD)
43 return ERING_WAS_FULL;
45 @@ -625,17 +626,6 @@ static void crypto4xx_stop_all(struct cr
49 -void crypto4xx_return_pd(struct crypto4xx_device *dev,
50 - u32 pd_entry, struct ce_pd *pd,
51 - struct pd_uinfo *pd_uinfo)
53 - /* irq should be already disabled */
54 - dev->pdr_head = pd_entry;
56 - pd->pd_ctl_len.w = 0;
57 - pd_uinfo->state = PD_ENTRY_FREE;
60 static u32 get_next_gd(u32 current)
62 if (current != PPC4XX_LAST_GD)