Skip to content

Commit e5b4066

Browse files
mips-hpdavem330
authored andcommitted
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: [email protected] Signed-off-by: Huang Pei <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1651782 commit e5b4066

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/slip/slip.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
insmod -oslip_maxdev=nnn */
4141
#define SL_MTU 296 /* 296; I am used to 600- FvK */
4242

43+
/* some arch define END as assembly function ending, just undef it */
44+
#undef END
4345
/* SLIP protocol characters. */
4446
#define END 0300 /* indicates end of frame */
4547
#define ESC 0333 /* indicates byte stuffing */

0 commit comments

Comments
 (0)