kernel: bump 4.14 to 4.14.114
[openwrt/openwrt.git] / target / linux / apm821xx / patches-4.14 / 020-0020-crypto-crypto4xx-fix-various-warnings.patch
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
5
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?
12
13 crypto4xx_return_pd() is not used by anything. Therefore it is removed.
14
15 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
16 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 ---
18 drivers/crypto/amcc/crypto4xx_core.c | 16 +++-------------
19 1 file changed, 3 insertions(+), 13 deletions(-)
20
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
24 return 0;
25 }
26
27 -void crypto4xx_free_state_record(struct crypto4xx_ctx *ctx)
28 +static void crypto4xx_free_state_record(struct crypto4xx_ctx *ctx)
29 {
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
35 */
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)
38 {
39 u32 retval;
40 u32 tmp;
41 +
42 if (n >= PPC4XX_NUM_GD)
43 return ERING_WAS_FULL;
44
45 @@ -625,17 +626,6 @@ static void crypto4xx_stop_all(struct cr
46 kfree(core_dev);
47 }
48
49 -void crypto4xx_return_pd(struct crypto4xx_device *dev,
50 - u32 pd_entry, struct ce_pd *pd,
51 - struct pd_uinfo *pd_uinfo)
52 -{
53 - /* irq should be already disabled */
54 - dev->pdr_head = pd_entry;
55 - pd->pd_ctl.w = 0;
56 - pd->pd_ctl_len.w = 0;
57 - pd_uinfo->state = PD_ENTRY_FREE;
58 -}
59 -
60 static u32 get_next_gd(u32 current)
61 {
62 if (current != PPC4XX_LAST_GD)