linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix UCODE macro definition on ambassador driver
@ 2003-05-23 20:22 Eduardo Pereira Habkost
  0 siblings, 0 replies; only message in thread
From: Eduardo Pereira Habkost @ 2003-05-23 20:22 UTC (permalink / raw)
  To: gprocida; +Cc: linux-kernel, marcelo, alan

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]


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)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-23 20:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-23 20:22 [PATCH] Fix UCODE macro definition on ambassador driver Eduardo Pereira Habkost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).