From a78ae6e364aea8aec3996de274c4f5bc98e1d771 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Wed, 18 Mar 2026 23:17:19 -0700 Subject: [PATCH] lib/crypto: gf128hash: Remove unused content from ghash.h Now that the structures in are no longer used, remove them. Since this leaves as just containing constants, include it from to deduplicate these definitions. Acked-by: Ard Biesheuvel Link: https://lore.kernel.org/r/20260319061723.1140720-19-ebiggers@kernel.org Signed-off-by: Eric Biggers --- include/crypto/gf128hash.h | 3 +-- include/crypto/ghash.h | 12 ------------ 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/include/crypto/gf128hash.h b/include/crypto/gf128hash.h index 0bc649d01e12..41c557d55965 100644 --- a/include/crypto/gf128hash.h +++ b/include/crypto/gf128hash.h @@ -8,11 +8,10 @@ #ifndef _CRYPTO_GF128HASH_H #define _CRYPTO_GF128HASH_H +#include #include #include -#define GHASH_BLOCK_SIZE 16 -#define GHASH_DIGEST_SIZE 16 #define POLYVAL_BLOCK_SIZE 16 #define POLYVAL_DIGEST_SIZE 16 diff --git a/include/crypto/ghash.h b/include/crypto/ghash.h index 043d938e9a2c..d187e5af9925 100644 --- a/include/crypto/ghash.h +++ b/include/crypto/ghash.h @@ -6,19 +6,7 @@ #ifndef __CRYPTO_GHASH_H__ #define __CRYPTO_GHASH_H__ -#include - #define GHASH_BLOCK_SIZE 16 #define GHASH_DIGEST_SIZE 16 -struct gf128mul_4k; - -struct ghash_ctx { - struct gf128mul_4k *gf128; -}; - -struct ghash_desc_ctx { - u8 buffer[GHASH_BLOCK_SIZE]; -}; - #endif