powerpc-linux-ld: warning: orphan section `.init.plt' from `drivers/platform/chrome/cros_ec_trace.o' being placed in section `.init.plt'

kernel test robot
2022-02-06T01:49:10Z

Hi Gwendal,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 90c9e950c0def5c354b4a6154a2ddda3e5f214ac
commit: d453ceb6549af8798913de6a20444cb7200fdb69 platform/chrome: sensorhub: Add trace events for sample
date: 6 months ago
config: powerpc-randconfig-c004-20220206 (https://download.01.org/0day-ci/archive/20220206/202202060652.lkqKaFAm-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.2.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=d453ceb6549af8798913de6a20444cb7200fdb69
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d453ceb6549af8798913de6a20444cb7200fdb69
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

>> powerpc-linux-ld: warning: orphan section `.init.plt' from `drivers/platform/chrome/cros_ec_trace.o' being placed in section `.init.plt'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_set_suspend':
drm_fb_helper.c:(.text+0x3b0): undefined reference to `fb_set_suspend'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_resume_worker':
drm_fb_helper.c:(.text+0x3f0): undefined reference to `fb_set_suspend'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_unregister_fbi':
drm_fb_helper.c:(.text+0x604): undefined reference to `unregister_framebuffer'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_fini':
drm_fb_helper.c:(.text+0x6a0): undefined reference to `fb_dealloc_cmap'
powerpc-linux-ld: drm_fb_helper.c:(.text+0x6ac): undefined reference to `framebuffer_release'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_read':
drm_fb_helper.c:(.text+0x7d8): undefined reference to `fb_sys_read'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_alloc_fbi':
drm_fb_helper.c:(.text+0x1a78): undefined reference to `framebuffer_alloc'
powerpc-linux-ld: drm_fb_helper.c:(.text+0x1a9c): undefined reference to `fb_alloc_cmap'
powerpc-linux-ld: drm_fb_helper.c:(.text+0x1adc): undefined reference to `fb_dealloc_cmap'
powerpc-linux-ld: drm_fb_helper.c:(.text+0x1b1c): undefined reference to `framebuffer_release'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_generic_probe':
drm_fb_helper.c:(.text+0x1cb4): undefined reference to `fb_deferred_io_init'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `__drm_fb_helper_initial_config_and_unlock':
drm_fb_helper.c:(.text+0x1e18): undefined reference to `register_framebuffer'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_set_suspend_unlocked':
drm_fb_helper.c:(.text+0x282c): undefined reference to `fb_set_suspend'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_write':
drm_fb_helper.c:(.text+0x2ec0): undefined reference to `fb_sys_write'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_fillrect':
drm_fb_helper.c:(.text+0x2f38): undefined reference to `sys_fillrect'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_copyarea':
drm_fb_helper.c:(.text+0x2f90): undefined reference to `sys_copyarea'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_imageblit':
drm_fb_helper.c:(.text+0x2fe8): undefined reference to `sys_imageblit'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_fillrect':
drm_fb_helper.c:(.text+0x3040): undefined reference to `cfb_fillrect'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_copyarea':
drm_fb_helper.c:(.text+0x3098): undefined reference to `cfb_copyarea'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_imageblit':
drm_fb_helper.c:(.text+0x30f0): undefined reference to `cfb_imageblit'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_fb_imageblit':
drm_fb_helper.c:(.text+0x315c): undefined reference to `cfb_imageblit'
powerpc-linux-ld: drm_fb_helper.c:(.text+0x3170): undefined reference to `sys_imageblit'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_fb_copyarea':
drm_fb_helper.c:(.text+0x31e0): undefined reference to `cfb_copyarea'
powerpc-linux-ld: drm_fb_helper.c:(.text+0x31f4): undefined reference to `sys_copyarea'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_fb_fillrect':
drm_fb_helper.c:(.text+0x3264): undefined reference to `cfb_fillrect'
powerpc-linux-ld: drm_fb_helper.c:(.text+0x3278): undefined reference to `sys_fillrect'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_cleanup':
drm_fb_helper.c:(.text+0x3314): undefined reference to `fb_deferred_io_cleanup'
powerpc-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_client_unregister':
drm_fb_helper.c:(.text+0x3418): undefined reference to `unregister_framebuffer'