Skip to content

Commit

Permalink
hamradio: fix macro redefine warning
Browse files Browse the repository at this point in the history
commit 1651782 upstream.

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>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
mips-hp authored and gregkh committed Mar 8, 2022
1 parent 8998aa6 commit ea2bc31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/hamradio/mkiss.c
Expand Up @@ -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 */
Expand Down

0 comments on commit ea2bc31

Please sign in to comment.