From 0ec85f9fba983979739c1e34dc0a73c371e93226 Mon Sep 17 00:00:00 2001 From: Karl Voigtland Date: Fri, 7 Feb 2014 11:39:02 +0900 Subject: [PATCH] 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 --- compat.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */ -- 2.39.2