Skip to content

Commit

Permalink
remove GENERIC_FIND_FIRST_BIT
Browse files Browse the repository at this point in the history
Signed-off-by: Yury Norov <yury.norov@gmail.com>
  • Loading branch information
YuryNorov committed Mar 21, 2021
1 parent 5698239 commit c17320c
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion arch/arc/Kconfig
Expand Up @@ -19,7 +19,6 @@ config ARC
select COMMON_CLK
select DMA_DIRECT_REMAP
select GENERIC_ATOMIC64 if !ISA_ARCV2 || !(ARC_HAS_LL64 && ARC_HAS_LLSC)
select GENERIC_FIND_FIRST_BIT
# for now, we don't need GENERIC_IRQ_PROBE, CONFIG_GENERIC_IRQ_CHIP
select GENERIC_IRQ_SHOW
select GENERIC_PCI_IOMAP
Expand Down
1 change: 0 additions & 1 deletion arch/s390/Kconfig
Expand Up @@ -125,7 +125,6 @@ config S390
select GENERIC_CPU_AUTOPROBE
select GENERIC_CPU_VULNERABILITIES
select GENERIC_ENTRY
select GENERIC_FIND_FIRST_BIT
select GENERIC_GETTIMEOFDAY
select GENERIC_PTDUMP
select GENERIC_SMP_IDLE_THREAD
Expand Down
1 change: 0 additions & 1 deletion arch/x86/Kconfig
Expand Up @@ -123,7 +123,6 @@ config X86
select GENERIC_CPU_VULNERABILITIES
select GENERIC_EARLY_IOREMAP
select GENERIC_ENTRY
select GENERIC_FIND_FIRST_BIT
select GENERIC_IOMAP
select GENERIC_IRQ_EFFECTIVE_AFF_MASK if SMP
select GENERIC_IRQ_MATRIX_ALLOCATOR if X86_LOCAL_APIC
Expand Down
1 change: 0 additions & 1 deletion arch/x86/um/Kconfig
Expand Up @@ -8,7 +8,6 @@ endmenu

config UML_X86
def_bool y
select GENERIC_FIND_FIRST_BIT

config 64BIT
bool "64-bit kernel" if "$(SUBARCH)" = "x86"
Expand Down
12 changes: 0 additions & 12 deletions include/asm-generic/bitops/find.h
Expand Up @@ -95,8 +95,6 @@ unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size,
}
#endif

#ifdef CONFIG_GENERIC_FIND_FIRST_BIT

/**
* find_first_bit - find the first set bit in a memory region
* @addr: The address to start the search at
Expand Down Expand Up @@ -136,16 +134,6 @@ unsigned long find_first_zero_bit(const unsigned long *addr, unsigned long size)

return _find_first_zero_bit(addr, size);
}
#else /* CONFIG_GENERIC_FIND_FIRST_BIT */

#ifndef find_first_bit
#define find_first_bit(addr, size) find_next_bit((addr), (size), 0)
#endif
#ifndef find_first_zero_bit
#define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0)
#endif

#endif /* CONFIG_GENERIC_FIND_FIRST_BIT */

#ifndef find_last_bit
/**
Expand Down
3 changes: 0 additions & 3 deletions lib/Kconfig
Expand Up @@ -59,9 +59,6 @@ config GENERIC_STRNLEN_USER
config GENERIC_NET_UTILS
bool

config GENERIC_FIND_FIRST_BIT
bool

source "lib/math/Kconfig"

config NO_GENERIC_PCI_IOPORT_MAP
Expand Down

0 comments on commit c17320c

Please sign in to comment.