提交 711be605 编写于 作者: R Robert P. J. Day 提交者: Paul Mundt

sh: Warn against direct inclusion of <asm/rwsem.h>.

Signed-off-by: NRobert P. J. Day <rpjday@mindspring.com>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 b9601c5e
/* /*
* include/asm-ppc/rwsem.h: R/W semaphores for SH using the stuff * include/asm-sh/rwsem.h: R/W semaphores for SH using the stuff
* in lib/rwsem.c. * in lib/rwsem.c.
*/ */
#ifndef _ASM_SH_RWSEM_H #ifndef _ASM_SH_RWSEM_H
#define _ASM_SH_RWSEM_H #define _ASM_SH_RWSEM_H
#ifndef _LINUX_RWSEM_H
#error "please don't include asm/rwsem.h directly, use linux/rwsem.h instead"
#endif
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/list.h> #include <linux/list.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册