[drm-tip:drm-tip 1296/1354] include/linux/list.h:132: undefined reference to `drm_dev_printk'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   2bd9e989a5653d4cd710e9dd2b42b0a080f1add8
commit: d3bd37f587b4438d47751d0f1d5aaae3d39bd416 [1296/1354] Merge v5.6-rc5 into drm-next
config: riscv-randconfig-a001-20200312 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout d3bd37f587b4438d47751d0f1d5aaae3d39bd416
        # save the attached .config to linux build tree
        GCC_VERSION=9.2.0 make.cross ARCH=riscv 

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

All errors (new ones prefixed by >>):

   include/linux/slab.h:593: undefined reference to `__drm_err'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_kms.o: in function `virtio_gpu_get_capsets':
   drivers/gpu/drm/virtio/virtgpu_kms.c:86: undefined reference to `__drm_err'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_gem.o: in function `virtio_gpu_gem_create':
   drivers/gpu/drm/virtio/virtgpu_gem.c:46: undefined reference to `drm_gem_handle_create'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_gem.c:52: undefined reference to `drm_gem_object_put_unlocked'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_gem.c:59: undefined reference to `drm_gem_object_release'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_gem.o: in function `virtio_gpu_mode_dumb_mmap':
   drivers/gpu/drm/virtio/virtgpu_gem.c:97: undefined reference to `drm_gem_object_lookup'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_gem.o: in function `drm_vma_node_offset_addr':
   include/drm/drm_vma_manager.h:204: undefined reference to `drm_gem_object_put_unlocked'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_gem.o: in function `virtio_gpu_gem_object_close':
   drivers/gpu/drm/virtio/virtgpu_gem.c:145: undefined reference to `drm_gem_lock_reservations'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_gem.o: in function `virtio_gpu_array_lock_resv':
   drivers/gpu/drm/virtio/virtgpu_gem.c:209: undefined reference to `drm_gem_unlock_reservations'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_gem.o: in function `virtio_gpu_array_add_fence':
   drivers/gpu/drm/virtio/virtgpu_gem.c:231: undefined reference to `drm_gem_object_put_unlocked'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_gem.o: in function `virtio_gpu_array_put_free':
   drivers/gpu/drm/virtio/virtgpu_gem.c:241: undefined reference to `drm_gem_object_lookup'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `vgdev_atomic_commit_tail':
   drivers/gpu/drm/virtio/virtgpu_display.c:325: undefined reference to `drm_atomic_helper_commit_modeset_disables'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:326: undefined reference to `drm_atomic_helper_commit_modeset_enables'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:327: undefined reference to `drm_atomic_helper_commit_planes'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:329: undefined reference to `drm_atomic_helper_fake_vblank'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:330: undefined reference to `drm_atomic_helper_commit_hw_done'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:332: undefined reference to `drm_atomic_helper_wait_for_vblanks'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:333: undefined reference to `drm_atomic_helper_cleanup_planes'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `virtio_gpu_conn_mode_valid':
   drivers/gpu/drm/virtio/virtgpu_display.c:200: undefined reference to `__drm_dbg'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `virtio_gpu_conn_get_modes':
   drivers/gpu/drm/virtio/virtgpu_display.c:157: undefined reference to `drm_add_edid_modes'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:164: undefined reference to `drm_add_modes_noedid'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:169: undefined reference to `drm_set_preferred_mode'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:171: undefined reference to `__drm_dbg'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:172: undefined reference to `drm_cvt_mode'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:175: undefined reference to `drm_mode_probed_add'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `virtio_gpu_conn_destroy':
   drivers/gpu/drm/virtio/virtgpu_display.c:230: undefined reference to `drm_connector_unregister'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:231: undefined reference to `drm_connector_cleanup'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `virtio_gpu_user_framebuffer_create':
   drivers/gpu/drm/virtio/virtgpu_display.c:319: undefined reference to `drm_gem_object_lookup'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:309: undefined reference to `drm_helper_mode_fill_fb_struct'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `virtio_gpu_framebuffer_init':
   drivers/gpu/drm/virtio/virtgpu_display.c:74: undefined reference to `drm_framebuffer_init'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `virtio_gpu_user_framebuffer_create':
   drivers/gpu/drm/virtio/virtgpu_display.c:313: undefined reference to `drm_gem_object_put_unlocked'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `virtio_gpu_modeset_init':
   drivers/gpu/drm/virtio/virtgpu_display.c:347: undefined reference to `drm_mode_config_init'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `vgdev_output_init':
   drivers/gpu/drm/virtio/virtgpu_display.c:279: undefined reference to `drm_encoder_init'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `drm_encoder_helper_add':
   include/drm/drm_modeset_helper_vtables.h:859: undefined reference to `drm_connector_attach_encoder'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `vgdev_output_init':
   drivers/gpu/drm/virtio/virtgpu_display.c:282: undefined reference to `drm_connector_register'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:266: undefined reference to `drm_crtc_init_with_planes'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:269: undefined reference to `drm_connector_init'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:273: undefined reference to `drm_connector_attach_edid_property'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `drm_connector_helper_add':
   include/drm/drm_modeset_helper_vtables.h:1092: undefined reference to `drm_mode_config_reset'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `virtio_gpu_modeset_fini':
   drivers/gpu/drm/virtio/virtgpu_display.c:371: undefined reference to `drm_mode_config_cleanup'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `.LANCHOR0':
   drivers/gpu/drm/virtio/virtgpu_display.c:58: undefined reference to `drm_gem_fb_destroy'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `.LANCHOR0':
   virtgpu_display.c:(.rodata+0x4): undefined reference to `drm_gem_fb_create_handle'
   riscv32-linux-ld: virtgpu_display.c:(.rodata+0x8): undefined reference to `drm_atomic_helper_dirtyfb'
   riscv32-linux-ld: virtgpu_display.c:(.rodata+0x1c): undefined reference to `drm_atomic_helper_check'
   riscv32-linux-ld: virtgpu_display.c:(.rodata+0x20): undefined reference to `drm_atomic_helper_commit'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `.LANCHOR0':
   drivers/gpu/drm/virtio/virtgpu_display.c:48: undefined reference to `drm_atomic_helper_crtc_reset'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `.LANCHOR0':
   virtgpu_display.c:(.rodata+0x44): undefined reference to `drm_crtc_cleanup'
   riscv32-linux-ld: virtgpu_display.c:(.rodata+0x48): undefined reference to `drm_atomic_helper_set_config'
   riscv32-linux-ld: virtgpu_display.c:(.rodata+0x4c): undefined reference to `drm_atomic_helper_page_flip'
   riscv32-linux-ld: virtgpu_display.c:(.rodata+0x58): undefined reference to `drm_atomic_helper_crtc_duplicate_state'
   riscv32-linux-ld: virtgpu_display.c:(.rodata+0x5c): undefined reference to `drm_atomic_helper_crtc_destroy_state'
   riscv32-linux-ld: virtgpu_display.c:(.rodata+0xd4): undefined reference to `drm_atomic_helper_connector_reset'
   riscv32-linux-ld: virtgpu_display.c:(.rodata+0xe0): undefined reference to `drm_helper_probe_single_connector_modes'
   riscv32-linux-ld: virtgpu_display.c:(.rodata+0xf4): undefined reference to `drm_atomic_helper_connector_duplicate_state'
   riscv32-linux-ld: virtgpu_display.c:(.rodata+0xf8): undefined reference to `drm_atomic_helper_connector_destroy_state'
   riscv32-linux-ld: virtgpu_display.c:(.rodata+0x130): undefined reference to `drm_encoder_cleanup'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `virtio_gpu_cmd_get_display_info_cb':
   drivers/gpu/drm/virtio/virtgpu_vq.c:655: undefined reference to `__drm_dbg'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.c:664: undefined reference to `__drm_dbg'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.c:672: undefined reference to `drm_helper_hpd_irq_event'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.c:673: undefined reference to `drm_kms_helper_hotplug_event'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `virtio_gpu_cmd_get_edid_cb':
   drivers/gpu/drm/virtio/virtgpu_vq.c:745: undefined reference to `drm_do_get_edid'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `spin_lock':
   include/linux/spinlock.h:338: undefined reference to `drm_connector_update_edid_property'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `reclaim_vbufs':
   drivers/gpu/drm/virtio/virtgpu_vq.c:198: undefined reference to `__drm_dbg'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `virtio_gpu_queue_fenced_ctrl_buffer':
   drivers/gpu/drm/virtio/virtgpu_vq.c:383: undefined reference to `drm_dev_enter'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `virtio_gpu_queue_ctrl_sgs':
   drivers/gpu/drm/virtio/virtgpu_vq.c:366: undefined reference to `drm_dev_exit'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `virtio_gpu_dequeue_ctrl_func':
   drivers/gpu/drm/virtio/virtgpu_vq.c:228: undefined reference to `__drm_dbg'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.c:228: undefined reference to `__drm_err'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `__list_del_entry':
