From: kbuild test robot <lkp@intel.com>
To: Benjamin Warnke <4bwarnke@informatik.uni-hamburg.de>
Cc: kbuild-all@01.org,
Linux Crypto Mailing List <linux-crypto@vger.kernel.org>,
linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au,
davem@davemloft.net, minchan@kernel.org, ngupta@vflare.org,
Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Subject: [RFC PATCH] crypto: zbewalgo_stat_combination[] can be static
Date: Fri, 23 Mar 2018 17:36:39 +0800 [thread overview]
Message-ID: <20180323093639.GA54803@lkp-wsx02> (raw)
In-Reply-To: <1B59F77F-1AD8-484A-BA18-255502527323@informatik.uni-hamburg.de>
Fixes: 7ba8785b6091 ("crypto: add zBeWalgo to crypto-api")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
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
prev parent reply other threads:[~2018-03-23 9:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-20 14:04 [PATCH 2/5 v4] crypto: add zBeWalgo to crypto-api Benjamin Warnke
2018-03-23 9:36 ` kbuild test robot
2018-03-23 9:36 ` kbuild test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180323093639.GA54803@lkp-wsx02 \
--to=lkp@intel.com \
--cc=4bwarnke@informatik.uni-hamburg.de \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=kbuild-all@01.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=minchan@kernel.org \
--cc=ngupta@vflare.org \
--cc=sergey.senozhatsky.work@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox