]> git.baikalelectronics.ru Git - kernel.git/commitdiff
hamradio: fix macro redefine warning
authorHuang Pei <huangpei@loongson.cn>
Tue, 23 Nov 2021 11:07:48 +0000 (19:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Nov 2021 11:38:13 +0000 (11:38 +0000)
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>
drivers/net/hamradio/mkiss.c

index e2b332b54f06d2babe198e51e03b02aed0980122..7da2bb8a443c02ba6680edb36a3102fcac95023c 100644 (file)
@@ -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      */