crypto: lib/chacha20poly1305 - Add missing function declaration
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 8 Jul 2020 02:41:13 +0000 (12:41 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 16 Jul 2020 11:49:04 +0000 (21:49 +1000)
This patch adds a declaration for chacha20poly1305_selftest to
silence a sparse warning.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/chacha20poly1305.h
lib/crypto/chacha20poly1305.c

index 234ee28..d2ac3ff 100644 (file)
@@ -45,4 +45,6 @@ bool chacha20poly1305_decrypt_sg_inplace(struct scatterlist *src, size_t src_len
                                         const u64 nonce,
                                         const u8 key[CHACHA20POLY1305_KEY_SIZE]);
 
+bool chacha20poly1305_selftest(void);
+
 #endif /* __CHACHA20POLY1305_H */
index ad0699c..431e042 100644 (file)
@@ -21,8 +21,6 @@
 
 #define CHACHA_KEY_WORDS       (CHACHA_KEY_SIZE / sizeof(u32))
 
-bool __init chacha20poly1305_selftest(void);
-
 static void chacha_load_key(u32 *k, const u8 *in)
 {
        k[0] = get_unaligned_le32(in);