Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: lib/chacha20poly1305 - Add missing function declaration

This patch adds a declaration for chacha20poly1305_selftest to
silence a sparse warning.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

+2 -2
+2
include/crypto/chacha20poly1305.h
··· 45 45 const u64 nonce, 46 46 const u8 key[CHACHA20POLY1305_KEY_SIZE]); 47 47 48 + bool chacha20poly1305_selftest(void); 49 + 48 50 #endif /* __CHACHA20POLY1305_H */
-2
lib/crypto/chacha20poly1305.c
··· 21 21 22 22 #define CHACHA_KEY_WORDS (CHACHA_KEY_SIZE / sizeof(u32)) 23 23 24 - bool __init chacha20poly1305_selftest(void); 25 - 26 24 static void chacha_load_key(u32 *k, const u8 *in) 27 25 { 28 26 k[0] = get_unaligned_le32(in);