diff options
Diffstat (limited to 'drivers/ieee1394/sbp2.c')
-rw-r--r-- | drivers/ieee1394/sbp2.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c index 1c8ce7acba82..668b4512deff 100644 --- a/drivers/ieee1394/sbp2.c +++ b/drivers/ieee1394/sbp2.c | |||
@@ -203,9 +203,9 @@ static u32 global_outstanding_command_orbs = 0; | |||
203 | #define outstanding_orb_incr global_outstanding_command_orbs++ | 203 | #define outstanding_orb_incr global_outstanding_command_orbs++ |
204 | #define outstanding_orb_decr global_outstanding_command_orbs-- | 204 | #define outstanding_orb_decr global_outstanding_command_orbs-- |
205 | #else | 205 | #else |
206 | #define SBP2_ORB_DEBUG(fmt, args...) | 206 | #define SBP2_ORB_DEBUG(fmt, args...) do {} while (0) |
207 | #define outstanding_orb_incr | 207 | #define outstanding_orb_incr do {} while (0) |
208 | #define outstanding_orb_decr | 208 | #define outstanding_orb_decr do {} while (0) |
209 | #endif | 209 | #endif |
210 | 210 | ||
211 | #ifdef CONFIG_IEEE1394_SBP2_DEBUG_DMA | 211 | #ifdef CONFIG_IEEE1394_SBP2_DEBUG_DMA |
@@ -217,8 +217,8 @@ static u32 global_outstanding_command_orbs = 0; | |||
217 | --global_outstanding_dmas, ## args) | 217 | --global_outstanding_dmas, ## args) |
218 | static u32 global_outstanding_dmas = 0; | 218 | static u32 global_outstanding_dmas = 0; |
219 | #else | 219 | #else |
220 | #define SBP2_DMA_ALLOC(fmt, args...) | 220 | #define SBP2_DMA_ALLOC(fmt, args...) do {} while (0) |
221 | #define SBP2_DMA_FREE(fmt, args...) | 221 | #define SBP2_DMA_FREE(fmt, args...) do {} while (0) |
222 | #endif | 222 | #endif |
223 | 223 | ||
224 | #if CONFIG_IEEE1394_SBP2_DEBUG >= 2 | 224 | #if CONFIG_IEEE1394_SBP2_DEBUG >= 2 |
@@ -232,7 +232,7 @@ static u32 global_outstanding_dmas = 0; | |||
232 | #define SBP2_NOTICE(fmt, args...) HPSB_NOTICE("sbp2: "fmt, ## args) | 232 | #define SBP2_NOTICE(fmt, args...) HPSB_NOTICE("sbp2: "fmt, ## args) |
233 | #define SBP2_WARN(fmt, args...) HPSB_WARN("sbp2: "fmt, ## args) | 233 | #define SBP2_WARN(fmt, args...) HPSB_WARN("sbp2: "fmt, ## args) |
234 | #else | 234 | #else |
235 | #define SBP2_DEBUG(fmt, args...) | 235 | #define SBP2_DEBUG(fmt, args...) do {} while (0) |
236 | #define SBP2_INFO(fmt, args...) HPSB_INFO("sbp2: "fmt, ## args) | 236 | #define SBP2_INFO(fmt, args...) HPSB_INFO("sbp2: "fmt, ## args) |
237 | #define SBP2_NOTICE(fmt, args...) HPSB_NOTICE("sbp2: "fmt, ## args) | 237 | #define SBP2_NOTICE(fmt, args...) HPSB_NOTICE("sbp2: "fmt, ## args) |
238 | #define SBP2_WARN(fmt, args...) HPSB_WARN("sbp2: "fmt, ## args) | 238 | #define SBP2_WARN(fmt, args...) HPSB_WARN("sbp2: "fmt, ## args) |
@@ -375,8 +375,8 @@ static inline void sbp2util_cpu_to_be32_buffer(void *buffer, int length) | |||
375 | } | 375 | } |
376 | #else /* BIG_ENDIAN */ | 376 | #else /* BIG_ENDIAN */ |
377 | /* Why waste the cpu cycles? */ | 377 | /* Why waste the cpu cycles? */ |
378 | #define sbp2util_be32_to_cpu_buffer(x,y) | 378 | #define sbp2util_be32_to_cpu_buffer(x,y) do {} while (0) |
379 | #define sbp2util_cpu_to_be32_buffer(x,y) | 379 | #define sbp2util_cpu_to_be32_buffer(x,y) do {} while (0) |
380 | #endif | 380 | #endif |
381 | 381 | ||
382 | #ifdef CONFIG_IEEE1394_SBP2_PACKET_DUMP | 382 | #ifdef CONFIG_IEEE1394_SBP2_PACKET_DUMP |
@@ -412,7 +412,7 @@ static void sbp2util_packet_dump(void *buffer, int length, char *dump_name, | |||
412 | return; | 412 | return; |
413 | } | 413 | } |
414 | #else | 414 | #else |
415 | #define sbp2util_packet_dump(w,x,y,z) | 415 | #define sbp2util_packet_dump(w,x,y,z) do {} while (0) |
416 | #endif | 416 | #endif |
417 | 417 | ||
418 | static DECLARE_WAIT_QUEUE_HEAD(access_wq); | 418 | static DECLARE_WAIT_QUEUE_HEAD(access_wq); |