From patchwork Mon Sep 29 06:59:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: roy.qing.li@gmail.com X-Patchwork-Id: 4994051 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 02FBEBEEA6 for ; Mon, 29 Sep 2014 06:59:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4908F201F7 for ; Mon, 29 Sep 2014 06:59:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1ABB2201F2 for ; Mon, 29 Sep 2014 06:59:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751335AbaI2G7q (ORCPT ); Mon, 29 Sep 2014 02:59:46 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:42929 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042AbaI2G7p (ORCPT ); Mon, 29 Sep 2014 02:59:45 -0400 Received: by mail-pd0-f174.google.com with SMTP id y13so340857pdi.5 for ; Sun, 28 Sep 2014 23:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=TypyB7OvocH63/AKBh0syUN+8OxqW6g9WKOlqCpvAjo=; b=FoIr75O4xhlymDP7vn5sP3HvwdD9hgFHuJbm7zJN+bX0/zkU1CILJ+Y3t3CxPh7+kw cdg8sQh4S2D8AiVU0WxZC7ulo8VwKRwW9E1bKkJ17EjbcL+Nz02/x6UFp/gEZlqdSp+a 07kWWjFlqrqkJaltyA3IS5DHFACfc8ynUg7MWlrloSu4POiFxVGvcM1H0oEOINNn8mmA rqdZkLqQDcRpN0B7XLuXJykkl4Sp8KoeVdah310iPGiDCG0czLRuuHNvjS5RuL0/1gtM W2ACCX6kXbSBSIQKId6nNO2ytoxTk1xoEJn52m+Ie8ZHbzdyupfgurH4hKeTGqipEpYB ka7w== X-Received: by 10.68.235.105 with SMTP id ul9mr57743657pbc.3.1411973984992; Sun, 28 Sep 2014 23:59:44 -0700 (PDT) Received: from localhost ([106.120.101.38]) by mx.google.com with ESMTPSA id z1sm11411176pdb.21.2014.09.28.23.59.43 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 28 Sep 2014 23:59:44 -0700 (PDT) From: roy.qing.li@gmail.com To: linux-rdma@vger.kernel.org Subject: [PATCH] RDMA/ocrdma: remove a unused-label warning Date: Mon, 29 Sep 2014 14:59:43 +0800 Message-Id: <1411973983-7125-1-git-send-email-roy.qing.li@gmail.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Li RongQing If disable IPV6, and the warning will happen: drivers/infiniband/hw/ocrdma/ocrdma_main.c:650:1: warning: label ‘err_notifier6’ defined but not used [-Wunused-label] Signed-off-by: Li RongQing --- drivers/infiniband/hw/ocrdma/ocrdma_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_main.c b/drivers/infiniband/hw/ocrdma/ocrdma_main.c index 256a06b..c108623 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_main.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_main.c @@ -646,8 +646,10 @@ static int __init ocrdma_init_module(void) return 0; err_be_reg: +#if IS_ENABLED(CONFIG_IPV6) ocrdma_unregister_inet6addr_notifier(); err_notifier6: +#endif ocrdma_unregister_inetaddr_notifier(); return status; }