Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2580474iog; Sun, 26 Jun 2022 20:51:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uJCiQozPn1Tf7dbkzdBW+KJD07u+vWkMMHhOt23kwmAVhq2l/ic7HYc2oEchxnIMKlEByn X-Received: by 2002:a17:906:1001:b0:715:8356:d4da with SMTP id 1-20020a170906100100b007158356d4damr11394333ejm.10.1656301896470; Sun, 26 Jun 2022 20:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656301896; cv=none; d=google.com; s=arc-20160816; b=w9iodohJoE1Equ0eytBTuUcZyy4SQ5vJnXyf0N8U3/RBymXw2l/wM6B9v/1Qs0bf38 xv+XOtlorguN6+kcDkbk5tqJG30hKv2Tdm1AKH0rOQ6mUzVd7OagdML+Iu3jCwd+Argw SbfeX+BXHkW4IdV7i0sUc9rSk0ZqvYY/bNAfr06hDMik5gYY/lx3Ml4ZecNLhXaXwuGU vHPqO1nIrSXIcu9RKwHbhhDSaGSdtooQgaxivfLPpXHoSzdXWcNYuOEGMDGQGMfwC1wH O2BuAlmLcv5pcyZHItqReg06djCA3fLiPrizVdAq8nglnr08AyDeG9R5MI/kbzpz8YH7 Xquw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=ajuO5et1QTaV5V0SGlVvuTmjUH0Sb8He+rTuCFFfMus=; b=w0cSQf7iStsNVI3K8BD7rw1hdeosO/UybUFYOawUbZidET33LjmLDnx5RKBVNBQ4Zb cwu67gTnGXfZfK6jjGRbrVIIpCori88pfh62BfmuDLK34P9Mu5IFQLJz1z8aC7MMn7ud I0sP/t2wCsMeCcTaQyJ78c2oSB8Nk/Q8tQ4DarwHELRx41J3RmAemfmThCndiEjVOD7Q TJ5nCRJ2nOiDipCoH5nHO56pLwJHgKD31Q0bGxAElAdj3EZmICy+Tfo/6r5r32O2JgS+ sAhmrS1U5ujfbHLfvHSGaR4aH2estLH7lePFRv6lEdBereDdV8yuyLgbRivAAtVVpXuZ TSOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m18-20020a056402431200b00435717fc51bsi12824348edc.457.2022.06.26.20.51.12; Sun, 26 Jun 2022 20:51:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229468AbiF0DDN (ORCPT + 99 others); Sun, 26 Jun 2022 23:03:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232833AbiF0DCy (ORCPT ); Sun, 26 Jun 2022 23:02:54 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EF48F5F8B for ; Sun, 26 Jun 2022 20:02:48 -0700 (PDT) Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxP0zWHbliaZ5fAA--.42965S2; Mon, 27 Jun 2022 11:02:46 +0800 (CST) From: Tiezhu Yang To: Andrew Morton Cc: Xuefeng Li , linux-kernel@vger.kernel.org Subject: [PATCH] lib: Make LZ4_decompress_safe_forceExtDict() static Date: Mon, 27 Jun 2022 11:02:45 +0800 Message-Id: <1656298965-8698-1-git-send-email-yangtiezhu@loongson.cn> X-Mail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evJa73UjIFyTuYvjfUnpnQUUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org LZ4_decompress_safe_forceExtDict() is only used in lib/lz4/lz4_decompress.c, make it static to fix the build warning about "no previous prototype" [1]. [1] https://lore.kernel.org/lkml/202206260948.akgsho1q-lkp@intel.com/ Reported-by: kernel test robot Signed-off-by: Tiezhu Yang --- lib/lz4/lz4_decompress.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/lz4/lz4_decompress.c b/lib/lz4/lz4_decompress.c index fd1728d..59fe69a 100644 --- a/lib/lz4/lz4_decompress.c +++ b/lib/lz4/lz4_decompress.c @@ -507,9 +507,9 @@ static int LZ4_decompress_safe_withSmallPrefix(const char *source, char *dest, (BYTE *)dest - prefixSize, NULL, 0); } -int LZ4_decompress_safe_forceExtDict(const char *source, char *dest, - int compressedSize, int maxOutputSize, - const void *dictStart, size_t dictSize) +static int LZ4_decompress_safe_forceExtDict(const char *source, char *dest, + int compressedSize, int maxOutputSize, + const void *dictStart, size_t dictSize) { return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, -- 2.1.0