aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2018-06-14 10:28:52 -0400
committerGreentime Hu <greentime@andestech.com>2018-06-19 03:41:31 -0400
commita78945c357f58665d6a5da8a69e085898e831c70 (patch)
tree371247437d35bfbad0d7176370c5ead84b94866a
parent97d1e3dc8d98f97b65350f8ab221e6d061705abc (diff)
nds32: Fix build error caused by configuration flag rename
Fix build error on nds32 due to the merge of commit e3d5980568f ("lib: Rename compiler intrinsic selects to GENERIC_LIB_*") during the 4.18 merge window which renames Kconfig symbols. This had raced with commit aeaa7af744fa ("nds32: lib: To use generic lib instead of libgcc to prevent the symbol undefined issue.") merged late in the 4.17 cycle, which added selects to nds32 using the original Kconfig symbol names. When they came together in merge commit 763f96944c95 ("Merge tag 'mips_4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux") this resulted in the following build errors: nds32le-linux-ld: kernel/time/timekeeping.o: in function `timekeeping_init': timekeeping.c:(.init.text+0x140): undefined reference to `__ashldi3' nds32le-linux-ld: timekeeping.c:(.init.text+0x144): undefined reference to `__ashldi3' nds32le-linux-ld: timekeeping.c:(.init.text+0x17e): undefined reference to `__lshrdi3' nds32le-linux-ld: timekeeping.c:(.init.text+0x182): undefined reference to `__lshrdi3' nds32le-linux-ld: drivers/clocksource/mmio.o: in function `clocksource_mmio_init': mmio.c:(.init.text+0x54): undefined reference to `__lshrdi3' nds32le-linux-ld: mmio.c:(.init.text+0x58): undefined reference to `__lshrdi3' Rename all 6 selects in nds32 and adjust the ordering accordingly to be alphabetical. Fixes: 763f96944c95 ("Merge tag 'mips_4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux") Signed-off-by: Guenter Roeck <linux@roeck-us.net> [jhogan@kernel.org: Rename all 6 symbols, sort, update commit message] Signed-off-by: James Hogan <jhogan@kernel.org> Cc: Greentime Hu <green.hu@gmail.com> Cc: Vincent Chen <deanbo422@gmail.com> Cc: Matt Redfearn <matt.redfearn@mips.com> Cc: Palmer Dabbelt <palmer@sifive.com> Acked-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com>
-rw-r--r--arch/nds32/Kconfig12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/nds32/Kconfig b/arch/nds32/Kconfig
index 6aed974276d8..34f7222c5efe 100644
--- a/arch/nds32/Kconfig
+++ b/arch/nds32/Kconfig
@@ -12,17 +12,17 @@ config NDS32
12 select CLONE_BACKWARDS 12 select CLONE_BACKWARDS
13 select COMMON_CLK 13 select COMMON_CLK
14 select DMA_NONCOHERENT_OPS 14 select DMA_NONCOHERENT_OPS
15 select GENERIC_ASHLDI3
16 select GENERIC_ASHRDI3
17 select GENERIC_LSHRDI3
18 select GENERIC_CMPDI2
19 select GENERIC_MULDI3
20 select GENERIC_UCMPDI2
21 select GENERIC_ATOMIC64 15 select GENERIC_ATOMIC64
22 select GENERIC_CPU_DEVICES 16 select GENERIC_CPU_DEVICES
23 select GENERIC_CLOCKEVENTS 17 select GENERIC_CLOCKEVENTS
24 select GENERIC_IRQ_CHIP 18 select GENERIC_IRQ_CHIP
25 select GENERIC_IRQ_SHOW 19 select GENERIC_IRQ_SHOW
20 select GENERIC_LIB_ASHLDI3
21 select GENERIC_LIB_ASHRDI3
22 select GENERIC_LIB_CMPDI2
23 select GENERIC_LIB_LSHRDI3
24 select GENERIC_LIB_MULDI3
25 select GENERIC_LIB_UCMPDI2
26 select GENERIC_STRNCPY_FROM_USER 26 select GENERIC_STRNCPY_FROM_USER
27 select GENERIC_STRNLEN_USER 27 select GENERIC_STRNLEN_USER
28 select GENERIC_TIME_VSYSCALL 28 select GENERIC_TIME_VSYSCALL