[linux-stable-rc:linux-5.15.y 460/9999] undefined reference to `fb_set_suspend'

From: kernel test robot
Date: Tue Sep 13 2022 - 19:22:03 EST


Hi Greg,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.15.y
head: dbbecf1f4a70fc81ce87ab06e01ebfb7b0e2de03
commit: b06962406eca3d0ca818e2cda96e1b2e1f82bc94 [460/9999] Revert "drm: fb_helper: fix CONFIG_FB dependency"
config: csky-randconfig-r024-20220912 (https://download.01.org/0day-ci/archive/20220914/202209140735.HVUioUdX-lkp@xxxxxxxxx/config)
compiler: csky-linux-gcc (GCC) 12.1.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/stable/linux-stable-rc.git/commit/?id=b06962406eca3d0ca818e2cda96e1b2e1f82bc94
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.15.y
git checkout b06962406eca3d0ca818e2cda96e1b2e1f82bc94
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=csky SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_set_suspend':
>> (.text+0x21a): undefined reference to `fb_set_suspend'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_resume_worker':
drm_fb_helper.c:(.text+0x246): undefined reference to `fb_set_suspend'
csky-linux-ld: drm_fb_helper.c:(.text+0x284): undefined reference to `fb_set_suspend'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_unregister_fbi':
>> (.text+0x3f6): undefined reference to `unregister_framebuffer'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_fini':
>> (.text+0x488): undefined reference to `fb_dealloc_cmap'
csky-linux-ld: (.text+0x498): undefined reference to `framebuffer_release'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_read':
>> (.text+0x53c): undefined reference to `fb_sys_read'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `setcmap_new_gamma_lut':
drm_fb_helper.c:(.text+0x61c): undefined reference to `unregister_framebuffer'
csky-linux-ld: drm_fb_helper.c:(.text+0x628): undefined reference to `fb_dealloc_cmap'
csky-linux-ld: drm_fb_helper.c:(.text+0x62c): undefined reference to `framebuffer_release'
csky-linux-ld: drm_fb_helper.c:(.text+0x650): undefined reference to `fb_sys_read'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `__drm_fb_helper_initial_config_and_unlock':
drm_fb_helper.c:(.text+0x13f8): undefined reference to `register_framebuffer'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_initial_config':
>> (.text+0x1500): undefined reference to `register_framebuffer'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_alloc_fbi':
>> (.text+0x1918): undefined reference to `framebuffer_alloc'
csky-linux-ld: (.text+0x1944): undefined reference to `fb_alloc_cmap'
csky-linux-ld: (.text+0x19a2): undefined reference to `fb_dealloc_cmap'
csky-linux-ld: (.text+0x19ca): undefined reference to `framebuffer_release'
csky-linux-ld: (.text+0x1a10): undefined reference to `framebuffer_alloc'
csky-linux-ld: (.text+0x1a18): undefined reference to `fb_alloc_cmap'
csky-linux-ld: (.text+0x1a24): undefined reference to `fb_dealloc_cmap'
csky-linux-ld: (.text+0x1a28): undefined reference to `framebuffer_release'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_set_suspend_unlocked':
(.text+0x1dd8): undefined reference to `fb_set_suspend'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `setcmap_atomic.isra.0':
drm_fb_helper.c:(.text+0x2094): undefined reference to `fb_set_suspend'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_generic_probe':
drm_fb_helper.c:(.text+0x2868): undefined reference to `fb_deferred_io_init'
csky-linux-ld: drm_fb_helper.c:(.text+0x2904): undefined reference to `fb_deferred_io_init'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_imageblit':
>> (.text+0x2c02): undefined reference to `cfb_imageblit'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_copyarea':
>> (.text+0x2c32): undefined reference to `cfb_copyarea'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_fillrect':
>> (.text+0x2c62): undefined reference to `cfb_fillrect'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_imageblit':
>> (.text+0x2c92): undefined reference to `sys_imageblit'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_copyarea':
>> (.text+0x2cc2): undefined reference to `sys_copyarea'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_fillrect':
>> (.text+0x2cf2): undefined reference to `sys_fillrect'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_write':
>> (.text+0x2d20): undefined reference to `fb_sys_write'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_fb_fillrect':
>> drm_fb_helper.c:(.text+0x2e16): undefined reference to `cfb_fillrect'
csky-linux-ld: drm_fb_helper.c:(.text+0x2e26): undefined reference to `sys_fillrect'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_fb_imageblit':
drm_fb_helper.c:(.text+0x2e6e): undefined reference to `cfb_imageblit'
csky-linux-ld: drm_fb_helper.c:(.text+0x2e7e): undefined reference to `sys_imageblit'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_fb_copyarea':
drm_fb_helper.c:(.text+0x2ec6): undefined reference to `cfb_copyarea'
csky-linux-ld: drm_fb_helper.c:(.text+0x2ed6): undefined reference to `sys_copyarea'
csky-linux-ld: drm_fb_helper.c:(.text+0x2efc): undefined reference to `cfb_imageblit'
>> csky-linux-ld: drm_fb_helper.c:(.text+0x2f04): undefined reference to `cfb_copyarea'
csky-linux-ld: drm_fb_helper.c:(.text+0x2f08): undefined reference to `cfb_fillrect'
csky-linux-ld: drm_fb_helper.c:(.text+0x2f0c): undefined reference to `sys_imageblit'
csky-linux-ld: drm_fb_helper.c:(.text+0x2f10): undefined reference to `sys_copyarea'
csky-linux-ld: drm_fb_helper.c:(.text+0x2f14): undefined reference to `sys_fillrect'
>> csky-linux-ld: drm_fb_helper.c:(.text+0x2f18): undefined reference to `fb_sys_write'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_cleanup':
drm_fb_helper.c:(.text+0x3080): undefined reference to `fb_deferred_io_cleanup'
csky-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_client_unregister':
drm_fb_helper.c:(.text+0x3184): undefined reference to `fb_deferred_io_cleanup'

--
0-DAY CI Kernel Test Service
https://01.org/lkp