Skip to content

Commit

Permalink
arch: remove CONFIG_GENERIC_FIND_{NEXT_BIT,BIT_LE,LAST_BIT}
Browse files Browse the repository at this point in the history
By the previous style change, CONFIG_GENERIC_FIND_NEXT_BIT,
CONFIG_GENERIC_FIND_BIT_LE, and CONFIG_GENERIC_FIND_LAST_BIT are not used
to test for existence of find bitops anymore.

Signed-off-by: Akinobu Mita <[email protected]>
Acked-by: Greg Ungerer <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Russell King <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Heiko Carstens <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
mita authored and torvalds committed May 27, 2011
1 parent 19de85e commit 63e424c
Show file tree
Hide file tree
Showing 24 changed files with 2 additions and 126 deletions.
4 changes: 0 additions & 4 deletions arch/alpha/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y

config GENERIC_CALIBRATE_DELAY
bool
default y
Expand Down
3 changes: 0 additions & 3 deletions arch/blackfin/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ config GENERIC_BUG
config ZONE_DMA
def_bool y

config GENERIC_FIND_NEXT_BIT
def_bool y

config GENERIC_GPIO
def_bool y

Expand Down
4 changes: 0 additions & 4 deletions arch/cris/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y

config GENERIC_HWEIGHT
bool
default y
Expand Down
8 changes: 0 additions & 8 deletions arch/frv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ config RWSEM_GENERIC_SPINLOCK
config RWSEM_XCHGADD_ALGORITHM
bool

config GENERIC_FIND_NEXT_BIT
bool
default y

config GENERIC_FIND_BIT_LE
bool
default y

config GENERIC_HWEIGHT
bool
default y
Expand Down
8 changes: 0 additions & 8 deletions arch/h8300/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y

config GENERIC_FIND_BIT_LE
bool
default y

config GENERIC_HWEIGHT
bool
default y
Expand Down
4 changes: 0 additions & 4 deletions arch/ia64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ config HUGETLB_PAGE_SIZE_VARIABLE
depends on HUGETLB_PAGE
default y

config GENERIC_FIND_NEXT_BIT
bool
default y

config GENERIC_CALIBRATE_DELAY
bool
default y
Expand Down
8 changes: 0 additions & 8 deletions arch/m32r/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,6 @@ config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y

config GENERIC_FIND_BIT_LE
bool
default y

config GENERIC_HWEIGHT
bool
default y
Expand Down
4 changes: 0 additions & 4 deletions arch/m68k/Kconfig.nommu
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ config FPU
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y

config GENERIC_GPIO
bool
default n
Expand Down
6 changes: 0 additions & 6 deletions arch/microblaze/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ config ARCH_HAS_ILOG2_U32
config ARCH_HAS_ILOG2_U64
def_bool n

config GENERIC_FIND_NEXT_BIT
def_bool y

config GENERIC_FIND_BIT_LE
def_bool y

config GENERIC_HWEIGHT
def_bool y

Expand Down
8 changes: 0 additions & 8 deletions arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -821,14 +821,6 @@ config ARCH_SUPPORTS_OPROFILE
bool
default y if !MIPS_MT_SMTC

config GENERIC_FIND_NEXT_BIT
bool
default y

config GENERIC_FIND_BIT_LE
bool
default y

config GENERIC_HWEIGHT
bool
default y
Expand Down
3 changes: 0 additions & 3 deletions arch/mn10300/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ config GENERIC_CALIBRATE_DELAY
config GENERIC_CMOS_UPDATE
def_bool n

config GENERIC_FIND_NEXT_BIT
def_bool y

config GENERIC_HWEIGHT
def_bool y

Expand Down
8 changes: 0 additions & 8 deletions arch/parisc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y

config GENERIC_FIND_BIT_LE
bool
default y

config GENERIC_BUG
bool
default y
Expand Down
8 changes: 0 additions & 8 deletions arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,6 @@ config GENERIC_HWEIGHT
bool
default y

config GENERIC_FIND_NEXT_BIT
bool
default y

config GENERIC_FIND_BIT_LE
bool
default y

config GENERIC_GPIO
bool
help
Expand Down
3 changes: 0 additions & 3 deletions arch/score/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ config NO_DMA
config RWSEM_GENERIC_SPINLOCK
def_bool y

config GENERIC_FIND_NEXT_BIT
def_bool y

config GENERIC_HWEIGHT
def_bool y

Expand Down
6 changes: 0 additions & 6 deletions arch/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ config GENERIC_CSUM
def_bool y
depends on SUPERH64

config GENERIC_FIND_NEXT_BIT
def_bool y

config GENERIC_FIND_BIT_LE
def_bool y

config GENERIC_HWEIGHT
def_bool y

Expand Down
8 changes: 0 additions & 8 deletions arch/sparc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,6 @@ config RWSEM_XCHGADD_ALGORITHM
bool
default y if SPARC64

config GENERIC_FIND_NEXT_BIT
bool
default y

config GENERIC_FIND_BIT_LE
bool
default y

config GENERIC_HWEIGHT
bool
default y if !ULTRA_HAS_POPULATION_COUNT
Expand Down
1 change: 0 additions & 1 deletion arch/tile/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ config TILE
def_bool y
select HAVE_KVM if !TILEGX
select GENERIC_FIND_FIRST_BIT
select GENERIC_FIND_NEXT_BIT
select USE_GENERIC_SMP_HELPERS
select CC_OPTIMIZE_FOR_SIZE
select HAVE_GENERIC_HARDIRQS
Expand Down
1 change: 0 additions & 1 deletion arch/um/Kconfig.x86
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ endmenu
config UML_X86
def_bool y
select GENERIC_FIND_FIRST_BIT
select GENERIC_FIND_NEXT_BIT

