Add an assembly guard around linux/bitops.h
This file can be included by any header but it includes C code. Guard it to avoid errors when compiling ASL, etc. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
43a218b653
commit
1779b8a96a
@ -1,7 +1,7 @@
|
|||||||
#ifndef _LINUX_BITOPS_H
|
#ifndef _LINUX_BITOPS_H
|
||||||
#define _LINUX_BITOPS_H
|
#define _LINUX_BITOPS_H
|
||||||
|
|
||||||
#ifndef USE_HOSTCC
|
#if !defined(USE_HOSTCC) && !defined(__ASSEMBLY__)
|
||||||
|
|
||||||
#include <asm/types.h>
|
#include <asm/types.h>
|
||||||
#include <asm-generic/bitsperlong.h>
|
#include <asm-generic/bitsperlong.h>
|
||||||
@ -218,6 +218,6 @@ static inline void generic_clear_bit(int nr, volatile unsigned long *addr)
|
|||||||
*p &= ~mask;
|
*p &= ~mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !USE_HOSTCC */
|
#endif /* !USE_HOSTCC && !__ASSEMBLY__ */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user