>> include/linux/list.h:132: undefined reference to `drm_dev_printk'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `virtio_gpu_cmd_submit':
   drivers/gpu/drm/virtio/virtgpu_vq.c:1079: undefined reference to `drm_dev_enter'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `virtio_gpu_cursor_ping':
   drivers/gpu/drm/virtio/virtgpu_vq.c:1100: undefined reference to `drm_dev_exit'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_object.o: in function `virtio_gpu_cleanup_object':
   drivers/gpu/drm/virtio/virtgpu_object.c:77: undefined reference to `drm_gem_shmem_unpin'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_object.o: in function `virtio_gpu_resource_id_put':
   drivers/gpu/drm/virtio/virtgpu_object.c:60: undefined reference to `drm_gem_shmem_free_object'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_object.o: in function `virtio_gpu_object_create':
   drivers/gpu/drm/virtio/virtgpu_object.c:190: undefined reference to `drm_gem_shmem_create'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_object.c:239: undefined reference to `drm_gem_shmem_pin'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_object.c:215: undefined reference to `drm_gem_shmem_get_sg_table'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_object.o: in function `ida_alloc':
   include/linux/idr.h:272: undefined reference to `drm_gem_shmem_free_object'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_object.o: in function `virtio_gpu_object_create':
   drivers/gpu/drm/virtio/virtgpu_object.c:230: undefined reference to `__drm_err'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_object.o: in function `dma_map_sg_attrs':
