From: Karl Voigtland Date: Fri, 7 Feb 2014 02:39:02 +0000 (+0900) Subject: compat.h: define pr_warn and pr_warn_ratelimited macros if not already defined X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F18%2Fhead;p=groeck-nct6775 compat.h: define pr_warn and pr_warn_ratelimited macros if not already defined pr_warn and pr_warn_ratelimited not added until kernel 2.6.35 --- 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 */