From: Hauke Mehrtens Date: Sat, 14 May 2011 17:47:32 +0000 (+0200) Subject: compat: add header linux/printk.h X-Git-Tag: compat-2011-05-19~4 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=95e33817c189bf6289dac6d851268cac8748bd6f;p=~tnikolova%2Fcompat%2F.git compat: add header linux/printk.h 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 --- 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 + +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,36)) +#include_next +#else +#include +#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,35)) */ + +#endif /* _COMPAT_LINUX_PRINTK_H */