mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] -Wundef fixes (ncr5380)
@ 2005-09-07 22:18 viro
  0 siblings, 0 replies; only message in thread
From: viro @ 2005-09-07 22:18 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-scsi, linux-kernel

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 <viro@zeniv.linux.org.uk>
----
diff -urN RC13-git7-smc-undef/drivers/scsi/NCR5380.c RC13-git7-ncr5380/drivers/scsi/NCR5380.c
--- RC13-git7-smc-undef/drivers/scsi/NCR5380.c	2005-08-28 23:09:45.000000000 -0400
+++ RC13-git7-ncr5380/drivers/scsi/NCR5380.c	2005-09-07 13:55:45.000000000 -0400
@@ -88,6 +88,13 @@
  */
 #include <scsi/scsi_dbg.h>
 
+#ifndef NDEBUG
+#define NDEBUG 0
+#endif
+#ifndef NDEBUG
+#define NDEBUG_ABORT 0
+#endif
+
 #if (NDEBUG & NDEBUG_LISTS)
 #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 @@
 	{PHASE_UNKNOWN, "UNKNOWN"}
 };
 
-#ifdef NDEBUG
+#if NDEBUG
 static struct {
 	unsigned char mask;
 	const char *name;

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

only message in thread, other threads:[~2005-09-07 22:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-07 22:18 [PATCH] -Wundef fixes (ncr5380) viro

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®