>> include/linux/dma-mapping.h:317: undefined reference to `drm_gem_shmem_unpin'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_object.o: in function `.LANCHOR0':
   virtgpu_object.c:(.rodata+0xc): undefined reference to `drm_gem_shmem_print_info'
   riscv32-linux-ld: virtgpu_object.c:(.rodata+0x14): undefined reference to `drm_gem_shmem_pin'
   riscv32-linux-ld: virtgpu_object.c:(.rodata+0x18): undefined reference to `drm_gem_shmem_unpin'
   riscv32-linux-ld: virtgpu_object.c:(.rodata+0x1c): undefined reference to `drm_gem_shmem_get_sg_table'
   riscv32-linux-ld: virtgpu_object.c:(.rodata+0x20): undefined reference to `drm_gem_shmem_vmap'
   riscv32-linux-ld: virtgpu_object.c:(.rodata+0x24): undefined reference to `drm_gem_shmem_vunmap'
   riscv32-linux-ld: virtgpu_object.c:(.rodata+0x28): undefined reference to `drm_gem_shmem_mmap'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_debugfs.o: in function `virtio_gpu_debugfs_init':
   drivers/gpu/drm/virtio/virtgpu_debugfs.c:78: undefined reference to `drm_debugfs_create_files'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_plane.o: in function `virtio_gpu_plane_destroy':
   drivers/gpu/drm/virtio/virtgpu_plane.c:72: undefined reference to `drm_plane_cleanup'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_plane.o: in function `virtio_gpu_plane_atomic_check':
   drivers/gpu/drm/virtio/virtgpu_plane.c:95: undefined reference to `drm_atomic_get_crtc_state'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_plane.c:99: undefined reference to `drm_atomic_helper_check_plane_state'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_plane.o: in function `virtio_gpu_primary_plane_update':
   drivers/gpu/drm/virtio/virtgpu_plane.c:146: undefined reference to `__drm_dbg'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_plane.c:189: undefined reference to `drm_atomic_helper_damage_merged'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_plane.c:167: undefined reference to `__drm_dbg'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_plane.o: in function `virtio_gpu_cursor_plane_update':
   drivers/gpu/drm/virtio/virtgpu_plane.c:253: undefined reference to `__drm_dbg'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_plane.c:273: undefined reference to `__drm_dbg'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_plane.o: in function `virtio_gpu_plane_init':
   drivers/gpu/drm/virtio/virtgpu_plane.c:318: undefined reference to `drm_universal_plane_init'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_plane.o: in function `.LANCHOR0':
   drivers/gpu/drm/virtio/virtgpu_plane.c:76: undefined reference to `drm_atomic_helper_update_plane'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_plane.o: in function `.LANCHOR0':
   virtgpu_plane.c:(.rodata+0x3c): undefined reference to `drm_atomic_helper_disable_plane'
   riscv32-linux-ld: virtgpu_plane.c:(.rodata+0x44): undefined reference to `drm_atomic_helper_plane_reset'
   riscv32-linux-ld: virtgpu_plane.c:(.rodata+0x4c): undefined reference to `drm_atomic_helper_plane_duplicate_state'
   riscv32-linux-ld: virtgpu_plane.c:(.rodata+0x50): undefined reference to `drm_atomic_helper_plane_destroy_state'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_ioctl.o: in function `virtio_gpu_wait_ioctl':
   drivers/gpu/drm/virtio/virtgpu_ioctl.c:406: undefined reference to `drm_gem_object_lookup'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_ioctl.c:418: undefined reference to `drm_gem_object_put_unlocked'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_ioctl.o: in function `virtio_gpu_resource_info_ioctl':
   drivers/gpu/drm/virtio/virtgpu_ioctl.c:291: undefined reference to `drm_gem_object_lookup'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_ioctl.c:302: undefined reference to `drm_gem_object_put_unlocked'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_ioctl.o: in function `atomic_fetch_sub_relaxed':
