projects
/
~emulex
/
for-vlad
/
old
/
compat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbafa57
)
compat backport no_printk
author
Hauke Mehrtens
<hauke@hauke-m.de>
Fri, 17 Dec 2010 22:41:37 +0000
(14:41 -0800)
committer
Luis R. Rodriguez
<lrodriguez@atheros.com>
Sat, 18 Dec 2010 20:07:00 +0000
(12:07 -0800)
This is needed by brcm80211.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
include/linux/compat-2.6.36.h
patch
|
blob
|
history
diff --git
a/include/linux/compat-2.6.36.h
b/include/linux/compat-2.6.36.h
index
83b7f06
..
1f2f507
100644
(file)
--- a/
include/linux/compat-2.6.36.h
+++ b/
include/linux/compat-2.6.36.h
@@
-90,6
+90,13
@@
struct pm_qos_request_list {
#endif
+/*
+ * Dummy printk for disabled debugging statements to use whilst maintaining
+ * gcc's format and side-effect checking.
+ */
+static inline __attribute__ ((format (printf, 1, 2)))
+int no_printk(const char *s, ...) { return 0; }
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)) */
#endif /* LINUX_26_36_COMPAT_H */