]> git.sur5r.net Git - groeck-nct6775/commitdiff
compat.h: define pr_warn and pr_warn_ratelimited macros if not already defined 18/head
authorKarl Voigtland <karl.voigtland@gmail.com>
Fri, 7 Feb 2014 02:39:02 +0000 (11:39 +0900)
committerKarl Voigtland <karl.voigtland@gmail.com>
Fri, 7 Feb 2014 02:39:02 +0000 (11:39 +0900)
pr_warn and pr_warn_ratelimited not added until kernel 2.6.35

compat.h

index a697a6299678a21ae80f657394bbce51ca8b8566..458caf4e61a9b9ea7a9afa235a4f4fd7d11dfed1 100644 (file)
--- a/compat.h
+++ b/compat.h
@@ -213,4 +213,12 @@ module_exit(__driver##_exit);
 #define release_region(a, b)
 #endif
 
+#ifndef pr_warn
+/* pr_warn macro not introduced until 2.6.35 */
+#define pr_warn pr_warning
+#endif
+#ifndef pr_warn_ratelimited
+#define pr_warn_ratelimited pr_warning_ratelimited
+#endif
+
 #endif /* __COMPAT_H */