[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210408125429.199592-1-zhaoxuehui1@huawei.com>
Date: Thu, 8 Apr 2021 20:54:29 +0800
From: Zhao Xuehui <zhaoxuehui1@...wei.com>
To: <gustavoars@...nel.org>, <sfr@...b.auug.org.au>,
<ojeda@...nel.org>, <nathan@...nel.org>, <ndesaulniers@...gle.com>,
<linux-kernel@...r.kernel.org>
CC: <yangjihong1@...wei.com>, <zhangjinhao2@...wei.com>,
<zhaoxuehui1@...wei.com>
Subject: [PATCH -next] lib: zstd: Make symbol 'HUF_compressWeights_wksp' static
The symbol 'HUF_compressWeights_wksp' is not used outside of
huf_compress.c, so this commit marks it static.
Signed-off-by: Zhao Xuehui <zhaoxuehui1@...wei.com>
---
lib/zstd/huf_compress.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/zstd/huf_compress.c b/lib/zstd/huf_compress.c
index fd32838c185f..1e5e001c3d41 100644
--- a/lib/zstd/huf_compress.c
+++ b/lib/zstd/huf_compress.c
@@ -79,7 +79,8 @@ unsigned HUF_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxS
* Note : all elements within weightTable are supposed to be <= HUF_TABLELOG_MAX.
*/
#define MAX_FSE_TABLELOG_FOR_HUFF_HEADER 6
-size_t HUF_compressWeights_wksp(void *dst, size_t dstSize, const void *weightTable, size_t wtSize, void *workspace, size_t workspaceSize)
+static size_t HUF_compressWeights_wksp(void *dst, size_t dstSize, const void *weightTable,
+ size_t wtSize, void *workspace, size_t workspaceSize)
{
BYTE *const ostart = (BYTE *)dst;
BYTE *op = ostart;
Powered by blists - more mailing lists