radix tree test suite: Remove duplicate bitops code
authorMatthew Wilcox <mawilcox@microsoft.com>
Fri, 16 Dec 2016 16:52:43 +0000 (11:52 -0500)
committerMatthew Wilcox <mawilcox@microsoft.com>
Sat, 28 Jan 2017 02:29:39 +0000 (21:29 -0500)
commitc68a2aab3300df4106f368568bd7361d6f465993
treedeed685b65c643322a7213b16b1953b7e3b3acf9
parent35534c869c62f59203c1822769bbef14e894a9e9
radix tree test suite: Remove duplicate bitops code

By adding __set_bit and __clear_bit to the tools include directory, we
can share the bitops code.  This reveals an include loop between kernel.h,
log2.h, bitmap.h and bitops.h.  Break it the same way as the kernel does;
by moving the kernel.h include from bitops.h to bitmap.h.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
14 files changed:
tools/include/asm-generic/bitops/atomic.h
tools/include/linux/bitmap.h
tools/include/linux/bitops.h
tools/testing/radix-tree/linux/bitops.h [deleted file]
tools/testing/radix-tree/linux/bitops/__ffs.h [deleted file]
tools/testing/radix-tree/linux/bitops/ffs.h [deleted file]
tools/testing/radix-tree/linux/bitops/ffz.h [deleted file]
tools/testing/radix-tree/linux/bitops/find.h [deleted file]
tools/testing/radix-tree/linux/bitops/fls.h [deleted file]
tools/testing/radix-tree/linux/bitops/fls64.h [deleted file]
tools/testing/radix-tree/linux/bitops/hweight.h [deleted file]
tools/testing/radix-tree/linux/bitops/le.h [deleted file]
tools/testing/radix-tree/linux/bitops/non-atomic.h [deleted file]
tools/testing/radix-tree/linux/kernel.h