undefined reference to `cpu_sa110_suspend_size'

From: kernel test robot
Date: Sun Jan 24 2021 - 04:43:35 EST


Hi Stephan,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e1ae4b0be15891faf46d390e9f3dc9bd71a8cae1
commit: a871be6b8eee13a35a3e8e56c62770ef17ee9220 cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver
date: 8 months ago
config: arm-randconfig-r035-20210124 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a871be6b8eee13a35a3e8e56c62770ef17ee9220
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a871be6b8eee13a35a3e8e56c62770ef17ee9220
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

arm-linux-gnueabi-ld: arch/arm/kernel/sleep.o: in function `__cpu_suspend':
>> (.text+0x60): undefined reference to `cpu_sa110_suspend_size'
kernel/softirq.o: in function `spawn_ksoftirqd':
softirq.c:(.init.text+0x40): relocation truncated to fit: R_ARM_PC24 against symbol `__cpuhp_setup_state' defined in .text section in kernel/cpu.o
softirq.c:(.init.text+0x48): relocation truncated to fit: R_ARM_PC24 against symbol `smpboot_register_percpu_thread' defined in .text section in kernel/smpboot.o
softirq.c:(.init.text+0x64): relocation truncated to fit: R_ARM_PC24 against symbol `ftrace_likely_update' defined in .text section in kernel/trace/trace_branch.o
init/main.o: in function `do_early_param':
main.c:(.init.text+0x378): relocation truncated to fit: R_ARM_PC24 against symbol `parameq' defined in .text section in kernel/params.o
main.c:(.init.text+0x440): relocation truncated to fit: R_ARM_PC24 against symbol `printk' defined in .text.unlikely section in kernel/printk/printk.o
init/main.o: in function `unknown_bootoption':
main.c:(.init.text+0x6dc): relocation truncated to fit: R_ARM_PC24 against symbol `parameqn' defined in .text section in kernel/params.o
main.c:(.init.text+0x770): relocation truncated to fit: R_ARM_PC24 against symbol `printk' defined in .text.unlikely section in kernel/printk/printk.o
init/main.o: in function `xbc_snprint_cmdline':
main.c:(.init.text+0xc90): relocation truncated to fit: R_ARM_PC24 against symbol `__stack_chk_fail' defined in .text section in kernel/panic.o
init/main.o: in function `trace_initcall_finish_cb':
main.c:(.init.text+0xce8): relocation truncated to fit: R_ARM_PC24 against symbol `ktime_get' defined in .text section in kernel/time/timekeeping.o
main.c:(.init.text+0xd18): relocation truncated to fit: R_ARM_PC24 against symbol `printk' defined in .text.unlikely section in kernel/printk/printk.o
init/main.o: in function `trace_initcall_start_cb':
main.c:(.init.text+0xd74): additional relocation overflows omitted from the output
arm-linux-gnueabi-ld: arch/arm/kernel/suspend.o: in function `__cpu_suspend_save':
>> suspend.c:(.text+0x114): undefined reference to `cpu_sa110_do_suspend'
>> arm-linux-gnueabi-ld: suspend.c:(.text+0x138): undefined reference to `cpu_sa110_do_resume'
arm-linux-gnueabi-ld: drivers/cpuidle/cpuidle-qcom-spm.o: in function `spm_dev_probe':
cpuidle-qcom-spm.c:(.text+0x370): undefined reference to `cpu_resume_arm'
arm-linux-gnueabi-ld: drivers/firmware/qcom_scm-smc.o: in function `__scm_smc_do_quirk':
qcom_scm-smc.c:(.text+0x6c): undefined reference to `__arm_smccc_smc'
arm-linux-gnueabi-ld: drivers/firmware/qcom_scm-legacy.o: in function `scm_legacy_call':
qcom_scm-legacy.c:(.text+0x168): undefined reference to `__arm_smccc_smc'
arm-linux-gnueabi-ld: drivers/firmware/qcom_scm-legacy.o: in function `scm_legacy_call_atomic':
qcom_scm-legacy.c:(.text+0x5f0): undefined reference to `__arm_smccc_smc'

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for ARM_CPU_SUSPEND
Depends on ARCH_SUSPEND_POSSIBLE
Selected by
- ARM_QCOM_SPM_CPUIDLE && CPU_IDLE && (ARM || ARM64) && (ARCH_QCOM || COMPILE_TEST && !ARM64

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip