include/linux/list.h:72: undefined reference to `balloon_page_dequeue'

From: kbuild test robot
Date: Thu Mar 12 2020 - 07:11:39 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e6e6ec48dd0fa12e8a2d1ff6b55cd907401bd7fe
commit: 759bdc168181abeff61399d0f7ecec2852cc3e61 RISC-V: Add kconfig option for QEMU virt machine
date: 7 days ago
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 759bdc168181abeff61399d0f7ecec2852cc3e61
# 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 >>):

riscv32-linux-ld: drivers/virtio/virtio_balloon.o: in function `__list_add':
>> include/linux/list.h:72: undefined reference to `balloon_page_dequeue'
riscv32-linux-ld: drivers/virtio/virtio_balloon.o: in function `virtballoon_probe':
>> drivers/virtio/virtio_balloon.c:871: undefined reference to `balloon_page_alloc'
riscv32-linux-ld: drivers/virtio/virtio_balloon.o: in function `update_balloon_size_func':
drivers/virtio/virtio_balloon.c:451: undefined reference to `balloon_page_enqueue'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_drv.o: in function `virtio_gpu_remove':
drivers/gpu/drm/virtio/virtgpu_drv.c:138: undefined reference to `drm_dev_unregister'
>> riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_drv.c:139: undefined reference to `drm_dev_put'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_drv.o: in function `virtio_gpu_probe':
drivers/gpu/drm/virtio/virtgpu_drv.c:107: undefined reference to `drm_dev_alloc'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_drv.c:118: undefined reference to `drm_dev_put'
>> riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_drv.c:132: undefined reference to `drm_dev_register'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_drv.o: in function `virtio_gpu_pci_quirk':
drivers/gpu/drm/virtio/virtgpu_drv.c:92: undefined reference to `drm_dev_set_unique'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_drv.o: in function `.LANCHOR0':
virtgpu_drv.c:(.data+0xe4): undefined reference to `drm_gem_prime_handle_to_fd'
>> riscv32-linux-ld: virtgpu_drv.c:(.data+0xe8): undefined reference to `drm_gem_prime_fd_to_handle'
>> riscv32-linux-ld: virtgpu_drv.c:(.data+0x10c): undefined reference to `drm_gem_prime_mmap'
>> riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_drv.o:(.rodata+0x8): undefined reference to `drm_read'
>> riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_drv.o:(.rodata+0x24): undefined reference to `drm_poll'
>> riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_drv.o:(.rodata+0x28): undefined reference to `drm_ioctl'
>> riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_drv.o:(.rodata+0x30): undefined reference to `drm_gem_mmap'
>> riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_drv.o:(.rodata+0x38): undefined reference to `drm_open'
>> riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_drv.o:(.rodata+0x40): undefined reference to `drm_release'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtscsi_change_queue_depth':
drivers/scsi/virtio_scsi.c:677: undefined reference to `scsi_change_queue_depth'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `kmalloc_array':
>> include/linux/slab.h:589: undefined reference to `sdev_prefix_printk'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtscsi_device_reset':
drivers/scsi/virtio_scsi.c:633: undefined reference to `scsi_remove_host'
>> riscv32-linux-ld: drivers/scsi/virtio_scsi.c:643: undefined reference to `scsi_host_put'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtscsi_complete_cmd':
drivers/scsi/virtio_scsi.c:118: undefined reference to `scmd_printk'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtio_scsi_host':
drivers/scsi/virtio_scsi.c:94: undefined reference to `scsi_device_lookup'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtscsi_handle_param_change':
>> drivers/scsi/virtio_scsi.c:311: undefined reference to `scsi_device_put'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtscsi_handle_event':
drivers/scsi/virtio_scsi.c:387: undefined reference to `scsi_device_lookup'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtscsi_handle_transport_reset':
>> drivers/scsi/virtio_scsi.c:285: undefined reference to `scsi_remove_device'
riscv32-linux-ld: drivers/scsi/virtio_scsi.c:285: undefined reference to `scsi_device_put'
>> riscv32-linux-ld: drivers/scsi/virtio_scsi.c:291: undefined reference to `__scsi_iterate_devices'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtscsi_rescan_hotunplug':
drivers/scsi/virtio_scsi.c:337: undefined reference to `__scsi_execute'
riscv32-linux-ld: drivers/scsi/virtio_scsi.c:340: undefined reference to `__scsi_iterate_devices'
riscv32-linux-ld: drivers/scsi/virtio_scsi.c:344: undefined reference to `scsi_remove_device'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `scsi_execute_req':
>> include/scsi/scsi_device.h:455: undefined reference to `__scsi_iterate_devices'
riscv32-linux-ld: include/scsi/scsi_device.h:455: undefined reference to `scsi_scan_host'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtscsi_rescan_hotunplug':
drivers/scsi/virtio_scsi.c:352: undefined reference to `scsi_add_device'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtio_scsi_host':
drivers/scsi/virtio_scsi.c:94: undefined reference to `scsi_rescan_device'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtscsi_queuecommand':
drivers/scsi/virtio_scsi.c:581: undefined reference to `scmd_printk'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtscsi_probe':
>> drivers/scsi/virtio_scsi.c:850: undefined reference to `scsi_host_alloc'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtscsi_init':
drivers/scsi/virtio_scsi.c:801: undefined reference to `scsi_host_put'
riscv32-linux-ld: drivers/scsi/virtio_scsi.o: in function `virtscsi_probe':
drivers/scsi/virtio_scsi.c:872: undefined reference to `scsi_add_host_with_dma'
riscv32-linux-ld: drivers/scsi/virtio_scsi.c:877: undefined reference to `scsi_scan_host'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_kms.o: in function `virtio_gpu_config_changed_work_func':
drivers/gpu/drm/virtio/virtgpu_kms.c:47: undefined reference to `drm_helper_hpd_irq_event'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_kms.o: in function `virtio_find_vqs':
include/linux/virtio_config.h:197: undefined reference to `__drm_err'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_kms.o: in function `virtio_gpu_init':
drivers/gpu/drm/virtio/virtgpu_kms.c:173: undefined reference to `__drm_err'
>> riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_kms.c:181: undefined reference to `__drm_err'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_kms.o: in function `kmalloc_array':
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:95: 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:144: 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:211: 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:228: undefined reference to `drm_gem_object_put_unlocked'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_gem.o: in function `virtio_gpu_array_from_handles':
drivers/gpu/drm/virtio/virtgpu_gem.c:169: 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:331: undefined reference to `drm_atomic_helper_commit_modeset_disables'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:332: undefined reference to `drm_atomic_helper_commit_modeset_enables'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:333: undefined reference to `drm_atomic_helper_commit_planes'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:335: undefined reference to `drm_atomic_helper_commit_hw_done'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:337: undefined reference to `drm_atomic_helper_wait_for_vblanks'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:338: 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:206: 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:163: undefined reference to `drm_add_edid_modes'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:170: undefined reference to `drm_add_modes_noedid'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:175: undefined reference to `drm_set_preferred_mode'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:177: undefined reference to `__drm_dbg'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:178: undefined reference to `drm_cvt_mode'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:181: 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:236: undefined reference to `drm_connector_unregister'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:237: undefined reference to `drm_connector_cleanup'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `virtio_gpu_crtc_atomic_flush':
drivers/gpu/drm/virtio/virtgpu_display.c:127: undefined reference to `drm_crtc_send_vblank_event'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `virtio_gpu_user_framebuffer_create':
drivers/gpu/drm/virtio/virtgpu_display.c:325: undefined reference to `drm_gem_object_lookup'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `virtio_gpu_framebuffer_init':
drivers/gpu/drm/virtio/virtgpu_display.c:75: undefined reference to `drm_helper_mode_fill_fb_struct'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:77: 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:319: 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:352: 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:285: undefined reference to `drm_encoder_init'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:288: undefined reference to `drm_connector_attach_encoder'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:290: undefined reference to `drm_connector_register'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:275: undefined reference to `drm_crtc_init_with_planes'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:279: undefined reference to `drm_connector_init'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `drm_connector_helper_add':
include/drm/drm_modeset_helper_vtables.h:1061: undefined reference to `drm_connector_attach_edid_property'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.o: in function `vgdev_output_init':
drivers/gpu/drm/virtio/virtgpu_display.c:283: 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:377: undefined reference to `drm_atomic_helper_shutdown'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_display.c:378: 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:59: 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:49: 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+0xcc): undefined reference to `drm_atomic_helper_connector_reset'
riscv32-linux-ld: virtgpu_display.c:(.rodata+0xd8): undefined reference to `drm_helper_probe_single_connector_modes'
riscv32-linux-ld: virtgpu_display.c:(.rodata+0xec): undefined reference to `drm_atomic_helper_connector_duplicate_state'
riscv32-linux-ld: virtgpu_display.c:(.rodata+0xf0): undefined reference to `drm_atomic_helper_connector_destroy_state'
riscv32-linux-ld: virtgpu_display.c:(.rodata+0x128): undefined reference to `drm_encoder_cleanup'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `spin_lock':
include/linux/spinlock.h:338: undefined reference to `__drm_dbg'
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:643: undefined reference to `__drm_dbg'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.c:643: undefined reference to `drm_helper_hpd_irq_event'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.c:658: 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:720: undefined reference to `drm_do_get_edid'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.c:729: undefined reference to `drm_connector_update_edid_property'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `__list_add':
include/linux/list.h:67: undefined reference to `__drm_dbg'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `virtio_gpu_dequeue_ctrl_func':
drivers/gpu/drm/virtio/virtgpu_vq.c:201: undefined reference to `__drm_err'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.c:215: undefined reference to `__drm_dbg'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.c:224: undefined reference to `__drm_err'
riscv32-linux-ld: drivers/gpu/drm/virtio/virtgpu_vq.o: in function `virtio_gpu_cmd_transfer_from_host_3d':
drivers/gpu/drm/virtio/virtgpu_vq.c:1047: undefined reference to `drm_gem_shmem_pin'

