diff mbox series

net/l2tp: remove unused macros to tame gcc warning

Message ID 1604640594-5750-1-git-send-email-alex.shi@linux.alibaba.com
State Rejected
Delegated to: David Miller
Headers show
Series net/l2tp: remove unused macros to tame gcc warning | expand

Checks

Context Check Description
jkicinski/cover_letter success Link
jkicinski/fixes_present success Link
jkicinski/patch_count success Link
jkicinski/tree_selection success Guessed tree name to be net-next
jkicinski/subject_prefix warning Target tree name not specified in the subject
jkicinski/source_inline success Was 0 now: 0
jkicinski/verify_signedoff success Link
jkicinski/module_param success Was 0 now: 0
jkicinski/build_32bit success Errors and warnings before: 0 this patch: 0
jkicinski/kdoc success Errors and warnings before: 0 this patch: 0
jkicinski/verify_fixes success Link
jkicinski/checkpatch success total: 0 errors, 0 warnings, 0 checks, 16 lines checked
jkicinski/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
jkicinski/header_inline success Link
jkicinski/stable success Stable not CCed

Commit Message

Alex Shi Nov. 6, 2020, 5:29 a.m. UTC
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 <alex.shi@linux.alibaba.com>
Cc: "David S. Miller" <davem@davemloft.net> 
Cc: Jakub Kicinski <kuba@kernel.org> 
Cc: Tom Parkin <tparkin@katalix.com> 
Cc: James Chapman <jchapman@katalix.com> 
Cc: netdev@vger.kernel.org 
Cc: linux-kernel@vger.kernel.org 
---
 net/l2tp/l2tp_core.c | 5 -----
 1 file changed, 5 deletions(-)
diff mbox series

Patch

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 */