From patchwork Thu Jul 1 01:56:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12353399 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_RED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07372C11F66 for ; Thu, 1 Jul 2021 01:56:16 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id AED9161468 for ; Thu, 1 Jul 2021 01:56:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AED9161468 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 32C4D8D0276; Wed, 30 Jun 2021 21:56:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3035D8D024F; Wed, 30 Jun 2021 21:56:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1CB7A8D0276; Wed, 30 Jun 2021 21:56:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0155.hostedemail.com [216.40.44.155]) by kanga.kvack.org (Postfix) with ESMTP id EBF3C8D024F for ; Wed, 30 Jun 2021 21:56:14 -0400 (EDT) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id C0C03181AF5C1 for ; Thu, 1 Jul 2021 01:56:14 +0000 (UTC) X-FDA: 78312353868.05.0872185 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf27.hostedemail.com (Postfix) with ESMTP id 78BB8700009B for ; Thu, 1 Jul 2021 01:56:14 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 7DFFE61418; Thu, 1 Jul 2021 01:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1625104573; bh=YFimTB8Trav/BodnvstdleU+peLP5UK6Zk8PfTKBsAE=; h=Date:From:To:Subject:In-Reply-To:From; b=cMHkhIwCEyxFFt/O0sCWF+GFblcKFbtSTwg7O9NPG552I7uJ6nPjQYxmNWnVtONLT RQdS+nnf4K6zudTf2BPqTt3ASIV8oSBkTKeLXOv9iBOGSOiVYH9prB9beiB+wIyz8L ZvE2xOfuOOs5EzP9yN/rUUjTD9jAvtbGiFNZCO3Q= Date: Wed, 30 Jun 2021 18:56:13 -0700 From: Andrew Morton To: akpm@linux-foundation.org, hsiangkao@redhat.com, joe@perches.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, terrelln@fb.com, thisisrast7@gmail.com, torvalds@linux-foundation.org Subject: [patch 171/192] lz4_decompress: declare LZ4_decompress_safe_withPrefix64k static Message-ID: <20210701015613.APX-MDiYp%akpm@linux-foundation.org> In-Reply-To: <20210630184624.9ca1937310b0dd5ce66b30e7@linux-foundation.org> User-Agent: s-nail v14.8.16 Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=cMHkhIwC; spf=pass (imf27.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Stat-Signature: sy5p79nasxhwz9c7z49huxjehb85dia3 X-Rspamd-Queue-Id: 78BB8700009B X-Rspamd-Server: rspam06 X-HE-Tag: 1625104574-73824 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Rajat Asthana Subject: lz4_decompress: declare LZ4_decompress_safe_withPrefix64k static Declare LZ4_decompress_safe_withPrefix64k as static to fix sparse warning: > warning: symbol 'LZ4_decompress_safe_withPrefix64k' was not declared. > Should it be static? Link: https://lkml.kernel.org/r/20210511154345.610569-1-thisisrast7@gmail.com Signed-off-by: Rajat Asthana Reviewed-by: Nick Terrell Cc: Gao Xiang Cc: Joe Perches Signed-off-by: Andrew Morton --- lib/lz4/lz4_decompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/lib/lz4/lz4_decompress.c~lz4_decompress-declare-lz4_decompress_safe_withprefix64k-static +++ a/lib/lz4/lz4_decompress.c @@ -481,7 +481,7 @@ int LZ4_decompress_fast(const char *sour /* ===== Instantiate a few more decoding cases, used more than once. ===== */ -int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest, +static int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest, int compressedSize, int maxOutputSize) { return LZ4_decompress_generic(source, dest,