[2.6 patch] drivers/cdrom/mcdx.c: fix -Wundef warnings

2005-07-22 Thread Adrian Bunk
This patch fixes the following warnings with -Wundef:

<--  snip  -->

...
  CC  drivers/cdrom/mcdx.o
drivers/cdrom/mcdx.c:54:5: warning: "RCS" is not defined
...
drivers/cdrom/mcdx.c:709:5: warning: "FALLBACK" is not defined
drivers/cdrom/mcdx.c:1219:5: warning: "WE_KNOW_WHY" is not defined
drivers/cdrom/mcdx.c:1297:5: warning: "FALLBACK" is not defined
...

<--  snip  -->


Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>

---

 drivers/cdrom/mcdx.c |   11 +++
 1 files changed, 3 insertions(+), 8 deletions(-)

--- linux-2.6.13-rc3-mm1-full/drivers/cdrom/mcdx.c.old  2005-07-22 
18:14:36.0 +0200
+++ linux-2.6.13-rc3-mm1-full/drivers/cdrom/mcdx.c  2005-07-22 
18:15:29.0 +0200
@@ -51,11 +51,6 @@
  */
 
 
-#if RCS
-static const char *mcdx_c_version
-= "$Id: mcdx.c,v 1.21 1997/01/26 07:12:59 davem Exp $";
-#endif
-
 #include 
 
 #include 
@@ -706,7 +701,7 @@
xtrace(OPENCLOSE, "open() init irq generation\n");
if (-1 == mcdx_config(stuffp, 1))
return -EIO;
-#if FALLBACK
+#ifdef FALLBACK
/* Set the read speed */
xwarn("AAA %x AAA\n", stuffp->readcmd);
if (stuffp->readerrs)
@@ -1216,7 +1211,7 @@
}
 
 
-#if WE_KNOW_WHY
+#ifdef WE_KNOW_WHY
/* irq 11 -> channel register */
outb(0x50, stuffp->wreg_chn);
 #endif
@@ -1294,7 +1289,7 @@
 
ans = mcdx_xfer(stuffp, p, sector, nr_sectors);
return ans;
-#if FALLBACK
+#ifdef FALLBACK
if (-1 == ans)
stuffp->readerrs++;
else

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


[2.6 patch] drivers/cdrom/mcdx.c: fix -Wundef warnings

2005-07-22 Thread Adrian Bunk
This patch fixes the following warnings with -Wundef:

--  snip  --

...
  CC  drivers/cdrom/mcdx.o
drivers/cdrom/mcdx.c:54:5: warning: RCS is not defined
...
drivers/cdrom/mcdx.c:709:5: warning: FALLBACK is not defined
drivers/cdrom/mcdx.c:1219:5: warning: WE_KNOW_WHY is not defined
drivers/cdrom/mcdx.c:1297:5: warning: FALLBACK is not defined
...

--  snip  --


Signed-off-by: Adrian Bunk [EMAIL PROTECTED]

---

 drivers/cdrom/mcdx.c |   11 +++
 1 files changed, 3 insertions(+), 8 deletions(-)

--- linux-2.6.13-rc3-mm1-full/drivers/cdrom/mcdx.c.old  2005-07-22 
18:14:36.0 +0200
+++ linux-2.6.13-rc3-mm1-full/drivers/cdrom/mcdx.c  2005-07-22 
18:15:29.0 +0200
@@ -51,11 +51,6 @@
  */
 
 
-#if RCS
-static const char *mcdx_c_version
-= $Id: mcdx.c,v 1.21 1997/01/26 07:12:59 davem Exp $;
-#endif
-
 #include linux/module.h
 
 #include linux/errno.h
@@ -706,7 +701,7 @@
xtrace(OPENCLOSE, open() init irq generation\n);
if (-1 == mcdx_config(stuffp, 1))
return -EIO;
-#if FALLBACK
+#ifdef FALLBACK
/* Set the read speed */
xwarn(AAA %x AAA\n, stuffp-readcmd);
if (stuffp-readerrs)
@@ -1216,7 +1211,7 @@
}
 
 
-#if WE_KNOW_WHY
+#ifdef WE_KNOW_WHY
/* irq 11 - channel register */
outb(0x50, stuffp-wreg_chn);
 #endif
@@ -1294,7 +1289,7 @@
 
ans = mcdx_xfer(stuffp, p, sector, nr_sectors);
return ans;
-#if FALLBACK
+#ifdef FALLBACK
if (-1 == ans)
stuffp-readerrs++;
else

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