]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/kernel.h
block: add dma alignment and padding support to blk_rq_map_kern
[linux-2.6-omap-h63xx.git] / include / linux / kernel.h
index 2df44e77327002938f08d345f34e5e773cc37363..cd6d02cf854d8e22d566c169326644ed5f708865 100644 (file)
@@ -293,10 +293,8 @@ extern void print_hex_dump_bytes(const char *prefix_str, int prefix_type,
 #define pr_debug(fmt, arg...) \
        printk(KERN_DEBUG fmt, ##arg)
 #else
-static inline int __attribute__ ((format (printf, 1, 2))) pr_debug(const char * fmt, ...)
-{
-       return 0;
-}
+#define pr_debug(fmt, arg...) \
+       ({ if (0) printk(KERN_DEBUG fmt, ##arg); 0; })
 #endif
 
 /*