cfi_probe.c:(.xiptext+0x6f): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: __kmalloc

From: kernel test robot
Date: Fri Dec 22 2023 - 16:55:33 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5414aea7b7508d01235ea0c95064ad66395c3239
commit: 03ce34cf8f50e4c62f9a4b62caffdba1165ca977 xtensa: add XIP-aware MTD support
date: 4 months ago
config: xtensa-randconfig-m031-20220228 (https://download.01.org/0day-ci/archive/20231223/202312230505.kAgJr7BM-lkp@xxxxxxxxx/config)
compiler: xtensa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231223/202312230505.kAgJr7BM-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312230505.kAgJr7BM-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

drivers/mtd/chips/cfi_probe.o: in function `cfi_chip_setup':
>> cfi_probe.c:(.xiptext+0x6f): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: __kmalloc
>> cfi_probe.c:(.xiptext+0x7e): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: memset
>> cfi_probe.c:(.xiptext+0x8e): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
>> cfi_probe.c:(.xiptext+0x20e): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_send_gen_cmd
cfi_probe.c:(.xiptext+0x223): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_send_gen_cmd
cfi_probe.c:(.xiptext+0x237): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_send_gen_cmd
cfi_probe.c:(.xiptext+0x24c): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_send_gen_cmd
>> cfi_probe.c:(.xiptext+0x2b6): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.text.unlikely+0x4)
>> cfi_probe.c:(.xiptext+0x2d7): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: _printk
cfi_probe.c:(.xiptext+0x303): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: _printk
cfi_probe.c:(.xiptext+0x31c): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: _printk
drivers/mtd/chips/cfi_probe.o: in function `cfi_probe_chip':
cfi_probe.c:(.xiptext+0x3e6): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: _printk
cfi_probe.c:(.xiptext+0x44b): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: _printk
drivers/mtd/chips/cfi_util.o: in function `cfi_qry_present':
cfi_util.c:(.xiptext+0x10): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x20): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x2e): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x86): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
drivers/mtd/chips/cfi_util.o: in function `cfi_qry_mode_off':
cfi_util.c:(.xiptext+0xa0): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0xdb): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0xfc): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x128): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
drivers/mtd/chips/cfi_util.o: in function `cfi_qry_mode_on':
cfi_util.c:(.xiptext+0x154): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x170): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x19c): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x1c2): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x1f0): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x216): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x246): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x27c): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x2ac): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x2d2): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x300): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x334): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x362): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_util.c:(.xiptext+0x3b2): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: _printk
cfi_util.c:(.xiptext+0x3be): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: __kmalloc
drivers/mtd/chips/cfi_cmdset_0002.o: in function `fixup_convert_atmel_pri':
cfi_cmdset_0002.c:(.text+0x757): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x80)
cfi_cmdset_0002.c:(.text+0x796): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x80)
drivers/mtd/chips/cfi_cmdset_0002.o: in function `do_panic_write_oneword':
cfi_cmdset_0002.c:(.text+0x884): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x80)
cfi_cmdset_0002.c:(.text+0x897): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x80)
drivers/mtd/chips/cfi_cmdset_0002.o: in function `cfi_fixup_m29ew_erase_suspend':
cfi_cmdset_0002.c:(.text+0xb38): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x80)
drivers/mtd/chips/cfi_cmdset_0002.o: in function `put_chip.isra.0':
cfi_cmdset_0002.c:(.text+0xbfb): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x80)
drivers/mtd/chips/cfi_cmdset_0002.o: in function `get_chip':
cfi_cmdset_0002.c:(.text+0xd13): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x7b4)
drivers/mtd/chips/cfi_cmdset_0002.o: in function `do_atmel_lock':
cfi_cmdset_0002.c:(.text+0x1030): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x80)
cfi_cmdset_0002.c:(.text+0x105c): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x148)
drivers/mtd/chips/cfi_cmdset_0002.o: in function `fwh_xxlock_oneblock':
cfi_cmdset_0002.c:(.text+0x1150): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_qry_mode_on
cfi_cmdset_0002.c:(.text+0x116f): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_qry_mode_off
drivers/mtd/chips/cfi_cmdset_0002.o: in function `cfi_amdstd_otp_walk':
cfi_cmdset_0002.c:(.text+0x1426): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x814)
cfi_cmdset_0002.c:(.text+0x1597): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x80)
drivers/mtd/chips/cfi_cmdset_0002.o: in function `cfi_amdstd_lock_user_prot_reg':
cfi_cmdset_0002.c:(.text+0x15c2): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x148)
drivers/mtd/chips/cfi_cmdset_0002.o: in function `cfi_amdstd_reboot':
cfi_cmdset_0002.c:(.text+0x1d07): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x7b4)
drivers/mtd/chips/cfi_cmdset_0002.o: in function `cfi_amdstd_secsi_read':
cfi_cmdset_0002.c:(.text+0x1da3): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0xa90)
cfi_cmdset_0002.c:(.text+0x1e1a): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.xiptext+0x7b4)
drivers/mtd/chips/cfi_cmdset_0002.o: in function `cfi_amdstd_write_buffers':
cfi_cmdset_0002.c:(.text+0x2100): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_read_pri
drivers/mtd/chips/cfi_cmdset_0002.o: in function `xip_enable':
cfi_cmdset_0002.c:(.xiptext+0x13): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
drivers/mtd/chips/cfi_cmdset_0002.o: in function `do_write_buffer_reset':
cfi_cmdset_0002.c:(.xiptext+0x4c): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_send_gen_cmd
cfi_cmdset_0002.c:(.xiptext+0x60): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_send_gen_cmd
cfi_cmdset_0002.c:(.xiptext+0x76): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_send_gen_cmd
drivers/mtd/chips/cfi_cmdset_0002.o: in function `chip_ready':
cfi_cmdset_0002.c:(.xiptext+0xa3): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_cmdset_0002.c:(.xiptext+0xbe): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_send_gen_cmd
drivers/mtd/chips/cfi_cmdset_0002.o: in function `chip_good':
cfi_cmdset_0002.c:(.xiptext+0x167): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
drivers/mtd/chips/cfi_cmdset_0002.o: in function `xip_udelay':
cfi_cmdset_0002.c:(.xiptext+0x1d2): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_cmdset_0002.c:(.xiptext+0x226): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_cmdset_0002.c:(.xiptext+0x25b): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_build_cmd
cfi_cmdset_0002.c:(.xiptext+0x282): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: mutex_unlock
cfi_cmdset_0002.c:(.xiptext+0x28e): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: mutex_lock_nested
cfi_cmdset_0002.c:(.xiptext+0x2e2): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.text+0x9f8)
cfi_cmdset_0002.c:(.xiptext+0x32a): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: add_wait_queue
cfi_cmdset_0002.c:(.xiptext+0x332): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: mutex_unlock
cfi_cmdset_0002.c:(.xiptext+0x338): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: schedule
cfi_cmdset_0002.c:(.xiptext+0x342): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: remove_wait_queue
cfi_cmdset_0002.c:(.xiptext+0x34c): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: mutex_lock_nested
cfi_cmdset_0002.c:(.xiptext+0x3b0): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: __usecs_to_jiffies
cfi_cmdset_0002.c:(.xiptext+0x3ea): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: add_wait_queue
drivers/mtd/chips/cfi_cmdset_0002.o: in function `do_write_buffer_wait':
cfi_cmdset_0002.c:(.xiptext+0x3f7): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: mutex_unlock
cfi_cmdset_0002.c:(.xiptext+0x3fd): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: schedule
cfi_cmdset_0002.c:(.xiptext+0x407): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: remove_wait_queue
cfi_cmdset_0002.c:(.xiptext+0x41a): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: mutex_lock_nested
cfi_cmdset_0002.c:(.xiptext+0x446): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: _printk
cfi_cmdset_0002.c:(.xiptext+0x468): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: (.text+0x590)
cfi_cmdset_0002.c:(.xiptext+0x4a2): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_send_gen_cmd
cfi_cmdset_0002.c:(.xiptext+0x4b8): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_send_gen_cmd
cfi_cmdset_0002.c:(.xiptext+0x4cf): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: cfi_send_gen_cmd
drivers/mtd/chips/cfi_cmdset_0002.o: in function `do_write_oneword_once':
cfi_cmdset_0002.c:(.xiptext+0x527): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: add_wait_queue
cfi_cmdset_0002.c:(.xiptext+0x536): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: mutex_unlock
cfi_cmdset_0002.c:(.xiptext+0x53c): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: schedule

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki