Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2469738ybg; Thu, 30 Jul 2020 23:52:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjSTCNbPgAtR6DpmBn7lhs/Wi+TihT6U0toXlMcUzE4tHCCesfsbJrZi+o8Lt6Ym2hdGOJ X-Received: by 2002:a50:93c5:: with SMTP id o63mr2448917eda.31.1596178371237; Thu, 30 Jul 2020 23:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596178371; cv=none; d=google.com; s=arc-20160816; b=C5boQpHjIzPCJgHqNUuomLLbyn51VJwrPnSO+JrA/d+hH8rF+yRwrGba5GDCMsPxp0 N0azRczhpQFGYzNFCeD+Ymo8Pq12WGLCKZ2pzWsNNahr3zkxssTb+T3UErWLfzcGD4hu ZQIPwaIPPj8ks+y6H4PgpCc36e7OLOehbYvvqRqjEBltIniDSoTgcE/ibn2DYk4LZdA+ 4X1C7aZCu6Xzp1JqVU4WVgio/1kVrpJBn+9B77AC2bk+IxM6oKyiqAAVaKJZDhLcCarw O96TuNEZkT5g07rMaUz1raeici1+1gFtGs7KQLVzzttTcOhL1JQ9GLVtmpTQgaMKXbl2 +tcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=sSWV965eVQ/PA+g4CbdJFgcmo5gndh/9mYPCyiOEAOo=; b=byfGdHJVWPywzPAcOBwreAFiLfkalR0KFrtUr/C4FdN6G3GCphe9bKnf76p/Te32Pu 0zGncSMc15xbrvHo3QXKNrpsVk+pGXWq5Udq6MJN5I2gpTd5MLeLdjhFV+bLD98VegvF qrhYgh5O/ziX4QkU4a4sn7nlnny6H9QFEcgYjAwZkjjE0fTCQaYCslSxnJV5JAvHCKem CK9XKjFzGc9JuKhlUCH9O5wwxcjxKrB4cbRgQ8h4vUjk7hCXFAqILd54UErgmPeDLaui fkNAzqM3CqxJIgypZmGSwr8/2CR1SV6lj/8o2/V5VKHBH7uMn9uSYv2zB3gRomR2ik1K soow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y23si4400740ejd.544.2020.07.30.23.52.29; Thu, 30 Jul 2020 23:52:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731473AbgGaGuO (ORCPT + 99 others); Fri, 31 Jul 2020 02:50:14 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:8866 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731365AbgGaGuO (ORCPT ); Fri, 31 Jul 2020 02:50:14 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 4481D2660323F7D3D8C8; Fri, 31 Jul 2020 14:50:08 +0800 (CST) Received: from localhost (10.174.179.108) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Fri, 31 Jul 2020 14:50:01 +0800 From: YueHaibing To: , , , , , , CC: , , YueHaibing Subject: [PATCH net-next] ip_vti: Fix unused variable warning Date: Fri, 31 Jul 2020 14:49:52 +0800 Message-ID: <20200731064952.36900-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.179.108] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If CONFIG_INET_XFRM_TUNNEL is set but CONFIG_IPV6 is n, net/ipv4/ip_vti.c:493:27: warning: 'vti_ipip6_handler' defined but not used [-Wunused-variable] Signed-off-by: YueHaibing --- net/ipv4/ip_vti.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ipv4/ip_vti.c b/net/ipv4/ip_vti.c index 49daaed89764..f687abb069fa 100644 --- a/net/ipv4/ip_vti.c +++ b/net/ipv4/ip_vti.c @@ -490,6 +490,7 @@ static struct xfrm_tunnel vti_ipip_handler __read_mostly = { .priority = 0, }; +#if IS_ENABLED(CONFIG_IPV6) static struct xfrm_tunnel vti_ipip6_handler __read_mostly = { .handler = vti_rcv_tunnel, .cb_handler = vti_rcv_cb, @@ -497,6 +498,7 @@ static struct xfrm_tunnel vti_ipip6_handler __read_mostly = { .priority = 0, }; #endif +#endif static int __net_init vti_init_net(struct net *net) { -- 2.17.1