tree d508b095ce7a5e9a85266203472301b759467011
parent f20badbe1207bb10a8ad5fdadc2131c94344b5d9
author [EMAIL PROTECTED] <[EMAIL PROTECTED]> Wed, 07 Sep 2005 23:18:24 +0100
committer Linus Torvalds <[EMAIL PROTECTED]> Thu, 08 Sep 2005 07:17:33 -0700

[PATCH] -Wundef fixes (ncr5380)

NDEBUG and NDEBUG_ABORT are almost always used as integers in NCR5380; added
define to 0 if they are not defined, switched lone ifdef NDEBUG into if.

Signed-off-by: Al Viro <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 drivers/scsi/NCR5380.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c
--- a/drivers/scsi/NCR5380.c
+++ b/drivers/scsi/NCR5380.c
@@ -88,6 +88,13 @@
 #include <scsi/scsi_dbg.h>
+#ifndef NDEBUG
+#define NDEBUG 0
+#ifndef NDEBUG
+#define NDEBUG_ABORT 0
 #define LIST(x,y) {printk("LINE:%d   Adding %p to %p\n", __LINE__, (void*)(x), 
(void*)(y)); if ((x)==(y)) udelay(5); }
 #define REMOVE(w,x,y,z) {printk("LINE:%d   Removing: %p->%p  %p->%p \n", 
__LINE__, (void*)(w), (void*)(x), (void*)(y), (void*)(z)); if ((x)==(y)) 
udelay(5); }
@@ -359,7 +366,7 @@ static struct {
-#ifdef NDEBUG
 static struct {
        unsigned char mask;
        const char *name;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to