cf3724a4992769a230b9192f7eb338bf4786194a
[openwrt/staging/pepe2k.git] /
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Herbert Xu <herbert@gondor.apana.org.au>
3 Date: Tue, 25 Aug 2020 11:23:00 +1000
4 Subject: [PATCH] crypto: arm/poly1305 - Add prototype for poly1305_blocks_neon
5
6 commit 51982ea02aef972132eb35c583d3e4c5b83166e5 upstream.
7
8 This patch adds a prototype for poly1305_blocks_neon to slience
9 a compiler warning:
10
11 CC [M] arch/arm/crypto/poly1305-glue.o
12 ../arch/arm/crypto/poly1305-glue.c:25:13: warning: no previous prototype for `poly1305_blocks_neon' [-Wmissing-prototypes]
13 void __weak poly1305_blocks_neon(void *state, const u8 *src, u32 len, u32 hibit)
14 ^~~~~~~~~~~~~~~~~~~~
15
16 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 Acked-by: Jason A. Donenfeld <Jason@zx2c4.com>
18 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
20 ---
21 arch/arm/crypto/poly1305-glue.c | 1 +
22 1 file changed, 1 insertion(+)
23
24 --- a/arch/arm/crypto/poly1305-glue.c
25 +++ b/arch/arm/crypto/poly1305-glue.c
26 @@ -20,6 +20,7 @@
27
28 void poly1305_init_arm(void *state, const u8 *key);
29 void poly1305_blocks_arm(void *state, const u8 *src, u32 len, u32 hibit);
30 +void poly1305_blocks_neon(void *state, const u8 *src, u32 len, u32 hibit);
31 void poly1305_emit_arm(void *state, u8 *digest, const u32 *nonce);
32
33 void __weak poly1305_blocks_neon(void *state, const u8 *src, u32 len, u32 hibit)