[PATCH] compat: add header linux/printk.h

Subsystems: printk, the rest

STALE5596d

2 messages, 2 authors, 2011-05-19 · open the first message on its own page

[PATCH] compat: add header linux/printk.h

From: Hauke Mehrtens <hauke@hauke-m.de>
Date: 2011-05-14 17:47:39

Some drivers are including linux/printk.h and this is not available for
kernel < 2.6.37, but the needed declared methods are all in
linux/kernel.h.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 include/linux/printk.h |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 include/linux/printk.h
diff --git a/include/linux/printk.h b/include/linux/printk.h
new file mode 100644
index 0000000..c0822ac
--- /dev/null
+++ b/include/linux/printk.h
@@ -0,0 +1,12 @@
+#ifndef _COMPAT_LINUX_PRINTK_H
+#define _COMPAT_LINUX_PRINTK_H 1
+
+#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,36))
+#include_next <linux/printk.h>
+#else
+#include <linux/kernel.h>
+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,35)) */
+
+#endif	/* _COMPAT_LINUX_PRINTK_H */
-- 
1.7.4.1

Re: [PATCH] compat: add header linux/printk.h

From: Luis R. Rodriguez <hidden>
Date: 2011-05-19 21:20:04

On Sat, May 14, 2011 at 10:47 AM, Hauke Mehrtens [off-list ref] wrote:
Some drivers are including linux/printk.h and this is not available for
kernel < 2.6.37, but the needed declared methods are all in
linux/kernel.h.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Applied, thanks!

  Luis
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help