[POWERPC] Prevent direct inclusion of <asm/rwsem.h>.
authorRobert P. J. Day <rpjday@mindspring.com>
Wed, 18 Jul 2007 13:36:36 +0000 (23:36 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 22 Sep 2007 04:49:21 +0000 (14:49 +1000)
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc/syslib/ocp.c
include/asm-powerpc/rwsem.h
include/asm-ppc/ocp.h

index 491fe9a572293f78df894d2a7ed2c9650e649143..3f5be2c5ce99468ed0dc3586bbd5813f4851a29f 100644 (file)
 #include <linux/pm.h>
 #include <linux/bootmem.h>
 #include <linux/device.h>
+#include <linux/rwsem.h>
 
 #include <asm/io.h>
 #include <asm/ocp.h>
 #include <asm/errno.h>
-#include <asm/rwsem.h>
 #include <asm/semaphore.h>
 
 //#define DBG(x)       printk x
index e929145e1e46700bdef35c903acb6725ef5c66e3..cefc14728cc567535f99ea6b417afa68ff667158 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _ASM_POWERPC_RWSEM_H
 #define _ASM_POWERPC_RWSEM_H
 
+#ifndef _LINUX_RWSEM_H
+#error "Please don't include <asm/rwsem.h> directly, use <linux/rwsem.h> instead."
+#endif
+
 #ifdef __KERNEL__
 
 /*
index 16dbc7d174506e2b2754210ab24e7451f3cca6e7..1379a4f76de3bf51af5273949dfb5c96e4f6a82b 100644 (file)
 #include <linux/init.h>
 #include <linux/list.h>
 #include <linux/device.h>
+#include <linux/rwsem.h>
 
 #include <asm/mmu.h>
 #include <asm/ocp_ids.h>
-#include <asm/rwsem.h>
 #include <asm/semaphore.h>
 
 #ifdef CONFIG_PPC_OCP