crypto: lib/blake2s - Move selftest prototype into header file
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Nov 2020 05:43:18 +0000 (16:43 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Dec 2020 07:13:14 +0000 (18:13 +1100)
This patch fixes a missing prototype warning on blake2s_selftest.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/internal/blake2s.h
lib/crypto/blake2s-selftest.c
lib/crypto/blake2s.c

index 74ff77032e526e46b2e59851e3ef24c7b9976101..6e376ae6b6b58db536281eef674d6e61182c5c1d 100644 (file)
@@ -16,6 +16,8 @@ void blake2s_compress_generic(struct blake2s_state *state,const u8 *block,
 void blake2s_compress_arch(struct blake2s_state *state,const u8 *block,
                           size_t nblocks, const u32 inc);
 
+bool blake2s_selftest(void);
+
 static inline void blake2s_set_lastblock(struct blake2s_state *state)
 {
        state->f[0] = -1;
index 79ef404a990d2a20bdc030a924e35f3a545d89e4..5d9ea53be9736d630df30bffbc4f2db6bfef804b 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
  */
 
-#include <crypto/blake2s.h>
+#include <crypto/internal/blake2s.h>
 #include <linux/string.h>
 
 /*
index 41025a30c524c178ae95435d448880d8cabfeb5a..6a4b6b78d630fce007df973e563e5e0c82c6fc3c 100644 (file)
@@ -17,8 +17,6 @@
 #include <linux/bug.h>
 #include <asm/unaligned.h>
 
-bool blake2s_selftest(void);
-
 void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen)
 {
        const size_t fill = BLAKE2S_BLOCK_SIZE - state->buflen;