Skip to contentSkip to conversation

Fix UCODE macro definition on ambassador driver

PATCH New Eduardo Pereira Habkost 1 participant 1 message May 23, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix UCODE macro definition on ambassador driver

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.

Signature · 21 lines
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)