From: Huang Pei Date: Tue, 23 Nov 2021 11:07:48 +0000 (+0800) Subject: hamradio: fix macro redefine warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db167d37f93f9ca8e4bda62f6a895755e534f7b4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git hamradio: fix macro redefine warning commit 16517829f2e02f096fb5ea9083d160381127faf3 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 Signed-off-by: David S. Miller Cc: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c index cbd637a3257b..f0bd65942054 100644 --- a/drivers/net/hamradio/mkiss.c +++ b/drivers/net/hamradio/mkiss.c @@ -41,6 +41,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 */