From: Guenter Roeck Date: Fri, 7 Feb 2014 03:33:16 +0000 (-0800) Subject: Merge pull request #18 from karlvoigtland/master X-Git-Url: https://git.sur5r.net/?p=groeck-nct6775;a=commitdiff_plain;h=47cac70f1681f42e7b5d22bc827d57d746186575;hp=f361ce9049e115e479fd0fb79a76e1ace1365b2f Merge pull request #18 from karlvoigtland/master compat.h: define pr_warn and pr_warn_ratelimited macros if not already ... --- diff --git a/compat.h b/compat.h index a697a62..458caf4 100644 --- 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 */