Skip to contentSkip to conversation

erofs: make z_erofs_crypto[] static

PATCH In review Ferry Meng 3 participants 3 messages Dec 16, 2025 – Jan 21 EROFS file system

lore
Share & tools
lore

Ferry Meng

author
#0 lore raw

PATCH 1/1 erofs: make z_erofs_crypto[] static

Reduce the scope of 'z_erofs_crypto[]' that is not used outside of 'decompressor_crypto.c'.

---
 fs/erofs/decompressor_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/erofs/decompressor_crypto.c +1 -1
index 97b77ab64432..ab0c0032d199 100644
@@ -61,7 +61,7 @@ struct z_erofs_crypto_engine {
 	struct crypto_acomp *tfm;
 };
 
-struct z_erofs_crypto_engine *z_erofs_crypto[Z_EROFS_COMPRESSION_MAX] = {
+static struct z_erofs_crypto_engine *z_erofs_crypto[Z_EROFS_COMPRESSION_MAX] = {
 	[Z_EROFS_COMPRESSION_LZ4] = (struct z_erofs_crypto_engine[]) {
 		{},
 	},
Signature · 1 line
2.19.1.6.gb485710b