Message ID | 20230920052139.10570-17-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3890389vqi; Tue, 19 Sep 2023 22:26:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhBu91majNFZYFSHqIllD+FA2puHfBJFSRETYuacoBzKxIxspnPjQ/4glJqEMWOAQN+hgD X-Received: by 2002:aca:2117:0:b0:3a7:9837:7148 with SMTP id 23-20020aca2117000000b003a798377148mr1154124oiz.58.1695187566084; Tue, 19 Sep 2023 22:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695187566; cv=none; d=google.com; s=arc-20160816; b=MG1UKD2L40LsHBJvuU/jiefXgWqD7smaZYkVInbvlVaC+XkxL26ILQRNZRrYTjnqz+ rv40hm0atwkYU8qy89Xp7xWm79ljvsW0Wf3lpk+G8XabHLjp+lYlx1zQ/A86IS+fwqRl Ga6zha1twDIMr1webkuvR/wgdPMYChCtswVyoahbyBdpvRIH8w6HWizvmGBnXL+alLkd io75Sm5DURuM3n4jf5ic5LJ91K8K6hQElrz/61Fp8az53IiB7/5K4gtHSF5duNHxMgnE 1o+zCY2zJX67CUOT1w8SIgny+F1TBEpBuZOaUIV/aPk6kbkYGlZosBv5Yv6WQyfzSqJg q11Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=F5img2w0CqZkSGbVt3g9ub4mLFP6v/5RAYKtgYB2Q/E=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=GP2HHcjlngQYknkNWc1BdxiZHVtwNgWxYJ/D1bhxh0DJ82+xV+wuUpleksrp52cgeL Z7yBKNm/eBUAb1XqUUjIUBAnMAQS6hmoGZraVcIbZdySCQmVHxk7hyalJF3FyTiK5VPD FtnXmt1SB5F1uLT3EK4yohuD7kvLdm4QGt2jRDyLu7VS8S/50ieh/J02/2pbCkWljo8Z 6GA0jbZw9P8iB07Q4iFmJ/O14QoLO9P2WkbkcV1jkjNjrN4OgFtdhRCXUhMq5vKCeQFa EUoygcOYyGH6nHX4OFyBIj8M5NRJ+ye/60ZIqqZ6VWoB2Ap/u4nCcb1N5OZbPEAkhzhd 9C7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=L5aRGlqF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id b9-20020a056a000cc900b00690158afc78si11609573pfv.284.2023.09.19.22.26.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 22:26:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=L5aRGlqF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 113D482B9F87; Tue, 19 Sep 2023 22:22:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232889AbjITFWa (ORCPT <rfc822;toshivichauhan@gmail.com> + 26 others); Wed, 20 Sep 2023 01:22:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232598AbjITFVw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 20 Sep 2023 01:21:52 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA94F0 for <linux-kernel@vger.kernel.org>; Tue, 19 Sep 2023 22:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=F5img2w0CqZkSGbVt3g9ub4mLFP6v/5RAYKtgYB2Q/E=; b=L5aRGlqFa0BvSIX4FQsXuUtGBp OZUaS/a7pAbNJRizkQA+IW8AHtukiTmXqXfH/EtK/njEP92In8td/Floa4GhTFj0xDDTd4brC+Dff CDarIkb/srH2GyDq0H5AV/P+EBKbj6gVZ8SVF7ilaSlg17tZuuM4KFS7E5Wk31XdPrfmTU2QzW5jX EpgIZ0ChsKZ/vgSlAE/KFSiNVSA9RUh2tHpn9Ut/pwOkcWu5EJw1MAXMKV/62Xhz6mO0r80f2jQhg A1gXt817fUpvuggYMfoBmwxJWDdw3kZXkqvZDrHXRJ0YWfN3ZQvgUmZQD9S6fzf1zvQ8R+OPuQIO7 Mccgg5Nw==; Received: from [2601:1c2:980:9ec0::9fed] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qipek-001tym-2K; Wed, 20 Sep 2023 05:21:46 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Chris Zankel <chris@zankel.net>, Max Filippov <jcmvbkbc@gmail.com> Subject: [PATCH 16/16] xtensa: boot/lib: add missing prototypes for functions Date: Tue, 19 Sep 2023 22:21:39 -0700 Message-ID: <20230920052139.10570-17-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230920052139.10570-1-rdunlap@infradead.org> References: <20230920052139.10570-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:22:56 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777532997020351998 X-GMAIL-MSGID: 1777532997020351998 |
Series |
xtensa: fix W=1 build warnings
|
|
Commit Message
Randy Dunlap
Sept. 20, 2023, 5:21 a.m. UTC
Add function prototypes for exit(), zalloc(), and gunzip() to the
boot library code.
arch/xtensa/boot/lib/zmem.c:8:6: warning: no previous prototype for 'exit' [-Wmissing-prototypes]
8 | void exit (void)
arch/xtensa/boot/lib/zmem.c:13:7: warning: no previous prototype for 'zalloc' [-Wmissing-prototypes]
13 | void *zalloc(unsigned size)
arch/xtensa/boot/lib/zmem.c:35:6: warning: no previous prototype for 'gunzip' [-Wmissing-prototypes]
35 | void gunzip (void *dst, int dstlen, unsigned char *src, int *lenp)
Fixes: 4bedea945451 ("xtensa: Architecture support for Tensilica Xtensa Part 2")
Fixes: e7d163f76665 ("xtensa: Removed local copy of zlib and fixed O= support")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
---
arch/xtensa/boot/lib/zmem.c | 4 ++++
1 file changed, 4 insertions(+)
Comments
On Tue, Sep 19, 2023 at 10:21 PM Randy Dunlap <rdunlap@infradead.org> wrote: > > Add function prototypes for exit(), zalloc(), and gunzip() to the > boot library code. exit() and zalloc() don't need to be public. I've posted a different fix that makes these two functions static. > arch/xtensa/boot/lib/zmem.c:8:6: warning: no previous prototype for 'exit' [-Wmissing-prototypes] > 8 | void exit (void) > arch/xtensa/boot/lib/zmem.c:13:7: warning: no previous prototype for 'zalloc' [-Wmissing-prototypes] > 13 | void *zalloc(unsigned size) > arch/xtensa/boot/lib/zmem.c:35:6: warning: no previous prototype for 'gunzip' [-Wmissing-prototypes] > 35 | void gunzip (void *dst, int dstlen, unsigned char *src, int *lenp) > > Fixes: 4bedea945451 ("xtensa: Architecture support for Tensilica Xtensa Part 2") > Fixes: e7d163f76665 ("xtensa: Removed local copy of zlib and fixed O= support") > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > Cc: Chris Zankel <chris@zankel.net> > Cc: Max Filippov <jcmvbkbc@gmail.com> > --- > arch/xtensa/boot/lib/zmem.c | 4 ++++ > 1 file changed, 4 insertions(+)
diff -- a/arch/xtensa/boot/lib/zmem.c b/arch/xtensa/boot/lib/zmem.c --- a/arch/xtensa/boot/lib/zmem.c +++ b/arch/xtensa/boot/lib/zmem.c @@ -5,6 +5,10 @@ extern void *avail_ram, *end_avail; +void exit (void); +void *zalloc(unsigned size); +void gunzip (void *dst, int dstlen, unsigned char *src, int *lenp); + void exit (void) { for (;;);