[PATCH 3/4] printk: Don't allow direct inclusion
From: Joe Perches
Date: Wed May 25 2011 - 13:04:51 EST
printk.h is a subfile of kernel.h, do not allow
it to be included directly.
Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
include/linux/printk.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/linux/printk.h b/include/linux/printk.h
index ee048e7..3736545 100644
--- a/include/linux/printk.h
+++ b/include/linux/printk.h
@@ -1,3 +1,7 @@
+#ifndef _LINUX_KERNEL_H
+#error "Do not include <linux/printk.h>, use <linux/kernel.h> instead"
+#endif
+
#ifndef __KERNEL_PRINTK__
#define __KERNEL_PRINTK__
--
1.7.4.rc3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/