From patchwork Wed Mar 28 14:14:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 132529 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp531063ljb; Wed, 28 Mar 2018 07:16:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx48yy2OFapWOPDuiUxYi/RH8w6znh3AMAEuDIXacQRP1p8QmdJaVJfnmZvtreIfEiQ7RQsxb X-Received: by 10.99.113.14 with SMTP id m14mr1396993pgc.264.1522246587441; Wed, 28 Mar 2018 07:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522246587; cv=none; d=google.com; s=arc-20160816; b=dzP1yW5vRnhfoFribV8L9XlZcKRV7OUB8BYCGjDxmD1sLPmlrg3XagB5LrJ0r51d2J yqzumWUhrHn5h4YSz93YCPY2OXy/dtC6+ApTbBzhKKV4YPH1xll6B5mcmx/LTiRg/JkX oHKIJTXqLWeq09Q7x25L2i55/KX5CYJw+/W+ag+QWXBc9YDI8mXM4vw52eEvz6GxnSV3 ET3dIKXKxjKl9oAmkhiSTXtznua1W82YsgEbsKdq2IZg5KfECWj+k78g8Ssq9jDeju5Y hCqCozbkeuPZzJ1oc2lhZglRWLpgUjVP6Uw34p+rhXuXj4lDQxFyIfpyh3kDsc1R1q3x w5yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=c/llXbVcq52OoLYwcL7mBX1+CrnduZ0oFHXm2bTONDk=; b=kMNqiDz5aFI7RLDJuL67EFXdazVg815iXbxr2nLFpm0d8pOGjSjd6cpsErwKfs2YuW nFUWQr0JRBeLrinOb3V8Ob9KbmLTNqEaxoK21C4RVV5xY1Ptt3kpD2l1S5wbOOYWH4hq iHx+D76MQ43YFoWlcuWEv+5PEVUVA++mhp6oq8CsRTJ3UxxDKh3DdSuuH/hEBTKieiu5 vi0zRju+kyirAZpOmMxTki7NbeUXe8ImIppbSfChnTZbuJPS4DxvoFByfLgIFYzkg/Xu tPUlgTLhlO520qRwXnz4QFCaDI8+EaHDrlfp9m24A8gojpqmE7P5I/iDD3thBE0uCEhX BXtw== 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 h80si2890453pfd.260.2018.03.28.07.16.27; Wed, 28 Mar 2018 07:16:27 -0700 (PDT) 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 S1753326AbeC1OQW (ORCPT + 28 others); Wed, 28 Mar 2018 10:16:22 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:47845 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750820AbeC1OQU (ORCPT ); Wed, 28 Mar 2018 10:16:20 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0M7sZ6-1ef8lA48Js-00vQfx; Wed, 28 Mar 2018 16:15:17 +0200 From: Arnd Bergmann To: Vlad Yasevich , Neil Horman , "David S. Miller" Cc: Arnd Bergmann , Al Viro , linux-sctp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [net-next] sctp: fix unused lable warning Date: Wed, 28 Mar 2018 16:14:56 +0200 Message-Id: <20180328141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0xrGg7vUxqhWLJCaA85wuMOc+9s+bJvg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The proc file cleanup left a label possibly unused: net/sctp/protocol.c: In function 'sctp_defaults_init': net/sctp/protocol.c:1304:1: error: label 'err_init_proc' defined but not used [-Werror=unused-label] This adds an #ifdef around it to match the respective 'goto'. Fixes: d47d08c8ca05 ("sctp: use proc_remove_subtree()") Signed-off-by: Arnd Bergmann --- net/sctp/protocol.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 Acked-by: Neil Horman diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index c1c64b78c39d..d685f8456762 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -1301,8 +1301,10 @@ static int __net_init sctp_defaults_init(struct net *net) return 0; +#ifdef CONFIG_PROC_FS err_init_proc: cleanup_sctp_mibs(net); +#endif err_init_mibs: sctp_sysctl_net_unregister(net); err_sysctl_register: