[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250205121342.344475-1-arnd@kernel.org>
Date: Wed, 5 Feb 2025 13:13:15 +0100
From: Arnd Bergmann <arnd@...nel.org>
To: Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>
Cc: Arnd Bergmann <arnd@...db.de>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Lukas Wunner <lukas@...ner.de>,
Eric Biggers <ebiggers@...gle.com>,
Ard Biesheuvel <ardb@...nel.org>,
Stefan Berger <stefanb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Keith Busch <kbusch@...nel.org>,
linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] crypto: testmgr - drop unused static const arrays
From: Arnd Bergmann <arnd@...db.de>
The ones[] and zeroes[] definitions were previously used by the
rocksoft tests that are now gone. With extra warnings enabled,
gcc now complains about these:
crypto/testmgr.h:6021:17: error: 'ones' defined but not used [-Werror=unused-const-variable=]
6021 | static const u8 ones[4096] = { [0 ... 4095] = 0xff };
| ^~~~
crypto/testmgr.h:6020:17: error: 'zeroes' defined but not used [-Werror=unused-const-variable=]
6020 | static const u8 zeroes[4096] = { [0 ... 4095] = 0 };
| ^~~~~~
Drop them as well.
Fixes: dad9cb81bc30 ("crypto: crc64-rocksoft - remove from crypto API")
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
crypto/testmgr.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/crypto/testmgr.h b/crypto/testmgr.h
index 4ab05046b734..61c7ae731052 100644
--- a/crypto/testmgr.h
+++ b/crypto/testmgr.h
@@ -6017,9 +6017,6 @@ static const struct hash_testvec rmd160_tv_template[] = {
}
};
-static const u8 zeroes[4096] = { [0 ... 4095] = 0 };
-static const u8 ones[4096] = { [0 ... 4095] = 0xff };
-
static const struct hash_testvec crct10dif_tv_template[] = {
{
.plaintext = "abc",
--
2.39.5
Powered by blists - more mailing lists