Skip to content

Commit

Permalink
[POWERPC] Prevent direct inclusion of <asm/rwsem.h>.
Browse files Browse the repository at this point in the history
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Robert P. J. Day authored and Paul Mackerras committed Sep 22, 2007
1 parent 555ddbb commit 20b31b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/ppc/syslib/ocp.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
#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
Expand Down
4 changes: 4 additions & 0 deletions include/asm-powerpc/rwsem.h
Original file line number Diff line number Diff line change
@@ -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__

/*
Expand Down
2 changes: 1 addition & 1 deletion include/asm-ppc/ocp.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
#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
Expand Down

0 comments on commit 20b31b5

Please sign in to comment.