config 64BIT
bool
Expand Down
1 change: 0 additions & 1 deletion arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ config X86
select HAVE_GENERIC_HARDIRQS
select HAVE_SPARSE_IRQ
select GENERIC_FIND_FIRST_BIT
select GENERIC_FIND_NEXT_BIT
select GENERIC_IRQ_PROBE
select GENERIC_PENDING_IRQ if SMP
select GENERIC_IRQ_SHOW
Expand Down
6 changes: 0 additions & 6 deletions arch/xtensa/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ config XTENSA
config RWSEM_XCHGADD_ALGORITHM
def_bool y

config GENERIC_FIND_NEXT_BIT
def_bool y

config GENERIC_FIND_BIT_LE
def_bool y

config GENERIC_HWEIGHT
def_bool y

Expand Down
2 changes: 0 additions & 2 deletions include/linux/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ static inline unsigned long __ffs64(u64 word)

#ifdef __KERNEL__

#ifdef CONFIG_GENERIC_FIND_LAST_BIT
#ifndef find_last_bit
/**
* find_last_bit - find the last set bit in a memory region
Expand All @@ -160,7 +159,6 @@ static inline unsigned long __ffs64(u64 word)
extern unsigned long find_last_bit(const unsigned long *addr,
unsigned long size);
#endif
#endif /* CONFIG_GENERIC_FIND_LAST_BIT */

#endif /* __KERNEL__ */
#endif
10 changes: 0 additions & 10 deletions lib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ config RATIONAL
config GENERIC_FIND_FIRST_BIT
bool

config GENERIC_FIND_NEXT_BIT
bool

config GENERIC_FIND_BIT_LE
bool

config GENERIC_FIND_LAST_BIT
bool
default y

config CRC_CCITT
tristate "CRC-CCITT functions"
help
Expand Down
8 changes: 2 additions & 6 deletions lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \
idr.o int_sqrt.o extable.o prio_tree.o \
sha1.o irq_regs.o reciprocal_div.o argv_split.o \
proportions.o prio_heap.o ratelimit.o show_mem.o \
is_single_threaded.o plist.o decompress.o
is_single_threaded.o plist.o decompress.o find_next_bit.o

lib-$(CONFIG_MMU) += ioremap.o
lib-$(CONFIG_SMP) += cpumask.o
Expand All @@ -22,7 +22,7 @@ lib-y += kobject.o kref.o klist.o
obj-y += bcd.o div64.o sort.o parser.o halfmd4.o debug_locks.o random32.o \
bust_spinlocks.o hexdump.o kasprintf.o bitmap.o scatterlist.o \
string_helpers.o gcd.o lcm.o list_sort.o uuid.o flex_array.o \
bsearch.o
bsearch.o find_last_bit.o
obj-y += kstrtox.o
obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o

Expand All @@ -39,10 +39,6 @@ obj-$(CONFIG_DEBUG_LOCKING_API_SELFTESTS) += locking-selftest.o
obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
lib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
lib-$(CONFIG_GENERIC_FIND_FIRST_BIT) += find_next_bit.o
lib-$(CONFIG_GENERIC_FIND_NEXT_BIT) += find_next_bit.o
lib-$(CONFIG_GENERIC_FIND_BIT_LE) += find_next_bit.o
obj-$(CONFIG_GENERIC_FIND_LAST_BIT) += find_last_bit.o

CFLAGS_hweight.o = $(subst $(quote),,$(CONFIG_ARCH_HWEIGHT_CFLAGS))
obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o
Expand Down
6 changes: 0 additions & 6 deletions lib/find_next_bit.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#define BITOP_WORD(nr) ((nr) / BITS_PER_LONG)

#ifdef CONFIG_GENERIC_FIND_NEXT_BIT
#ifndef find_next_bit
/*
* Find the next set bit in a memory region.
Expand Down Expand Up @@ -107,9 +106,7 @@ unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size,
}
EXPORT_SYMBOL(find_next_zero_bit);
#endif
#endif /* CONFIG_GENERIC_FIND_NEXT_BIT */

#ifdef CONFIG_GENERIC_FIND_FIRST_BIT
#ifndef find_first_bit
/*
* Find the first set bit in a memory region.
Expand Down Expand Up @@ -165,10 +162,8 @@ unsigned long find_first_zero_bit(const unsigned long *addr, unsigned long size)
}
EXPORT_SYMBOL(find_first_zero_bit);
#endif
#endif /* CONFIG_GENERIC_FIND_FIRST_BIT */

#ifdef __BIG_ENDIAN
#ifdef CONFIG_GENERIC_FIND_BIT_LE

/* include/linux/byteorder does not support "unsigned long" type */
static inline unsigned long ext2_swabp(const unsigned long * x)
Expand Down Expand Up @@ -287,5 +282,4 @@ unsigned long find_next_bit_le(const void *addr, unsigned
EXPORT_SYMBOL(find_next_bit_le);
#endif

#endif /* CONFIG_GENERIC_FIND_BIT_LE */
#endif /* __BIG_ENDIAN */

0 comments on commit 63e424c

Please sign in to comment.