vim +72 include/linux/list.h

d7c816733d501b Kees Cook 2016-08-17 56
^1da177e4c3f41 Linus Torvalds 2005-04-16 57 /*
^1da177e4c3f41 Linus Torvalds 2005-04-16 58 * Insert a new entry between two known consecutive entries.
^1da177e4c3f41 Linus Torvalds 2005-04-16 59 *
^1da177e4c3f41 Linus Torvalds 2005-04-16 60 * This is only for internal list manipulation where we know
^1da177e4c3f41 Linus Torvalds 2005-04-16 61 * the prev/next entries already!
^1da177e4c3f41 Linus Torvalds 2005-04-16 62 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 63 static inline void __list_add(struct list_head *new,
^1da177e4c3f41 Linus Torvalds 2005-04-16 64 struct list_head *prev,
^1da177e4c3f41 Linus Torvalds 2005-04-16 65 struct list_head *next)
^1da177e4c3f41 Linus Torvalds 2005-04-16 66 {
d7c816733d501b Kees Cook 2016-08-17 67 if (!__list_add_valid(new, prev, next))
d7c816733d501b Kees Cook 2016-08-17 68 return;
d7c816733d501b Kees Cook 2016-08-17 69
^1da177e4c3f41 Linus Torvalds 2005-04-16 70 next->prev = new;
^1da177e4c3f41 Linus Torvalds 2005-04-16 71 new->next = next;
^1da177e4c3f41 Linus Torvalds 2005-04-16 @72 new->prev = prev;
1c97be677f72b3 Paul E. McKenney 2015-09-20 73 WRITE_ONCE(prev->next, new);
^1da177e4c3f41 Linus Torvalds 2005-04-16 74 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 75

:::::: The code at line 72 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip