Skip to content

Commit

Permalink
slip: fix macro redefine warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mips-hp authored and davem330 committed Nov 23, 2021
1 parent 1651782 commit e5b4066
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/slip/slip.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit e5b4066

Please sign in to comment.