mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Eduardo Pereira Habkost <ehabkost@conectiva.com.br>
To: gprocida@madge.com
Cc: linux-kernel@vger.kernel.org, marcelo@conectiva.com.br,
	alan@lxorguk.ukuu.org.uk
Subject: [PATCH] Fix UCODE macro definition on ambassador driver
Date: Fri, 23 May 2003 17:22:52 -0300	[thread overview]
Message-ID: <20030523202252.GS2939@duckman.distro.conectiva> (raw)

[-- 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 --]

                 reply	other threads:[~2003-05-23 20:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030523202252.GS2939@duckman.distro.conectiva \
    --to=ehabkost@conectiva.com.br \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=gprocida@madge.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®