From patchwork Fri Mar 23 09:36:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 10303101 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CF18960386 for ; Fri, 23 Mar 2018 09:37:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C001B28D52 for ; Fri, 23 Mar 2018 09:37:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B44EC28D5B; Fri, 23 Mar 2018 09:37:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A77128D59 for ; Fri, 23 Mar 2018 09:37:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752495AbeCWJhS (ORCPT ); Fri, 23 Mar 2018 05:37:18 -0400 Received: from mga07.intel.com ([134.134.136.100]:14643 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752387AbeCWJhR (ORCPT ); Fri, 23 Mar 2018 05:37:17 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Mar 2018 02:37:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,349,1517904000"; d="scan'208";a="214190309" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga005.fm.intel.com with ESMTP; 23 Mar 2018 02:37:14 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1ezJ8L-0003sA-Vu; Fri, 23 Mar 2018 17:37:14 +0800 Date: Fri, 23 Mar 2018 17:36:39 +0800 From: kbuild test robot To: Benjamin Warnke <4bwarnke@informatik.uni-hamburg.de> Cc: kbuild-all@01.org, Linux Crypto Mailing List , linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, minchan@kernel.org, ngupta@vflare.org, Sergey Senozhatsky Subject: [RFC PATCH] crypto: zbewalgo_stat_combination[] can be static Message-ID: <20180323093639.GA54803@lkp-wsx02> References: <1B59F77F-1AD8-484A-BA18-255502527323@informatik.uni-hamburg.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1B59F77F-1AD8-484A-BA18-255502527323@informatik.uni-hamburg.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes: 7ba8785b6091 ("crypto: add zBeWalgo to crypto-api") Signed-off-by: Fengguang Wu --- 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