From: Mark A. Greer Date: Sat, 25 Mar 2006 11:08:27 +0000 (-0800) Subject: [PATCH] serial: mpsc driver has definition of SUPPORT_SYSRQ below include of serial_c... X-Git-Tag: v2.6.17-rc1~744 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6261c8e34f07f09270b37e14c05962c952cbeebe;p=linux-2.6 [PATCH] serial: mpsc driver has definition of SUPPORT_SYSRQ below include of serial_core.h The definition of SUPPORT_SYSRQ must come before #include of serial_core.h. This patch moves the definition of SUPPORT_SYSRQ to be just after the #include of config.h to make it consistent with 8250.c. Reported-by: Stephane Chazelas Signed-off-by: Mark A. Greer Cc: Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/serial/mpsc.h b/drivers/serial/mpsc.h index 678dbcf06c..15913300ce 100644 --- a/drivers/serial/mpsc.h +++ b/drivers/serial/mpsc.h @@ -13,6 +13,11 @@ #define __MPSC_H__ #include + +#if defined(CONFIG_SERIAL_MPSC_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) +#define SUPPORT_SYSRQ +#endif + #include #include #include @@ -31,10 +36,6 @@ #include #include -#if defined(CONFIG_SERIAL_MPSC_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) -#define SUPPORT_SYSRQ -#endif - #define MPSC_NUM_CTLRS 2 /*