From: Ferry Meng Date: Tue, 16 Dec 2025 08:21:41 +0000 (+0800) Subject: erofs: make z_erofs_crypto[] static X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cc7d0c926cc80151bdf803f3cb6f7476f648d73;p=thirdparty%2Fkernel%2Flinux.git erofs: make z_erofs_crypto[] static Reduce the scope of 'z_erofs_crypto[]' that is not used outside of 'decompressor_crypto.c'. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202512102025.4mWeBSsf-lkp@intel.com/ Signed-off-by: Ferry Meng Reviewed-by: Gao Xiang Reviewed-by: Chao Yu Signed-off-by: Gao Xiang --- diff --git a/fs/erofs/decompressor_crypto.c b/fs/erofs/decompressor_crypto.c index 5ef6f71d3b7f3..77c6bd535df35 100644 --- a/fs/erofs/decompressor_crypto.c +++ b/fs/erofs/decompressor_crypto.c @@ -62,7 +62,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[]) { {}, },