Skip to content

Commit

Permalink
lib: Rename compiler intrinsic selects to GENERIC_LIB_*
Browse files Browse the repository at this point in the history
When these are included into arch Kconfig files, maintaining
alphabetical ordering of the selects means these get split up. To allow
for keeping things tidier and alphabetical, rename the selects to
GENERIC_LIB_*

Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>
Acked-by: Palmer Dabbelt <palmer@sifive.com>
Cc: Antony Pavlov <antonynpavlov@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-riscv@lists.infradead.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/19049/
Signed-off-by: James Hogan <jhogan@kernel.org>
  • Loading branch information
Matt Redfearn authored and James Hogan committed Apr 23, 2018
1 parent aad5a53 commit e3d5980
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions arch/riscv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ config ARCH_RV32I
bool "RV32I"
select CPU_SUPPORTS_32BIT_KERNEL
select 32BIT
select GENERIC_ASHLDI3
select GENERIC_ASHRDI3
select GENERIC_LSHRDI3
select GENERIC_LIB_ASHLDI3
select GENERIC_LIB_ASHRDI3
select GENERIC_LIB_LSHRDI3

config ARCH_RV64I
bool "RV64I"
Expand Down
12 changes: 6 additions & 6 deletions lib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -604,20 +604,20 @@ config STRING_SELFTEST

endmenu

config GENERIC_ASHLDI3
config GENERIC_LIB_ASHLDI3
bool

config GENERIC_ASHRDI3
config GENERIC_LIB_ASHRDI3
bool

config GENERIC_LSHRDI3
config GENERIC_LIB_LSHRDI3
bool

config GENERIC_MULDI3
config GENERIC_LIB_MULDI3
bool

config GENERIC_CMPDI2
config GENERIC_LIB_CMPDI2
bool

config GENERIC_UCMPDI2
config GENERIC_LIB_UCMPDI2
bool
12 changes: 6 additions & 6 deletions lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ obj-$(CONFIG_SBITMAP) += sbitmap.o
obj-$(CONFIG_PARMAN) += parman.o

# GCC library routines
obj-$(CONFIG_GENERIC_ASHLDI3) += ashldi3.o
obj-$(CONFIG_GENERIC_ASHRDI3) += ashrdi3.o
obj-$(CONFIG_GENERIC_LSHRDI3) += lshrdi3.o
obj-$(CONFIG_GENERIC_MULDI3) += muldi3.o
obj-$(CONFIG_GENERIC_CMPDI2) += cmpdi2.o
obj-$(CONFIG_GENERIC_UCMPDI2) += ucmpdi2.o
obj-$(CONFIG_GENERIC_LIB_ASHLDI3) += ashldi3.o
obj-$(CONFIG_GENERIC_LIB_ASHRDI3) += ashrdi3.o
obj-$(CONFIG_GENERIC_LIB_LSHRDI3) += lshrdi3.o
obj-$(CONFIG_GENERIC_LIB_MULDI3) += muldi3.o
obj-$(CONFIG_GENERIC_LIB_CMPDI2) += cmpdi2.o
obj-$(CONFIG_GENERIC_LIB_UCMPDI2) += ucmpdi2.o

0 comments on commit e3d5980

Please sign in to comment.