Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1283648rdb; Wed, 20 Sep 2023 05:12:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfib9w7+EzyB7nvu0czFqdkICEIz+ViT0TCjcFI6ZTwVVHdJrxvvOiR2A4BYdVrq3fDJgQ X-Received: by 2002:a05:6a20:9192:b0:14d:6309:fc96 with SMTP id v18-20020a056a20919200b0014d6309fc96mr2250183pzd.4.1695211952733; Wed, 20 Sep 2023 05:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695211952; cv=none; d=google.com; s=arc-20160816; b=0pPQqF77ihZkkHTRehd13PyFZLYMHBHrl/fb21JIKxbdZtQLMoiLYQMwCorhUAOBA4 iC4woNaxa27sAx2pggoguAT6NcHSiBFAn12UnGi93yzoyZsK5ObaMs1OwQ9TulmfivxT EdFhgpMmYyg8/Nrfnhh0YkkAfBQ5U1hcHyTGdPj4iBglW+RBcOX7WnGBz8jp/57cAHOc hES59PewKBH1JTfDF9HBHJHXV2O1gr7JF+GqeVcYuJW+PBNL75IcPFslXFlU9deX+loR NYlZntxB62Zi4i+YjGOfdwITTLEcul/QzB/NR7bmB/gfVJexHLPvx/X+NFAmQmyakZcy dZKg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ViRd+Gr7Vea/QsHKqz0MVpGhjqXSzaa4q8ebpul4oxo=; fh=3WalTeZt9cX0jlUFyrcSghbqT5gb0jjuXhNbsC7fTP0=; b=z6Ya7iKU5AQYb0vDOJTnKFovP3fnchTM9s2ut0fs/eILQY4rveI9go1hOA8smPp8ek S2N0sitO5HftOf/BZ6w8cwsobjC+5usT5TU8d40FblJcc4wlgM5HWaa90PRzwbc/TdLs msPr7gBLEMmTYtFuM0+DavOusVm40tBiO3Cj9kE83NcHFCtEdO57hW9U9LKtydKyvoXO ij3OQiVbhKzx3N0vsqRMBA0Ri768EzQ7NFPTGaNxCozRhVcz6QiHRQpRvArlXOsXiyyo v+3qKgZAr6pXFvVT1b26dhIhbi5+i0ANlH5T8PILQGbbRIvIrTXXynoT8UTR7uXqVF0F Aipg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jaVMKYsi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id c64-20020a633543000000b00578d71ef3d8si1814462pga.395.2023.09.20.05.12.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 05:12:32 -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=@gmail.com header.s=20230601 header.b=jaVMKYsi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id EC7C78096BA1; Wed, 20 Sep 2023 04:50:23 -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 S229648AbjITLuQ (ORCPT + 99 others); Wed, 20 Sep 2023 07:50:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234612AbjITLuN (ORCPT ); Wed, 20 Sep 2023 07:50:13 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3DA8D8 for ; Wed, 20 Sep 2023 04:50:07 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-690ba63891dso1972714b3a.2 for ; Wed, 20 Sep 2023 04:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695210607; x=1695815407; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ViRd+Gr7Vea/QsHKqz0MVpGhjqXSzaa4q8ebpul4oxo=; b=jaVMKYsiAri3TRLO/HxbUjKvG2LbeZJKkshmmF/5j4AxmUFaF/LY+tcUzpVW6OoAqM 9NPVy+tW59XTxp1EHZ6M186BvfMDCQpBjnxD/SPTiDZu2Xvuw9SLaM8RaUB0u98C4sZk 1zgDp+v2luDYzyL/V+RPtecndc3/lr+BDzZz4/ugf6kc5aPeTzkkNSJyA09xZ7Yx6NMd kG3EoPo70qd88beZN4BlF4yWL4xt5Fq6qKV30q2K86eLYEvXKz9PkbYvOlDxX+wLc7HM pnu3dGNTK/X+O102HczLR8fKpSoefyGIU4SpZ4/sVZyLYtI8+Sli1Y5C2s4zYqkkvA/2 B+zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695210607; x=1695815407; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ViRd+Gr7Vea/QsHKqz0MVpGhjqXSzaa4q8ebpul4oxo=; b=JdemCP6DdE9G/0ylEWzOGRg09BqrzwI7P43y8G9yks66mJtmPHN8/9D8JMeXtYIyRH ogf3ZgXYr4zOT9Yo/OGoYsEO2wQqSlN9elTq/j59F+L2S6dHuRFqluvcehltX28tpIiA 2Y7HwFVUiheFw5FTIvbUzmVDMf8tzHVJ6T6U3hr9EXER0W1pRC7kTrUyMyvjrE6MBDKW HHRHD/NHUQi7nl7631t4VgY/dpQEjvidRfjbY7WZ+6ZdmtMdYQDtGG2jqANxISYk+Sgj OfjiApBedNNaRMRAdpnYNfl0ARaU6QKr7MFf5kwnlQny9wR3Zpvdu6WBLVwYmbtgRpXM bgSg== X-Gm-Message-State: AOJu0YzYSQPKVpTL6p4w2VDXwuIaVsjEQc5FmVUCoJM2vsAuYjRuc0f8 28ASH41ZopFrhl4OsJKKZP5mlZfIxbY= X-Received: by 2002:a05:6a20:dd87:b0:153:616c:7ca4 with SMTP id kw7-20020a056a20dd8700b00153616c7ca4mr1962296pzb.61.1695210606677; Wed, 20 Sep 2023 04:50:06 -0700 (PDT) Received: from octofox.hsd1.ca.comcast.net ([2601:646:a201:19d0:9ca3:318f:421e:68cb]) by smtp.gmail.com with ESMTPSA id dh2-20020a056a00478200b00690bd3c0723sm2917295pfb.99.2023.09.20.04.50.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 04:50:06 -0700 (PDT) From: Max Filippov To: linux-kernel@vger.kernel.org Cc: Chris Zankel , Max Filippov , Randy Dunlap Subject: [PATCH] xtensa: boot/lib: fix function prototypes Date: Wed, 20 Sep 2023 04:49:34 -0700 Message-Id: <20230920114934.2793310-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, 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: 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]); Wed, 20 Sep 2023 04:50:24 -0700 (PDT) Add function prototype for gunzip() to the boot library code and make exit() and zalloc() 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") Suggested-by: Randy Dunlap Signed-off-by: Max Filippov --- arch/xtensa/boot/lib/zmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/xtensa/boot/lib/zmem.c b/arch/xtensa/boot/lib/zmem.c index e3ecd743c515..b89189355122 100644 --- a/arch/xtensa/boot/lib/zmem.c +++ b/arch/xtensa/boot/lib/zmem.c @@ -4,13 +4,14 @@ /* bits taken from ppc */ extern void *avail_ram, *end_avail; +void gunzip(void *dst, int dstlen, unsigned char *src, int *lenp); -void exit (void) +static void exit(void) { for (;;); } -void *zalloc(unsigned size) +static void *zalloc(unsigned int size) { void *p = avail_ram; -- 2.30.2