Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] sun3: Add various missing NDEBUG* definitions

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>

authored by

Geert Uytterhoeven and committed by
James Bottomley
2ba51ea2 0cb8cd76

+12 -4
+6 -2
drivers/scsi/sun3_scsi.c
··· 70 70 #include <asm/idprom.h> 71 71 #include <asm/machines.h> 72 72 73 + #define NDEBUG 0 74 + 75 + #define NDEBUG_ABORT 0x00100000 76 + #define NDEBUG_TAGS 0x00200000 77 + #define NDEBUG_MERGING 0x00400000 78 + 73 79 /* dma on! */ 74 80 #define REAL_DMA 75 81 ··· 91 85 #define USE_WRAPPER 92 86 /*#define RESET_BOOT */ 93 87 #define DRIVER_SETUP 94 - 95 - #define NDEBUG 0 96 88 97 89 /* 98 90 * BUG can be used to trigger a strange code-size related hang on 2.1 kernels
+6 -2
drivers/scsi/sun3_scsi_vme.c
··· 39 39 /* dma on! */ 40 40 #define REAL_DMA 41 41 42 + #define NDEBUG 0 43 + 44 + #define NDEBUG_ABORT 0x00100000 45 + #define NDEBUG_TAGS 0x00200000 46 + #define NDEBUG_MERGING 0x00400000 47 + 42 48 #include "scsi.h" 43 49 #include "initio.h" 44 50 #include <scsi/scsi_host.h> ··· 55 49 #define USE_WRAPPER 56 50 /*#define RESET_BOOT */ 57 51 #define DRIVER_SETUP 58 - 59 - #define NDEBUG 0 60 52 61 53 /* 62 54 * BUG can be used to trigger a strange code-size related hang on 2.1 kernels