From patchwork Fri Nov 6 05:29:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 320768 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1030172ilc; Thu, 5 Nov 2020 21:30:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzT/8iCTCO1Vu0iCUmDuJzIGCyz4f1Wfl4mxVdPyaa8e52pWaHEMypWmZRIu/7uQU60zxZN X-Received: by 2002:a17:906:2a4b:: with SMTP id k11mr360543eje.467.1604640605905; Thu, 05 Nov 2020 21:30:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604640605; cv=none; d=google.com; s=arc-20160816; b=NsFnxNwZV9uFhLp0ddNuwRUSFlDy6bPVZfPOhU5sTqnwo8gQOe/bi7yyVjrJSQnOQG BQrazGdsINIW13+QRrrnNFLp+lMGwWI7SLQAbLq0ukU+xWMmVdT/a0iQeizqifDqY3CK aZZ2WwEV1xQn9gtjUI6/m3oXfi2+eYJ951NSB/PQZhK9eExB+vK/n33Tz08FReXblg+F pHEwscVvejqUd/jJDBopVjlzhp6GODRchpmWAaAePcPlpVITFsxa4rRP8EUcXcJBi86v ij47giPKgSl7peyXpjlwI9PNCupMTqIeL3Qglx0zUHo4D0G6Trx4wnmZErqMWFiw9+Nn Ib2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=ca1n6HpNHWjNTvk5TOUHFn9Eb/1ixWwBAWmKTTKfKYA=; b=m1Y3Co1rheDSrN8b/UYXeJVQxY4HeKZ45qcN79Fuo0o7dj0U4vCI29Makxx4+k2J97 iP4sTfhXSiTOGRCiblsAlcVsUQDvLsUaJAK85wncmt4pl/AVSlhZTBVBOvdQhADLyIO6 CLGoyXcBeal48MfBG9G0KBhK8zCTnUu8MNA2olxm/APjiVPj2y1ILZhVNoYhO7JuEyup xD8pfHK+jTqLeOA6xXVyRTde0Nu2NjbQsRLVUAdAJaiaZAzBvzL8fEaM1LWj4bYGCt4W clIWT4VG0sX1Qh4tmogCiZyyodqtWcqwLRIdDa2CFLqIk3PL4/Ob9muExaJzlvfcjJmL 5qUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gq17si85989ejb.178.2020.11.05.21.30.05; Thu, 05 Nov 2020 21:30:05 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-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 netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726157AbgKFFaA (ORCPT + 8 others); Fri, 6 Nov 2020 00:30:00 -0500 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:44699 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbgKFF37 (ORCPT ); Fri, 6 Nov 2020 00:29:59 -0500 X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R101e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04420; MF=alex.shi@linux.alibaba.com; NM=1; PH=DS; RN=6; SR=0; TI=SMTPD_---0UEOgfMD_1604640596; Received: from aliy80.localdomain(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0UEOgfMD_1604640596) by smtp.aliyun-inc.com(127.0.0.1); Fri, 06 Nov 2020 13:29:56 +0800 From: Alex Shi To: davem@davemloft.net Cc: Jakub Kicinski , Tom Parkin , James Chapman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net/l2tp: remove unused macros to tame gcc warning Date: Fri, 6 Nov 2020 13:29:54 +0800 Message-Id: <1604640594-5750-1-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org There some unused macros cause gcc complain: net/l2tp/l2tp_core.c:73:0: warning: macro "L2TP_HDRFLAG_P" is not used [-Wunused-macros] net/l2tp/l2tp_core.c:80:0: warning: macro "L2TP_SLFLAG_S" is not used [-Wunused-macros] net/l2tp/l2tp_core.c:81:0: warning: macro "L2TP_SL_SEQ_MASK" is not used [-Wunused-macros] Let's remove them to tame gcc. Signed-off-by: Alex Shi Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Tom Parkin Cc: James Chapman Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- net/l2tp/l2tp_core.c | 5 ----- 1 file changed, 5 deletions(-) -- 1.8.3.1 diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c index 7be5103ff2a8..672a53f602b5 100644 --- a/net/l2tp/l2tp_core.c +++ b/net/l2tp/l2tp_core.c @@ -73,16 +73,11 @@ #define L2TP_HDRFLAG_L 0x4000 #define L2TP_HDRFLAG_S 0x0800 #define L2TP_HDRFLAG_O 0x0200 -#define L2TP_HDRFLAG_P 0x0100 #define L2TP_HDR_VER_MASK 0x000F #define L2TP_HDR_VER_2 0x0002 #define L2TP_HDR_VER_3 0x0003 -/* L2TPv3 default L2-specific sublayer */ -#define L2TP_SLFLAG_S 0x40000000 -#define L2TP_SL_SEQ_MASK 0x00ffffff - #define L2TP_HDR_SIZE_MAX 14 /* Default trace flags */