From nobody Sat Feb 7 22:21:04 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C806FEB64D8 for ; Fri, 16 Jun 2023 17:00:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345302AbjFPRAo (ORCPT ); Fri, 16 Jun 2023 13:00:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346225AbjFPRAC (ORCPT ); Fri, 16 Jun 2023 13:00:02 -0400 Received: from imap4.hz.codethink.co.uk (imap4.hz.codethink.co.uk [188.40.203.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C85E24699 for ; Fri, 16 Jun 2023 09:58:36 -0700 (PDT) Received: from [167.98.27.226] (helo=rainbowdash) by imap4.hz.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1qACmQ-00G7aQ-3M; Fri, 16 Jun 2023 17:58:34 +0100 Received: from ben by rainbowdash with local (Exim 4.96) (envelope-from ) id 1qACmP-000IB5-2T; Fri, 16 Jun 2023 17:58:33 +0100 From: Ben Dooks To: linux-kernel@vger.kernel.org Cc: Ben Dooks Subject: [PATCH] lib: zlib: make __gunzip always static Date: Fri, 16 Jun 2023 17:58:32 +0100 Message-Id: <20230616165832.69866-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The __gunzip() code looks like it has not been referenced outside of lib/decompress_inflate.c so make it always static to avoid the following warning: lib/decompress_inflate.c:42:17: warning: symbol '__gunzip' was not declared= . Should it be static? Signed-off-by: Ben Dooks --- lib/decompress_inflate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/decompress_inflate.c b/lib/decompress_inflate.c index 6130c42b8e59..e19199f4a684 100644 --- a/lib/decompress_inflate.c +++ b/lib/decompress_inflate.c @@ -39,7 +39,7 @@ static long INIT nofill(void *buffer, unsigned long len) } =20 /* Included from initramfs et al code */ -STATIC int INIT __gunzip(unsigned char *buf, long len, +static int INIT __gunzip(unsigned char *buf, long len, long (*fill)(void*, unsigned long), long (*flush)(void*, unsigned long), unsigned char *out_buf, long out_len, --=20 2.39.2