>> arch/riscv/include/asm/atomic.h:141: undefined reference to `drm_gem_handle_create'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_ioctl.o: in function `virtio_gpu_resource_create_ioctl':
   drivers/gpu/drm/virtio/virtgpu_ioctl.c:273: undefined reference to `drm_gem_object_put_unlocked'
   riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_ioctl.c:240: undefined reference to `drm_gem_object_release'

vim +132 include/linux/list.h

c8af5cd75e2411 Toke Høiland-Jørgensen 2019-06-28  129  
3c18d4de86e4a7 Linus Torvalds         2011-02-18  130  static inline void __list_del_entry(struct list_head *entry)
3c18d4de86e4a7 Linus Torvalds         2011-02-18  131  {
0cd340dcb05c4a Kees Cook              2016-08-17 @132  	if (!__list_del_entry_valid(entry))
0cd340dcb05c4a Kees Cook              2016-08-17  133  		return;
0cd340dcb05c4a Kees Cook              2016-08-17  134  
3c18d4de86e4a7 Linus Torvalds         2011-02-18  135  	__list_del(entry->prev, entry->next);
3c18d4de86e4a7 Linus Torvalds         2011-02-18  136  }
3c18d4de86e4a7 Linus Torvalds         2011-02-18  137  

:::::: The code at line 132 was first introduced by commit
:::::: 0cd340dcb05c4a43742fe156f36737bb2a321bfd list: Split list_del() debug checking into separate function

:::::: TO: Kees Cook <keescook@xxxxxxxxxxxx>
:::::: CC: Paul E. McKenney <paulmck@xxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux