erofs: make z_erofs_crypto[] static
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'.
Reported-by kernel test robot <[email protected]>
Signed-off-by Ferry Meng <[email protected]>
--- fs/erofs/decompressor_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/erofs/decompressor_crypto.c +1 -1
@@ -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
Quoted 6 lines · Ferry Meng
Reduce the scope of 'z_erofs_crypto[]' that is not used outside of '
decompressor_crypto.c'.Reported-by kernel test robot <[email protected]>Signed-off-by Ferry Meng <[email protected]>
Reviewed-by Gao Xiang <[email protected]>
Thanks,
Gao Xiang
Quoted 6 lines · Ferry Meng
Reduce the scope of 'z_erofs_crypto[]' that is not used outside of '
decompressor_crypto.c'.Reported-by kernel test robot <[email protected]>Signed-off-by Ferry Meng <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,