From patchwork Mon Mar 4 20:40:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 159620 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4190043jad; Mon, 4 Mar 2019 12:41:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxCfKbc1JXUOEXltclQsZYoKHE/QL2GtDFjI7gq+XvcoD/r6AXYqXvCJ8yDGw4FYccaTn1j X-Received: by 2002:a65:60d8:: with SMTP id r24mr20131619pgv.6.1551732069369; Mon, 04 Mar 2019 12:41:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551732069; cv=none; d=google.com; s=arc-20160816; b=A8pVucOI+n4RQeEidjcZwbWkRlkce+WnDV96mpiaX8kH/3SOMEt7ZZ4L4cW5OF6p+I tJdpAv1nT1HtSOON6DoQQrwIHPInglICY6aQ/6ZyYH+RMgsKOGqLvn3aq1NM8VVh8pqI VqbH57gI5B6TkEbfL6dwpjEDrQ3JS63QcAb3hTqzf4Elr6yxcMBanY6X+0LaUbGZDh12 PARVkkPmPQWKwryP9UUTnGB7Ya/uhdQ6dpvgTXYEsyzOTjMoMaFCofSSFN3woAxLRo3E 5+TDXR9+1GsO2qKpdzGPjquZ0C7sM3f5wt+lFNbCDTlw1BJR4tpWJ0OlGxtLF72mFKvZ Ra7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=KuYeQMuhU4Gb2WV/fAEZq4RYWJh1A4MKXjVR0Vpm2yI=; b=mbgwsAP2LmooxEGEu0+Spf6QnbRfEnSdBKadnQsoHgydaxBwWbjz7exreCp8wuomBE 9J0qemtz9xEPTrgr2nXD+jU35BqGl0VQTYSLwbzapebxzfNCctHC8+HWX4RMp+S/p669 3qMvmymwjF7U4rylrpMge78ock/wi55st599mHdLxSAyxby6XCHuxmNxevzeQMWULcat ufqMdewaakWkB1/yfJsAf/KAuZNXZ6Ch81NPH4dsVNpg+Ia/2RaYg+73GwerbF/LA5c/ A0vfhRkFFH53/c1pkJ+HoTWiScyyNhpExzf/m6PoWYMo7zh3bh5IM+HDwQWsKPI9ObYs 6IfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si6065457pgk.77.2019.03.04.12.41.09; Mon, 04 Mar 2019 12:41:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726816AbfCDUlI (ORCPT + 31 others); Mon, 4 Mar 2019 15:41:08 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:53797 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbfCDUlH (ORCPT ); Mon, 4 Mar 2019 15:41:07 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPA (Nemesis) id 1MGQWr-1gkAkD0R3N-00GmYZ; Mon, 04 Mar 2019 21:40:52 +0100 From: Arnd Bergmann To: Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" Cc: Arnd Bergmann , Vlad Buslov , Marcelo Ricardo Leitner , Davide Caratti , Simon Horman , Adi Nissim , wenxu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net/sched: avoid unused-label warning Date: Mon, 4 Mar 2019 21:40:32 +0100 Message-Id: <20190304204049.2150878-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:TmlPpxdDUF2mU4VYOam276FDHamkTtbq9FgbDJ70+3oAXHtU1oE mbTzcuj2OiZbE13vRAaMF9EboBjorTOsVy5l+1+vvK6IOkm9q+Hz/hMZtnAEdoPHn9cFujy Ae2XkzIZAWwBJdHkWdXHqSflPs/t+n5U3kdpTtJvbu+92WVF88DeAmSUePinUA9v056GYkt 9r8ZiUZdbnkfiGsD9hWbw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:GQxPCzYySJo=:q6CITUG3lTzjN9T/GwaIOi r/PA32LQxTeWZe7oBBSiGKzOBedxJLQFtnuRITrqpFcMzUwwUNnAMviLSyreGzx1ZhZ2qIURD 51oFk/zmqvTrPYFlv6MMMQtt5naF9iKhj9sti8Xh6jQUXbq5TPUIRVxLISH167N/n0WubBStI 4hJ05KX8BLt5pVcesjdAusrvzjyi8UUOeOy0QaoryT12d6tpAOfw9SOfp60urjlcL9Yd8gOT2 KLyBVRUbACjeEYAGXzPENboG/ROM6Qkd6TQ7/8k8Vk6XLEdarxxM5UdoClT6fbZwXsGtdYXal mwF92t3nB7BZGP+NJt2ZAiDb0G00nseFoL7egg93i78Z+2W1yWvOYj3FJQMRnS2+1hmjb9iLD 2O2Nq5yYoeleAYKL8WbK5lQtLX42Ppk9C+WFH/AFV0n/EJ1aO2ZZVJYEOW1fI282k/jcxsLSr sOLUw7Awgcxx2Hh88bMNYDTTp+3YJJl2VsIVPozhesWpBn5PhiWsNfCsCmxDn4uiNDLZ9+C6Z K6So8xG/SWVDiG4kQUKtsr+7s8tU4I4a7sgGznw+0Gps2OuXEnku1YM2m46c/YCRwUzSRnBSi v4vaM/uSZchvr6u7WanwBsSYakWQBr8/ldNjZTEJhm6s6le5h8ikGYbBdiGXiVDxCEK0C0HgD Xwse5NcBFGNqKmrWlaBsJuh1uUwpoPuUe1SibRSBjgqhDBsnlIM5Omggw+vamlDRONd4qCMNK aMEoc3zO61BVaBg05rups5Ua3wMb+1nI0lVvSA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The label is only used from inside the #ifdef and should be hidden the same way, to avoid this warning: net/sched/act_tunnel_key.c: In function 'tunnel_key_init': net/sched/act_tunnel_key.c:389:1: error: label 'release_tun_meta' defined but not used [-Werror=unused-label] release_tun_meta: Fixes: 41411e2fd6b8 ("net/sched: act_tunnel_key: Add dst_cache support") Signed-off-by: Arnd Bergmann --- net/sched/act_tunnel_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/net/sched/act_tunnel_key.c b/net/sched/act_tunnel_key.c index 2a5f215ae876..3beb4717d3b7 100644 --- a/net/sched/act_tunnel_key.c +++ b/net/sched/act_tunnel_key.c @@ -392,8 +392,8 @@ static int tunnel_key_init(struct net *net, struct nlattr *nla, #ifdef CONFIG_DST_CACHE if (metadata) dst_cache_destroy(&metadata->u.tun_info.dst_cache); -#endif release_tun_meta: +#endif if (metadata) dst_release(&metadata->dst);