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=0ec85f9fba983979739c1e34dc0a73c371e93226;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 */