Commit 0fed9584 authored by Linus Torvalds's avatar Linus Torvalds

Make dev_dbg() "use" it's 'dev' argument even when not debugging.

This avoids warnings about unused variables.
parent c16c278b
...@@ -406,7 +406,7 @@ extern void firmware_unregister(struct subsystem *); ...@@ -406,7 +406,7 @@ extern void firmware_unregister(struct subsystem *);
#define dev_dbg(dev, format, arg...) \ #define dev_dbg(dev, format, arg...) \
dev_printk(KERN_DEBUG , dev , format , ## arg) dev_printk(KERN_DEBUG , dev , format , ## arg)
#else #else
#define dev_dbg(dev, format, arg...) do {} while (0) #define dev_dbg(dev, format, arg...) do { (void)(dev); } while (0)
#endif #endif
#define dev_err(dev, format, arg...) \ #define dev_err(dev, format, arg...) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment