]> git.baikalelectronics.ru Git - kernel.git/commitdiff
slip: fix macro redefine warning
authorHuang Pei <huangpei@loongson.cn>
Tue, 23 Nov 2021 11:07:49 +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 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>
drivers/net/slip/slip.h

index c420e59485221d31126ba97b23814c6ac0fa268e..3d7f88b330c1e097bc20076ac982404c294ae6e1 100644 (file)
@@ -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      */