Skip to content

Commit

Permalink
XTENSA: warn about including <asm/rwsem.h> directly.
Browse files Browse the repository at this point in the history
For consistency with other architectures, warn about including
<asm-xtensa/rwsem.h> directly.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Zankel <chris@zankel.net>
  • Loading branch information
Robert P. J. Day authored and Chris Zankel committed Oct 15, 2008
1 parent 4309659 commit 14ac12d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/asm-xtensa/rwsem.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#ifndef _XTENSA_RWSEM_H
#define _XTENSA_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>
#include <asm/atomic.h>
Expand Down

0 comments on commit 14ac12d

Please sign in to comment.