lkml.org 
[lkml]   [2020]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/virtio/virtio_balloon.c:249: undefined reference to `balloon_page_dequeue'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c20037652700024cffeb6b0f74306ce9b391248f
commit: 759bdc168181abeff61399d0f7ecec2852cc3e61 RISC-V: Add kconfig option for QEMU virt machine
date: 2 days ago
config: riscv-randconfig-a001-20200308 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.5.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=7.5.0 make.cross ARCH=riscv

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

All errors (new ones prefixed by >>):

drivers/virtio/virtio_balloon.o: In function `leak_balloon':
>> drivers/virtio/virtio_balloon.c:249: undefined reference to `balloon_page_dequeue'
drivers/virtio/virtio_balloon.o: In function `virtio_cread32':
>> include/linux/virtio_config.h:424: undefined reference to `balloon_page_alloc'
drivers/virtio/virtio_balloon.o: In function `balloon_page_pop':
>> include/linux/balloon_compaction.h:204: undefined reference to `balloon_page_enqueue'
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'
>> drivers/gpu/drm/virtio/virtgpu_drv.c:139: undefined reference to `drm_dev_put'
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'
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'
drivers/gpu/drm/virtio/virtgpu_drv.c:93: undefined reference to `drm_dev_put'
drivers/gpu/drm/virtio/virtgpu_drv.o: In function `virtio_gpu_probe':
>> drivers/gpu/drm/virtio/virtgpu_drv.c:118: undefined reference to `drm_dev_register'
drivers/gpu/drm/virtio/virtgpu_drv.o: In function `.LANCHOR0':
virtgpu_drv.c:(.data+0x1c0): undefined reference to `drm_gem_prime_handle_to_fd'
virtgpu_drv.c:(.data+0x1c8): undefined reference to `drm_gem_prime_fd_to_handle'
virtgpu_drv.c:(.data+0x210): undefined reference to `drm_gem_prime_mmap'
drivers/gpu/drm/virtio/virtgpu_drv.o:(.rodata+0x10): undefined reference to `drm_read'
drivers/gpu/drm/virtio/virtgpu_drv.o:(.rodata+0x48): undefined reference to `drm_poll'
drivers/gpu/drm/virtio/virtgpu_drv.o:(.rodata+0x50): undefined reference to `drm_ioctl'
drivers/gpu/drm/virtio/virtgpu_drv.o:(.rodata+0x60): undefined reference to `drm_gem_mmap'
drivers/gpu/drm/virtio/virtgpu_drv.o:(.rodata+0x70): undefined reference to `drm_open'
drivers/gpu/drm/virtio/virtgpu_drv.o:(.rodata+0x80): undefined reference to `drm_release'
drivers/crypto/virtio/virtio_crypto_core.o: In function `virtcrypto_clear_crypto_engines':
drivers/crypto/virtio/virtio_crypto_core.c:273: undefined reference to `crypto_engine_exit'
drivers/crypto/virtio/virtio_crypto_core.o: In function `virtcrypto_find_vqs':
drivers/crypto/virtio/virtio_crypto_core.c:95: undefined reference to `crypto_engine_alloc_init'
drivers/crypto/virtio/virtio_crypto_core.o: In function `virtcrypto_start_crypto_engines':
drivers/crypto/virtio/virtio_crypto_core.c:249: undefined reference to `crypto_engine_start'
drivers/crypto/virtio/virtio_crypto_core.o: In function `virtcrypto_clean_affinity':
drivers/crypto/virtio/virtio_crypto_core.c:135: undefined reference to `crypto_engine_exit'
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'
drivers/gpu/drm/virtio/virtgpu_kms.o: In function `virtio_find_vqs':
>> include/linux/virtio_config.h:197: undefined reference to `__drm_err'
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'
drivers/gpu/drm/virtio/virtgpu_kms.c:183: undefined reference to `__drm_err'
drivers/gpu/drm/virtio/virtgpu_kms.o: In function `virtio_gpu_get_capsets':
drivers/gpu/drm/virtio/virtgpu_kms.c:108: undefined reference to `__drm_err'
drivers/gpu/drm/virtio/virtgpu_kms.c:100: undefined reference to `__drm_err'
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'
>> drivers/gpu/drm/virtio/virtgpu_gem.c:52: undefined reference to `drm_gem_object_put_unlocked'
>> drivers/gpu/drm/virtio/virtgpu_gem.c:48: undefined reference to `drm_gem_object_release'
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'
drivers/gpu/drm/virtio/virtgpu_gem.c:104: undefined reference to `drm_gem_object_put_unlocked'
drivers/gpu/drm/virtio/virtgpu_gem.o: In function `virtio_gpu_array_lock_resv':
>> drivers/gpu/drm/virtio/virtgpu_gem.c:201: undefined reference to `drm_gem_lock_reservations'
drivers/gpu/drm/virtio/virtgpu_gem.o: In function `virtio_gpu_array_unlock_resv':
>> drivers/gpu/drm/virtio/virtgpu_gem.c:214: undefined reference to `drm_gem_unlock_reservations'
drivers/gpu/drm/virtio/virtgpu_gem.o: In function `virtio_gpu_array_put_free':
drivers/gpu/drm/virtio/virtgpu_gem.c:236: undefined reference to `drm_gem_object_put_unlocked'
drivers/gpu/drm/virtio/virtgpu_gem.o: In function `virtio_gpu_array_from_handles':
drivers/gpu/drm/virtio/virtgpu_gem.c:173: undefined reference to `drm_gem_object_lookup'
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'
>> drivers/gpu/drm/virtio/virtgpu_display.c:332: undefined reference to `drm_atomic_helper_commit_modeset_enables'
>> drivers/gpu/drm/virtio/virtgpu_display.c:333: undefined reference to `drm_atomic_helper_commit_planes'
drivers/gpu/drm/virtio/virtgpu_display.c:335: undefined reference to `drm_atomic_helper_commit_hw_done'
drivers/gpu/drm/virtio/virtgpu_display.c:337: undefined reference to `drm_atomic_helper_wait_for_vblanks'
drivers/gpu/drm/virtio/virtgpu_display.c:338: undefined reference to `drm_atomic_helper_cleanup_planes'
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'
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'
drivers/gpu/drm/virtio/virtgpu_display.c:237: undefined reference to `drm_connector_cleanup'
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'
drivers/gpu/drm/virtio/virtgpu_display.o: In function `virtio_gpu_conn_get_modes':
drivers/gpu/drm/virtio/virtgpu_display.c:162: undefined reference to `drm_add_edid_modes'
drivers/gpu/drm/virtio/virtgpu_display.c:170: undefined reference to `drm_add_modes_noedid'
drivers/gpu/drm/virtio/virtgpu_display.c:175: undefined reference to `drm_set_preferred_mode'
drivers/gpu/drm/virtio/virtgpu_display.c:177: undefined reference to `__drm_dbg'
drivers/gpu/drm/virtio/virtgpu_display.c:178: undefined reference to `drm_cvt_mode'
drivers/gpu/drm/virtio/virtgpu_display.c:180: undefined reference to `drm_mode_probed_add'
drivers/gpu/drm/virtio/virtgpu_display.o: In function `virtio_gpu_user_framebuffer_create':
drivers/gpu/drm/virtio/virtgpu_display.c:309: undefined reference to `drm_gem_object_lookup'
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'
drivers/gpu/drm/virtio/virtgpu_display.c:77: undefined reference to `drm_framebuffer_init'
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'
drivers/gpu/drm/virtio/virtgpu_display.o: In function `virtio_gpu_modeset_init':
drivers/gpu/drm/virtio/virtgpu_display.c:357: undefined reference to `drm_mode_config_init'
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'
drivers/gpu/drm/virtio/virtgpu_display.c:288: undefined reference to `drm_connector_attach_encoder'
drivers/gpu/drm/virtio/virtgpu_display.c:290: undefined reference to `drm_connector_register'
drivers/gpu/drm/virtio/virtgpu_display.c:275: undefined reference to `drm_crtc_init_with_planes'
drivers/gpu/drm/virtio/virtgpu_display.o: In function `drm_crtc_helper_add':
include/drm/drm_modeset_helper_vtables.h:463: undefined reference to `drm_connector_init'
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_attach_edid_property'
drivers/gpu/drm/virtio/virtgpu_display.c:283: undefined reference to `drm_mode_config_reset'
drivers/gpu/drm/virtio/virtgpu_display.o: In function `virtio_gpu_modeset_fini':
drivers/gpu/drm/virtio/virtgpu_display.c:376: undefined reference to `drm_atomic_helper_shutdown'
drivers/gpu/drm/virtio/virtgpu_display.c:378: undefined reference to `drm_mode_config_cleanup'
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'
drivers/gpu/drm/virtio/virtgpu_display.o: In function `.LANCHOR0':
virtgpu_display.c:(.rodata+0x8): undefined reference to `drm_gem_fb_create_handle'
virtgpu_display.c:(.rodata+0x10): undefined reference to `drm_atomic_helper_dirtyfb'
virtgpu_display.c:(.rodata+0x38): undefined reference to `drm_atomic_helper_check'
virtgpu_display.c:(.rodata+0x40): undefined reference to `drm_atomic_helper_commit'
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'
drivers/gpu/drm/virtio/virtgpu_display.o: In function `.LANCHOR0':
virtgpu_display.c:(.rodata+0x88): undefined reference to `drm_crtc_cleanup'
virtgpu_display.c:(.rodata+0x90): undefined reference to `drm_atomic_helper_set_config'
virtgpu_display.c:(.rodata+0x98): undefined reference to `drm_atomic_helper_page_flip'
virtgpu_display.c:(.rodata+0xb0): undefined reference to `drm_atomic_helper_crtc_duplicate_state'
virtgpu_display.c:(.rodata+0xb8): undefined reference to `drm_atomic_helper_crtc_destroy_state'
virtgpu_display.c:(.rodata+0x198): undefined reference to `drm_atomic_helper_connector_reset'
virtgpu_display.c:(.rodata+0x1b0): undefined reference to `drm_helper_probe_single_connector_modes'
virtgpu_display.c:(.rodata+0x1d8): undefined reference to `drm_atomic_helper_connector_duplicate_state'
virtgpu_display.c:(.rodata+0x1e0): undefined reference to `drm_atomic_helper_connector_destroy_state'
virtgpu_display.c:(.rodata+0x250): undefined reference to `drm_encoder_cleanup'
drivers/gpu/drm/virtio/virtgpu_vq.o: In function `virtio_gpu_cmd_get_display_info_cb':
drivers/gpu/drm/virtio/virtgpu_vq.c:646: undefined reference to `__drm_dbg'
drivers/gpu/drm/virtio/virtgpu_vq.c:645: undefined reference to `__drm_dbg'
drivers/gpu/drm/virtio/virtgpu_vq.c:658: undefined reference to `drm_helper_hpd_irq_event'
drivers/gpu/drm/virtio/virtgpu_vq.c:660: undefined reference to `drm_kms_helper_hotplug_event'
drivers/gpu/drm/virtio/virtgpu_vq.o: In function `virtio_gpu_cmd_get_edid_cb':
drivers/gpu/drm/virtio/virtgpu_vq.c:731: undefined reference to `drm_do_get_edid'
drivers/gpu/drm/virtio/virtgpu_vq.c:733: undefined reference to `drm_connector_update_edid_property'
drivers/gpu/drm/virtio/virtgpu_vq.o: In function `reclaim_vbufs':
drivers/gpu/drm/virtio/virtgpu_vq.c:179: undefined reference to `__drm_dbg'
drivers/gpu/drm/virtio/virtgpu_vq.o: In function `virtio_gpu_dequeue_ctrl_func':
drivers/gpu/drm/virtio/virtgpu_vq.c:211: undefined reference to `__drm_err'
drivers/gpu/drm/virtio/virtgpu_vq.c:206: undefined reference to `__drm_dbg'
drivers/gpu/drm/virtio/virtgpu_vq.c:211: undefined reference to `__drm_err'
drivers/gpu/drm/virtio/virtgpu_vq.o: In function `virtio_gpu_cmd_submit':
drivers/gpu/drm/virtio/virtgpu_vq.c:1069: undefined reference to `drm_gem_shmem_pin'
drivers/gpu/drm/virtio/virtgpu_vq.c:1069: undefined reference to `drm_gem_shmem_get_sg_table'
drivers/gpu/drm/virtio/virtgpu_vq.o: In function `__nr_to_section':
include/linux/mmzone.h:1254: undefined reference to `__drm_err'
drivers/gpu/drm/virtio/virtgpu_vq.o: In function `__section_mem_map_addr':
include/linux/mmzone.h:1285: undefined reference to `drm_gem_shmem_unpin'
drivers/gpu/drm/virtio/virtgpu_vq.o: In function `virtio_gpu_object_attach':
drivers/gpu/drm/virtio/virtgpu_vq.c:1113: undefined reference to `drm_gem_shmem_unpin'
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'
drivers/gpu/drm/virtio/virtgpu_object.o: In function `virtio_gpu_object_create':
drivers/gpu/drm/virtio/virtgpu_object.c:118: undefined reference to `drm_gem_shmem_create'
drivers/gpu/drm/virtio/virtgpu_object.c:161: undefined reference to `drm_gem_shmem_free_object'
drivers/gpu/drm/virtio/virtgpu_object.o: In function `.LANCHOR0':
virtgpu_object.c:(.rodata+0x18): undefined reference to `drm_gem_shmem_print_info'
virtgpu_object.c:(.rodata+0x28): undefined reference to `drm_gem_shmem_pin'
virtgpu_object.c:(.rodata+0x30): undefined reference to `drm_gem_shmem_unpin'
virtgpu_object.c:(.rodata+0x38): undefined reference to `drm_gem_shmem_get_sg_table'
virtgpu_object.c:(.rodata+0x40): undefined reference to `drm_gem_shmem_vmap'
virtgpu_object.c:(.rodata+0x48): undefined reference to `drm_gem_shmem_vunmap'
virtgpu_object.c:(.rodata+0x50): undefined reference to `drm_gem_shmem_mmap'
drivers/gpu/drm/virtio/virtgpu_debugfs.o: In function `virtio_gpu_debugfs_init':
drivers/gpu/drm/virtio/virtgpu_debugfs.c:77: undefined reference to `drm_debugfs_create_files'
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'
drivers/gpu/drm/virtio/virtgpu_plane.o: In function `virtio_gpu_plane_atomic_check':

