[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 <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
f20badbe12
commit
185a7a1cd7
1 changed files with 8 additions and 1 deletions
|
@ -88,6 +88,13 @@
|
||||||
*/
|
*/
|
||||||
#include <scsi/scsi_dbg.h>
|
#include <scsi/scsi_dbg.h>
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
|
#define NDEBUG 0
|
||||||
|
#endif
|
||||||
|
#ifndef NDEBUG
|
||||||
|
#define NDEBUG_ABORT 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (NDEBUG & NDEBUG_LISTS)
|
#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 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); }
|
#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 {
|
||||||
{PHASE_UNKNOWN, "UNKNOWN"}
|
{PHASE_UNKNOWN, "UNKNOWN"}
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef NDEBUG
|
#if NDEBUG
|
||||||
static struct {
|
static struct {
|
||||||
unsigned char mask;
|
unsigned char mask;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
Loading…
Add table
Reference in a new issue