[stable:linux-5.17.y 2088/2645] ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x2c): relocation R_RISCV_HI20 out of range: 535133 is not in [-524288, 524287]; references wait_for_initramfs.__if_trace.0

kernel test robot
2022-06-01T01:26:37Z

BCC: lkp@intel.com
CC: linux-kernel@vger.kernel.org
TO: Daniel Starke <daniel.starke@siemens.com>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>

tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.17.y
head: 39555c443b4f5c2406e81d4ad66224f963e43d23
commit: 5c2ac89f540bbfad7ae5156e3356bdf47731e52a [2088/2645] tty: n_gsm: fix wrong DLCI release order
config: riscv-randconfig-r042-20220529 (https://download.01.org/0day-ci/archive/20220601/202206010956.rOpdU4dr-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0776c48f9b7e69fa447bee57c7c0985caa856be9)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=5c2ac89f540bbfad7ae5156e3356bdf47731e52a
git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
git fetch --no-tags stable linux-5.17.y
git checkout 5c2ac89f540bbfad7ae5156e3356bdf47731e52a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x2c): relocation R_RISCV_HI20 out of range: 535133 is not in [-524288, 524287]; references wait_for_initramfs.__if_trace.0
>>> referenced by initramfs.c
>>> defined in init/built-in.a(initramfs.o)
--
>> ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x20): relocation R_RISCV_HI20 out of range: 535848 is not in [-524288, 524287]; references initramfs_cookie
>>> referenced by initramfs.c
>>> defined in init/built-in.a(initramfs.o)

--
0-DAY CI Kernel Test Service