[PATCH] Fix UCODE macro definition on ambassador driver

From: Eduardo Pereira Habkost (ehabkost@conectiva.com.br)
Date: Fri May 23 2003 - 15:22:52 EST


When compiling the ambassador driver, gcc 3.3 gives the following
error:
drivers/atm/ambassador.c:301:21: pasting "." and "start" does not give a valid preprocessing token

The following patch fixes that.

-- 
Eduardo

diff -purN linux-2.4.orig/drivers/atm/ambassador.c linux-2.4/drivers/atm/ambassador.c --- linux-2.4.orig/drivers/atm/ambassador.c 2003-05-22 20:12:26.000000000 -0300 +++ linux-2.4/drivers/atm/ambassador.c 2003-05-22 20:12:26.000000000 -0300 @@ -290,12 +290,11 @@ static inline void __init show_version ( /********** microcode **********/ #ifdef AMB_NEW_MICROCODE -#define UCODE(x) UCODE1(atmsar12.,x) +#define UCODE(x) UCODE1(atmsar12.x) #else -#define UCODE(x) UCODE1(atmsar11.,x) +#define UCODE(x) UCODE1(atmsar11.x) #endif -#define UCODE2(x) #x -#define UCODE1(x,y) UCODE2(x ## y) +#define UCODE1(x) #x static u32 __initdata ucode_start = #include UCODE(start)


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri May 23 2003 - 22:00:56 EST