Message ID | 20230920052139.10570-14-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 h50csp4572135vqi; Wed, 20 Sep 2023 19:59:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFROrK8sTBCdO/LRLY99eMUYlVd8S9UJ6cDkrlWturmjZt1gU25DaMC/55dllS7TCdriEG5 X-Received: by 2002:a17:902:a511:b0:1c5:be64:2c71 with SMTP id s17-20020a170902a51100b001c5be642c71mr2796142plq.8.1695265167328; Wed, 20 Sep 2023 19:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695265167; cv=none; d=google.com; s=arc-20160816; b=AwEHKVrkh+0FLk4i1v0BjV4tg7XqGa8idG/1PGrAWkhJ2b21zDOi14jLLYt4vwvlHB rgPAdksX9EY5Be+/Y29QE3OAI8VMtyNZP9YXb9PvdJJZNExcJYFTVDpFw2CGFugG+Ibg 9SeiAAMJALqlPM/82q6lACaouu1UNwAl+XhUShItDr5rSNbBH142s550pvUskSJFXZyv 0Z8SCg5fEyj1937USY2E4Tiilh0iSVfiyh2Szfl8efKRGIXKvKzxUGGoNMXVoIFx4zkQ qThBzsfYQ8RTocQFMdfc4N/wWL0xAHKYt58oHwT99KtwpnYwYsiBnec1pSJLxdf3j7zi 0H2Q== 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=1gBHFx2tI6V5P6z+m3jp+VBtTa+R50589jc6SHRpnzE=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=dV8Adkbsb27H+L+klR9na9JXcEfop4SGzNhodGp8S5KSAQYjG7SRvsQRrAUuv51Uxe vZ8/pnQZO3Y9nDmX+fhYeTY97MgLUbOeEB4zEUE3xADq6wJW/YGz5U41pVvJt3qkzRnn xXkM1LtUmJvn4mlZFxlI8MjE6Fx5TrmpymdDZjIkP6CF3AauohfdrvrNGZwy1cSs82ZB 9+YZcndHhZYDsY3KjT9RhYJGUtQj4D3xgEpEPh3VLtKGw0BfFv0G2yTJGomvFtgEtM4d //zdt/EKrO/bpq9lKVG3d3FXxrcU0nfJpTOtparHAf4JpkpBFhLhrLrkk+tn9IlW93fy pbuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=BcU6wf2L; 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 n18-20020a170903111200b001bb2093efb6si493687plh.45.2023.09.20.19.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 19:59:27 -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=BcU6wf2L; 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 6BF9282B9F9E; Tue, 19 Sep 2023 22:23:09 -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 S232907AbjITFXC (ORCPT <rfc822;toshivichauhan@gmail.com> + 26 others); Wed, 20 Sep 2023 01:23:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232563AbjITFVv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 20 Sep 2023 01:21:51 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 131CEDC for <linux-kernel@vger.kernel.org>; Tue, 19 Sep 2023 22:21:46 -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=1gBHFx2tI6V5P6z+m3jp+VBtTa+R50589jc6SHRpnzE=; b=BcU6wf2Ltl/WTOUgR2MqZvZQZJ 4y79NyIocfLB4sXv3rM34I6yaE9N3gGEjjEYUWK2eCEnR0EosCDdtfnGtEdAMquZlW+nWVzegS5fl gpnZqJJaM6hv53IAVaiUEwyFr151sR8ScnVFUDAmNAtQ8lXH3+gC5xG4DRE3f8R+t6ptAsAnGog6w hGuUtrdlOP24U0WqT8hhmf6GGo28M80oL+jgOu0DGxOOxExuRXC2pj+Pu11WNK5bwP6BqAaXCAeWt 7xnq+hREFRrJ7FElrBnc4nPKIPra5VPDl/ole3sg5LpR0wn93ZlHh3Tl702MSNKTsQjJEnAD6OK86 9iIj74yQ==; 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 1qipej-001tym-2l; Wed, 20 Sep 2023 05:21:45 +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 13/16] xtensa: iss/network: make functions static Date: Tue, 19 Sep 2023 22:21:36 -0700 Message-ID: <20230920052139.10570-14-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:23:09 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777614367952643554 X-GMAIL-MSGID: 1777614367952643554 |
Series |
xtensa: fix W=1 build warnings
|
|
Commit Message
Randy Dunlap
Sept. 20, 2023, 5:21 a.m. UTC
Make 2 functions static to prevent build warnings:
arch/xtensa/platforms/iss/network.c:204:16: warning: no previous prototype for 'tuntap_protocol' [-Wmissing-prototypes]
204 | unsigned short tuntap_protocol(struct sk_buff *skb)
arch/xtensa/platforms/iss/network.c:444:6: warning: no previous prototype for 'iss_net_user_timer_expire' [-Wmissing-prototypes]
444 | void iss_net_user_timer_expire(struct timer_list *unused)
Fixes: 7282bee78798 ("xtensa: Architecture support for Tensilica Xtensa Part 8")
Fixes: d8479a21a98b ("xtensa: Convert timers to use timer_setup()")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
---
arch/xtensa/platforms/iss/network.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -- a/arch/xtensa/platforms/iss/network.c b/arch/xtensa/platforms/iss/network.c --- a/arch/xtensa/platforms/iss/network.c +++ b/arch/xtensa/platforms/iss/network.c @@ -201,7 +201,7 @@ static int tuntap_write(struct iss_net_p return simc_write(lp->tp.info.tuntap.fd, (*skb)->data, (*skb)->len); } -unsigned short tuntap_protocol(struct sk_buff *skb) +static unsigned short tuntap_protocol(struct sk_buff *skb) { return eth_type_trans(skb, skb->dev); } @@ -441,7 +441,7 @@ static int iss_net_change_mtu(struct net return -EINVAL; } -void iss_net_user_timer_expire(struct timer_list *unused) +static void iss_net_user_timer_expire(struct timer_list *unused) { }