List Info

Thread: IA64: Prevent people from directly including .




IA64: Prevent people from directly including <asm/rwsem.h>.
country flaguser name
Canada
2007-07-18 06:33:08
Signed-off-by: Robert P. J. Day <rpjdaymindspring.com>

---

diff --git a/include/asm-ia64/rwsem.h
b/include/asm-ia64/rwsem.h
index 2d1640c..99651d7 100644
--- a/include/asm-ia64/rwsem.h
+++ b/include/asm-ia64/rwsem.h
 -21,6
+21,10 
 #ifndef _ASM_IA64_RWSEM_H
 #define _ASM_IA64_RWSEM_H

+#ifndef _LINUX_RWSEM_H
+#error "Please don't include <asm/rwsem.h>
directly, use <linux/rwsem.h> instead."
+#endif
+
 #include <linux/list.h>
 #include <linux/spinlock.h>


-- 
============================================================
============
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http:
//fsdev.net/wiki/index.php?title=Main_Page
============================================================
============
-
To unsubscribe from this list: send the line
"unsubscribe linux-ia64" in
the body of a message to majordomovger.kernel.org
More majordomo info at  http://vge
r.kernel.org/majordomo-info.html

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )