Skip to content

Commit

Permalink
crypto: lib/blake2s - Move selftest prototype into header file
Browse files Browse the repository at this point in the history
This patch fixes a missing prototype warning on blake2s_selftest.

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
herbertx committed Dec 4, 2020
1 parent f3456b9 commit ce0d5d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions include/crypto/internal/blake2s.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/crypto/blake2s-selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2015-2019 Jason A. Donenfeld <[email protected]>. All Rights Reserved.
*/

#include <crypto/blake2s.h>
#include <crypto/internal/blake2s.h>
#include <linux/string.h>

/*
Expand Down
2 changes: 0 additions & 2 deletions lib/crypto/blake2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ce0d5d6

Please sign in to comment.