Skip to content

Commit

Permalink
[SCSI] sun3: Add various missing NDEBUG* definitions
Browse files Browse the repository at this point in the history
This fixes a.o.:

drivers/scsi/sun3_scsi.h:225:5: warning: "NDEBUG" is not defined
drivers/scsi/sun3_scsi.h:345:14: warning: "NDEBUG_ABORT" is not defined
drivers/scsi/sun3_scsi.h:351:14: warning: "NDEBUG_TAGS" is not defined
drivers/scsi/sun3_scsi.h:357:14: warning: "NDEBUG_MERGING" is not defined

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
  • Loading branch information
Geert Uytterhoeven authored and James Bottomley committed Jun 29, 2011
1 parent 0cb8cd7 commit 2ba51ea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions drivers/scsi/sun3_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@
#include <asm/idprom.h>
#include <asm/machines.h>

#define NDEBUG 0

#define NDEBUG_ABORT 0x00100000
#define NDEBUG_TAGS 0x00200000
#define NDEBUG_MERGING 0x00400000

/* dma on! */
#define REAL_DMA

Expand All @@ -86,8 +92,6 @@ static void NCR5380_print(struct Scsi_Host *instance);
/*#define RESET_BOOT */
#define DRIVER_SETUP

#define NDEBUG 0

/*
* BUG can be used to trigger a strange code-size related hang on 2.1 kernels
*/
Expand Down
8 changes: 6 additions & 2 deletions drivers/scsi/sun3_scsi_vme.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
/* dma on! */
#define REAL_DMA

#define NDEBUG 0

#define NDEBUG_ABORT 0x00100000
#define NDEBUG_TAGS 0x00200000
#define NDEBUG_MERGING 0x00400000

#include "scsi.h"
#include "initio.h"
#include <scsi/scsi_host.h>
Expand All @@ -50,8 +56,6 @@ extern int sun3_map_test(unsigned long, char *);
/*#define RESET_BOOT */
#define DRIVER_SETUP

#define NDEBUG 0

/*
* BUG can be used to trigger a strange code-size related hang on 2.1 kernels
*/
Expand Down

0 comments on commit 2ba51ea

Please sign in to comment.