]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
erofs: make z_erofs_crypto[] static
authorFerry Meng <mengferry@linux.alibaba.com>
Tue, 16 Dec 2025 08:21:41 +0000 (16:21 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 22 Jan 2026 16:00:18 +0000 (00:00 +0800)
Reduce the scope of 'z_erofs_crypto[]' that is not used outside of
'decompressor_crypto.c'.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202512102025.4mWeBSsf-lkp@intel.com/
Signed-off-by: Ferry Meng <mengferry@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/decompressor_crypto.c

index 5ef6f71d3b7f362bb8f347af10e88d9bed91fb4e..77c6bd535df353030256d0b32dfdacd78dd945f6 100644 (file)
@@ -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[]) {
                {},
        },