diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2007-05-01 16:32:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-04 20:59:05 -0400 |
commit | 3130d905ba86d5f2636b2f45d5beefe82cb03df6 (patch) | |
tree | fab2701f31bd679640c5516d49f400211cc9b628 /drivers/scsi/atari_scsi.h | |
parent | c28bda25175913c88396b643813321ef9cffe663 (diff) |
m68k: Atari SCSI driver compile fixes
Atari SCSI driver compile fixes
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/scsi/atari_scsi.h')
-rw-r--r-- | drivers/scsi/atari_scsi.h | 144 |
1 files changed, 29 insertions, 115 deletions
diff --git a/drivers/scsi/atari_scsi.h b/drivers/scsi/atari_scsi.h index 75b549b2dfc1..efadb8d567c2 100644 --- a/drivers/scsi/atari_scsi.h +++ b/drivers/scsi/atari_scsi.h | |||
@@ -113,144 +113,58 @@ int atari_scsi_release (struct Scsi_Host *); | |||
113 | * | 113 | * |
114 | */ | 114 | */ |
115 | 115 | ||
116 | #if NDEBUG & NDEBUG_ARBITRATION | 116 | #define dprint(flg, format...) \ |
117 | ({ \ | ||
118 | if (NDEBUG & (flg)) \ | ||
119 | printk(KERN_DEBUG format); \ | ||
120 | }) | ||
121 | |||
117 | #define ARB_PRINTK(format, args...) \ | 122 | #define ARB_PRINTK(format, args...) \ |
118 | printk(KERN_DEBUG format , ## args) | 123 | dprint(NDEBUG_ARBITRATION, format , ## args) |
119 | #else | ||
120 | #define ARB_PRINTK(format, args...) | ||
121 | #endif | ||
122 | #if NDEBUG & NDEBUG_AUTOSENSE | ||
123 | #define ASEN_PRINTK(format, args...) \ | 124 | #define ASEN_PRINTK(format, args...) \ |
124 | printk(KERN_DEBUG format , ## args) | 125 | dprint(NDEBUG_AUTOSENSE, format , ## args) |
125 | #else | ||
126 | #define ASEN_PRINTK(format, args...) | ||
127 | #endif | ||
128 | #if NDEBUG & NDEBUG_DMA | ||
129 | #define DMA_PRINTK(format, args...) \ | 126 | #define DMA_PRINTK(format, args...) \ |
130 | printk(KERN_DEBUG format , ## args) | 127 | dprint(NDEBUG_DMA, format , ## args) |
131 | #else | ||
132 | #define DMA_PRINTK(format, args...) | ||
133 | #endif | ||
134 | #if NDEBUG & NDEBUG_HANDSHAKE | ||
135 | #define HSH_PRINTK(format, args...) \ | 128 | #define HSH_PRINTK(format, args...) \ |
136 | printk(KERN_DEBUG format , ## args) | 129 | dprint(NDEBUG_HANDSHAKE, format , ## args) |
137 | #else | ||
138 | #define HSH_PRINTK(format, args...) | ||
139 | #endif | ||
140 | #if NDEBUG & NDEBUG_INFORMATION | ||
141 | #define INF_PRINTK(format, args...) \ | 130 | #define INF_PRINTK(format, args...) \ |
142 | printk(KERN_DEBUG format , ## args) | 131 | dprint(NDEBUG_INFORMATION, format , ## args) |
143 | #else | ||
144 | #define INF_PRINTK(format, args...) | ||
145 | #endif | ||
146 | #if NDEBUG & NDEBUG_INIT | ||
147 | #define INI_PRINTK(format, args...) \ | 132 | #define INI_PRINTK(format, args...) \ |
148 | printk(KERN_DEBUG format , ## args) | 133 | dprint(NDEBUG_INIT, format , ## args) |
149 | #else | ||
150 | #define INI_PRINTK(format, args...) | ||
151 | #endif | ||
152 | #if NDEBUG & NDEBUG_INTR | ||
153 | #define INT_PRINTK(format, args...) \ | 134 | #define INT_PRINTK(format, args...) \ |
154 | printk(KERN_DEBUG format , ## args) | 135 | dprint(NDEBUG_INTR, format , ## args) |
155 | #else | ||
156 | #define INT_PRINTK(format, args...) | ||
157 | #endif | ||
158 | #if NDEBUG & NDEBUG_LINKED | ||
159 | #define LNK_PRINTK(format, args...) \ | 136 | #define LNK_PRINTK(format, args...) \ |
160 | printk(KERN_DEBUG format , ## args) | 137 | dprint(NDEBUG_LINKED, format , ## args) |
161 | #else | ||
162 | #define LNK_PRINTK(format, args...) | ||
163 | #endif | ||
164 | #if NDEBUG & NDEBUG_MAIN | ||
165 | #define MAIN_PRINTK(format, args...) \ | 138 | #define MAIN_PRINTK(format, args...) \ |
166 | printk(KERN_DEBUG format , ## args) | 139 | dprint(NDEBUG_MAIN, format , ## args) |
167 | #else | ||
168 | #define MAIN_PRINTK(format, args...) | ||
169 | #endif | ||
170 | #if NDEBUG & NDEBUG_NO_DATAOUT | ||
171 | #define NDAT_PRINTK(format, args...) \ | 140 | #define NDAT_PRINTK(format, args...) \ |
172 | printk(KERN_DEBUG format , ## args) | 141 | dprint(NDEBUG_NO_DATAOUT, format , ## args) |
173 | #else | ||
174 | #define NDAT_PRINTK(format, args...) | ||
175 | #endif | ||
176 | #if NDEBUG & NDEBUG_NO_WRITE | ||
177 | #define NWR_PRINTK(format, args...) \ | 142 | #define NWR_PRINTK(format, args...) \ |
178 | printk(KERN_DEBUG format , ## args) | 143 | dprint(NDEBUG_NO_WRITE, format , ## args) |
179 | #else | ||
180 | #define NWR_PRINTK(format, args...) | ||
181 | #endif | ||
182 | #if NDEBUG & NDEBUG_PIO | ||
183 | #define PIO_PRINTK(format, args...) \ | 144 | #define PIO_PRINTK(format, args...) \ |
184 | printk(KERN_DEBUG format , ## args) | 145 | dprint(NDEBUG_PIO, format , ## args) |
185 | #else | ||
186 | #define PIO_PRINTK(format, args...) | ||
187 | #endif | ||
188 | #if NDEBUG & NDEBUG_PSEUDO_DMA | ||
189 | #define PDMA_PRINTK(format, args...) \ | 146 | #define PDMA_PRINTK(format, args...) \ |
190 | printk(KERN_DEBUG format , ## args) | 147 | dprint(NDEBUG_PSEUDO_DMA, format , ## args) |
191 | #else | ||
192 | #define PDMA_PRINTK(format, args...) | ||
193 | #endif | ||
194 | #if NDEBUG & NDEBUG_QUEUES | ||
195 | #define QU_PRINTK(format, args...) \ | 148 | #define QU_PRINTK(format, args...) \ |
196 | printk(KERN_DEBUG format , ## args) | 149 | dprint(NDEBUG_QUEUES, format , ## args) |
197 | #else | ||
198 | #define QU_PRINTK(format, args...) | ||
199 | #endif | ||
200 | #if NDEBUG & NDEBUG_RESELECTION | ||
201 | #define RSL_PRINTK(format, args...) \ | 150 | #define RSL_PRINTK(format, args...) \ |
202 | printk(KERN_DEBUG format , ## args) | 151 | dprint(NDEBUG_RESELECTION, format , ## args) |
203 | #else | ||
204 | #define RSL_PRINTK(format, args...) | ||
205 | #endif | ||
206 | #if NDEBUG & NDEBUG_SELECTION | ||
207 | #define SEL_PRINTK(format, args...) \ | 152 | #define SEL_PRINTK(format, args...) \ |
208 | printk(KERN_DEBUG format , ## args) | 153 | dprint(NDEBUG_SELECTION, format , ## args) |
209 | #else | ||
210 | #define SEL_PRINTK(format, args...) | ||
211 | #endif | ||
212 | #if NDEBUG & NDEBUG_USLEEP | ||
213 | #define USL_PRINTK(format, args...) \ | 154 | #define USL_PRINTK(format, args...) \ |
214 | printk(KERN_DEBUG format , ## args) | 155 | dprint(NDEBUG_USLEEP, format , ## args) |
215 | #else | ||
216 | #define USL_PRINTK(format, args...) | ||
217 | #endif | ||
218 | #if NDEBUG & NDEBUG_LAST_BYTE_SENT | ||
219 | #define LBS_PRINTK(format, args...) \ | 156 | #define LBS_PRINTK(format, args...) \ |
220 | printk(KERN_DEBUG format , ## args) | 157 | dprint(NDEBUG_LAST_BYTE_SENT, format , ## args) |
221 | #else | ||
222 | #define LBS_PRINTK(format, args...) | ||
223 | #endif | ||
224 | #if NDEBUG & NDEBUG_RESTART_SELECT | ||
225 | #define RSS_PRINTK(format, args...) \ | 158 | #define RSS_PRINTK(format, args...) \ |
226 | printk(KERN_DEBUG format , ## args) | 159 | dprint(NDEBUG_RESTART_SELECT, format , ## args) |
227 | #else | ||
228 | #define RSS_PRINTK(format, args...) | ||
229 | #endif | ||
230 | #if NDEBUG & NDEBUG_EXTENDED | ||
231 | #define EXT_PRINTK(format, args...) \ | 160 | #define EXT_PRINTK(format, args...) \ |
232 | printk(KERN_DEBUG format , ## args) | 161 | dprint(NDEBUG_EXTENDED, format , ## args) |
233 | #else | ||
234 | #define EXT_PRINTK(format, args...) | ||
235 | #endif | ||
236 | #if NDEBUG & NDEBUG_ABORT | ||
237 | #define ABRT_PRINTK(format, args...) \ | 162 | #define ABRT_PRINTK(format, args...) \ |
238 | printk(KERN_DEBUG format , ## args) | 163 | dprint(NDEBUG_ABORT, format , ## args) |
239 | #else | ||
240 | #define ABRT_PRINTK(format, args...) | ||
241 | #endif | ||
242 | #if NDEBUG & NDEBUG_TAGS | ||
243 | #define TAG_PRINTK(format, args...) \ | 164 | #define TAG_PRINTK(format, args...) \ |
244 | printk(KERN_DEBUG format , ## args) | 165 | dprint(NDEBUG_TAGS, format , ## args) |
245 | #else | ||
246 | #define TAG_PRINTK(format, args...) | ||
247 | #endif | ||
248 | #if NDEBUG & NDEBUG_MERGING | ||
249 | #define MER_PRINTK(format, args...) \ | 166 | #define MER_PRINTK(format, args...) \ |
250 | printk(KERN_DEBUG format , ## args) | 167 | dprint(NDEBUG_MERGING, format , ## args) |
251 | #else | ||
252 | #define MER_PRINTK(format, args...) | ||
253 | #endif | ||
254 | 168 | ||
255 | /* conditional macros for NCR5380_print_{,phase,status} */ | 169 | /* conditional macros for NCR5380_print_{,phase,status} */ |
256 | 170 | ||