aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang Pei2021-11-23 19:07:48 +0800
committerDavid S. Miller2021-11-23 11:38:13 +0000
commit16517829f2e02f096fb5ea9083d160381127faf3 (patch)
tree53a7778262e51b9eb40a2f6f124082705349e241
parent03a000bfd7193cacefb40e309283578c6ae207b5 (diff)
hamradio: fix macro redefine warning
MIPS/IA64 define END as assembly function ending, which conflict with END definition in mkiss.c, 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>
-rw-r--r--drivers/net/hamradio/mkiss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c
index e2b332b54f06..7da2bb8a443c 100644
--- a/drivers/net/hamradio/mkiss.c
+++ b/drivers/net/hamradio/mkiss.c
@@ -31,6 +31,8 @@
#define AX_MTU 236
+/* some arch define END as assembly function ending, just undef it */
+#undef END
/* SLIP/KISS protocol characters. */
#define END 0300 /* indicates end of frame */
#define ESC 0333 /* indicates byte stuffing */