vim +249 drivers/virtio/virtio_balloon.c

6b35e40767c6c1 Rusty Russell 2008-02-04 235
1fd9c67203af91 Raushaniya Maksudova 2014-11-10 236 static unsigned leak_balloon(struct virtio_balloon *vb, size_t num)
6b35e40767c6c1 Rusty Russell 2008-02-04 237 {
1fd9c67203af91 Raushaniya Maksudova 2014-11-10 238 unsigned num_freed_pages;
6b35e40767c6c1 Rusty Russell 2008-02-04 239 struct page *page;
9d1ba8056474a2 Konstantin Khlebnikov 2014-10-09 240 struct balloon_dev_info *vb_dev_info = &vb->vb_dev_info;
195a8c43e93d8c Liang Li 2017-07-12 241 LIST_HEAD(pages);
6b35e40767c6c1 Rusty Russell 2008-02-04 242
6b35e40767c6c1 Rusty Russell 2008-02-04 243 /* We can only do one array worth at a time. */
6b35e40767c6c1 Rusty Russell 2008-02-04 244 num = min(num, ARRAY_SIZE(vb->pfns));
6b35e40767c6c1 Rusty Russell 2008-02-04 245
e22504296d4f64 Rafael Aquini 2012-12-11 246 mutex_lock(&vb->balloon_lock);
37cf99e08c6fb4 Konstantin Neumoin 2016-07-11 247 /* We can't release more pages than taken */
37cf99e08c6fb4 Konstantin Neumoin 2016-07-11 248 num = min(num, (size_t)vb->num_pages);
3ccc9372ed0fab Michael S. Tsirkin 2012-04-12 @249 for (vb->num_pfns = 0; vb->num_pfns < num;
3ccc9372ed0fab Michael S. Tsirkin 2012-04-12 250 vb->num_pfns += VIRTIO_BALLOON_PAGES_PER_PAGE) {
e22504296d4f64 Rafael Aquini 2012-12-11 251 page = balloon_page_dequeue(vb_dev_info);
e22504296d4f64 Rafael Aquini 2012-12-11 252 if (!page)
e22504296d4f64 Rafael Aquini 2012-12-11 253 break;
87c9403b0d1de4 Michael S. Tsirkin 2016-05-17 254 set_page_pfns(vb, vb->pfns + vb->num_pfns, page);
195a8c43e93d8c Liang Li 2017-07-12 255 list_add(&page->lru, &pages);
3ccc9372ed0fab Michael S. Tsirkin 2012-04-12 256 vb->num_pages -= VIRTIO_BALLOON_PAGES_PER_PAGE;
6b35e40767c6c1 Rusty Russell 2008-02-04 257 }
6b35e40767c6c1 Rusty Russell 2008-02-04 258
1fd9c67203af91 Raushaniya Maksudova 2014-11-10 259 num_freed_pages = vb->num_pfns;
bf50e69f63d210 Dave Hansen 2011-04-07 260 /*
bf50e69f63d210 Dave Hansen 2011-04-07 261 * Note that if
bf50e69f63d210 Dave Hansen 2011-04-07 262 * virtio_has_feature(vdev, VIRTIO_BALLOON_F_MUST_TELL_HOST);
bf50e69f63d210 Dave Hansen 2011-04-07 263 * is true, we *have* to do it in this order
bf50e69f63d210 Dave Hansen 2011-04-07 264 */
8c6bab4f3874d3 Luiz Capitulino 2013-07-02 265 if (vb->num_pfns != 0)
6b35e40767c6c1 Rusty Russell 2008-02-04 266 tell_host(vb, vb->deflate_vq);
195a8c43e93d8c Liang Li 2017-07-12 267 release_pages_balloon(vb, &pages);
f68b992bbb4746 Minchan Kim 2015-12-28 268 mutex_unlock(&vb->balloon_lock);
1fd9c67203af91 Raushaniya Maksudova 2014-11-10 269 return num_freed_pages;
6b35e40767c6c1 Rusty Russell 2008-02-04 270 }
6b35e40767c6c1 Rusty Russell 2008-02-04 271

:::::: The code at line 249 was first introduced by commit
:::::: 3ccc9372ed0fab33d20f10be3c1efd5776ff5913 virtio_balloon: fix handling of PAGE_SIZE != 4k

:::::: TO: Michael S. Tsirkin <mst@redhat.com>
:::::: CC: Michael S. Tsirkin <mst@redhat.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2020-03-07 22:11    [W:0.050 / U:8.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site