summaryrefslogtreecommitdiff
path: root/drivers/net/slip/slip.h
diff options
context:
space:
mode:
authorHuang Pei <huangpei@loongson.cn>2021-11-23 14:07:49 +0300
committerDavid S. Miller <davem@davemloft.net>2021-11-23 14:38:13 +0300
commite5b40668e930979bd1e82c7ed7c9029db635f0e4 (patch)
tree868d039b35e3be7cc6692bafbce0121734c0ded0 /drivers/net/slip/slip.h
parent16517829f2e02f096fb5ea9083d160381127faf3 (diff)
downloadlinux-e5b40668e930979bd1e82c7ed7c9029db635f0e4.tar.xz
slip: fix macro redefine warning
MIPS/IA64 define END as assembly function ending, which conflict with END definition in slip.h, just undef it at first Reported-by: lkp@intel.com Signed-off-by: Huang Pei <huangpei@loongson.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/slip/slip.h')
-rw-r--r--drivers/net/slip/slip.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/slip/slip.h b/drivers/net/slip/slip.h
index c420e5948522..3d7f88b330c1 100644
--- a/drivers/net/slip/slip.h
+++ b/drivers/net/slip/slip.h
@@ -40,6 +40,8 @@
insmod -oslip_maxdev=nnn */
#define SL_MTU 296 /* 296; I am used to 600- FvK */
+/* some arch define END as assembly function ending, just undef it */
+#undef END
/* SLIP protocol characters. */
#define END 0300 /* indicates end of frame */
#define ESC 0333 /* indicates byte stuffing */