blk: rq_data_dir() should not return a boolean
[cris-mirror.git] / arch / cris / include / asm / bitops.h
blob8062cb52d343220eb596a49a7cc383368e17b5f6
1 /* asm/bitops.h for Linux/CRIS
3 * TODO: asm versions if speed is needed
5 * All bit operations return 0 if the bit was cleared before the
6 * operation and != 0 if it was not.
8 * bit 0 is the LSB of addr; bit 32 is the LSB of (addr+1).
9 */
11 #ifndef _CRIS_BITOPS_H
12 #define _CRIS_BITOPS_H
14 /* Currently this is unsuitable for consumption outside the kernel. */
15 #ifdef __KERNEL__
17 #ifndef _LINUX_BITOPS_H
18 #error only <linux/bitops.h> can be included directly
19 #endif
21 #include <arch/bitops.h>
22 #include <linux/compiler.h>
23 #include <asm/barrier.h>
25 #include <asm-generic/bitops/atomic.h>
26 #include <asm-generic/bitops/non-atomic.h>
29 * Since we define it "external", it collides with the built-in
30 * definition, which doesn't have the same semantics. We don't want to
31 * use -fno-builtin, so just hide the name ffs.
33 #define ffs(x) kernel_ffs(x)
35 #include <asm-generic/bitops/fls.h>
36 #include <asm-generic/bitops/__fls.h>
37 #include <asm-generic/bitops/fls64.h>
38 #include <asm-generic/bitops/hweight.h>
39 #include <asm-generic/bitops/find.h>
40 #include <asm-generic/bitops/lock.h>
42 #include <asm-generic/bitops/le.h>
44 #include <asm-generic/bitops/ext2-atomic-setbit.h>
46 #include <asm-generic/bitops/sched.h>
48 #endif /* __KERNEL__ */
50 #endif /* _CRIS_BITOPS_H */