[alsa-devel] [PATCH] include/adriver.h: Define pr_warn to allow compilation against older kernels
From: Luke Yelavich luke.yelavich@canonical.com
In my testing of the daily tarball, I am unable to build against 2.6.32. I assume that older kernels would be affected in a similar way.
Signed-off-by: Luke Yelavich luke.yelavich@canonical.com --- include/adriver.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/adriver.h b/include/adriver.h index 1c7e87b..495e640 100644 --- a/include/adriver.h +++ b/include/adriver.h @@ -1566,6 +1566,10 @@ XXX_DEFINE_STRTO(ull, unsigned long long); #define pr_warning(fmt, arg...) \ printk(KERN_WARNING fmt, ##arg) #endif +#ifndef pr_warn +#define pr_warn(fmt, arg...) \ + printk(KERN_WARNING fmt, ##arg) +#endif #ifndef pr_notice #define pr_notice(fmt, arg...) \ printk(KERN_NOTICE fmt, ##arg)
At Fri, 24 Sep 2010 15:06:43 +1000, Luke Yelavich wrote:
From: Luke Yelavich luke.yelavich@canonical.com
In my testing of the daily tarball, I am unable to build against 2.6.32. I assume that older kernels would be affected in a similar way.
Signed-off-by: Luke Yelavich luke.yelavich@canonical.com
Applied now. Thanks.
Takashi
include/adriver.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/adriver.h b/include/adriver.h index 1c7e87b..495e640 100644 --- a/include/adriver.h +++ b/include/adriver.h @@ -1566,6 +1566,10 @@ XXX_DEFINE_STRTO(ull, unsigned long long); #define pr_warning(fmt, arg...) \ printk(KERN_WARNING fmt, ##arg) #endif +#ifndef pr_warn +#define pr_warn(fmt, arg...) \
- printk(KERN_WARNING fmt, ##arg)
+#endif #ifndef pr_notice #define pr_notice(fmt, arg...) \ printk(KERN_NOTICE fmt, ##arg) -- 1.7.1
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
participants (2)
-
Luke Yelavich
-
Takashi Iwai