Fixes: 7ba8785b6091 ("crypto: add zBeWalgo to crypto-api") Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx> --- zbewalgo.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/zbewalgo/zbewalgo.c b/lib/zbewalgo/zbewalgo.c index ef922bc2..323dce4 100644 --- a/lib/zbewalgo/zbewalgo.c +++ b/lib/zbewalgo/zbewalgo.c @@ -67,8 +67,8 @@ #include "bitshuffle.h" #include "huffman.h" -atomic64_t zbewalgo_stat_combination[256]; -atomic64_t zbewalgo_stat_count[256]; +static atomic64_t zbewalgo_stat_combination[256]; +static atomic64_t zbewalgo_stat_count[256]; unsigned long zbewalgo_max_output_size; @@ -76,8 +76,8 @@ unsigned long zbewalgo_max_output_size; * all currently available combination sequences of algorithms */ struct zbewalgo_combination - zbewalgo_combinations[ZBEWALGO_COMBINATION_MAX_ACTIVE]; -u8 zbewalgo_combinations_count; +static zbewalgo_combinations[ZBEWALGO_COMBINATION_MAX_ACTIVE]; +static u8 zbewalgo_combinations_count; /* * maximum required wrkmem for compression and decompression for each instance @@ -89,19 +89,19 @@ static u32 zbewalgo_wrkmem_size; * compression can be aborted if the data is smaller than this threshold to * speed up the algorithm. */ -u16 zbewalgo_early_abort_size; +static u16 zbewalgo_early_abort_size; /* * each cpu has its own independent compression history to avoid locks */ -struct zbewalgo_main_data __percpu *zbewalgo_main_data_ptr; +static struct zbewalgo_main_data __percpu *zbewalgo_main_data_ptr; /* * all available algorithms */ struct zbewalgo_alg - zbewalgo_base_algorithms[ZBEWALGO_MAX_BASE_ALGORITHMS]; -u8 zbewalgo_base_algorithms_count; +static zbewalgo_base_algorithms[ZBEWALGO_MAX_BASE_ALGORITHMS]; +static u8 zbewalgo_base_algorithms_count; /* * returns the required size of wrkmem for compression and decompression