]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: ahash - make hash walk functions private to ahash.c
authorEric Biggers <ebiggers@google.com>
Fri, 27 Dec 2024 22:48:29 +0000 (14:48 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 4 Jan 2025 00:53:47 +0000 (08:53 +0800)
commit7fa4817340161a34d5b4ca39e96d6318d37c1d3a
tree4dd43e8fcb7523af4c44c1ba330b5b5c7a9885af
parent9ff6e943bce67d125781fe4780a5d6f072dc44c0
crypto: ahash - make hash walk functions private to ahash.c

Due to the removal of the Niagara2 SPU driver, crypto_hash_walk_first(),
crypto_hash_walk_done(), crypto_hash_walk_last(), and struct
crypto_hash_walk are now only used in crypto/ahash.c.  Therefore, make
them all private to crypto/ahash.c.  I.e. un-export the two functions
that were exported, make the functions static, and move the struct
definition to the .c file.  As part of this, move the functions to
earlier in the file to avoid needing to add forward declarations.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ahash.c
include/crypto/internal/hash.h