Skip to contentSkip to conversation

include/adriver.h: Define pr_warn to allow compilation against older kernels

PATCH In review Luke Yelavich 2 participants 2 messages Sep 24, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include/adriver.h: Define pr_warn to allow compilation against older kernels

From: Luke Yelavich <[email protected]>

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.

---
 include/adriver.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
include/adriver.h +4 -0
index 1c7e87b..495e640 100644
@@ -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)
Signature · 1 line
1.7.1
#1 lore raw

At Fri, 24 Sep 2010 15:06:43 +1000,

Quoted 7 lines · Luke Yelavich

From: Luke Yelavich <[email protected]>

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.

Applied now. Thanks.

Takashi

Quoted 27 lines
---
 include/adriver.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
include/adriver.h +4 -0
index 1c7e87b..495e640 100644
@@ -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)
Signature · 6 lines
1.7.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel