[PATCH] Fix UCODE macro definition on ambassador driver

Eduardo Pereira Habkost (ehabkost@conectiva.com.br)
Fri, 23 May 2003 17:22:52 -0300


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-17293-1053722057-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 va=
lid preprocessing token

The following patch fixes that.

--=20
Eduardo

diff -purN linux-2.4.orig/drivers/atm/ambassador.c linux-2.4/drivers/atm/am=
bassador.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 **********/
=20
#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
=20
static u32 __initdata ucode_start =3D=20
#include UCODE(start)

--=_courier-17293-1053722057-0001-2
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+zoMccaRJ66w1lWgRAvNFAJ9WJ/nqcgAPZ1xAmttaPAKPxQk4oACeP9Ty
reD2ajLbljXa2wkpQRFEBCY=
=yZEw
-----END PGP SIGNATURE-----

--=_courier-17293-1053722057-0001-2--