riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:1251: undefined reference to `mlx5_fill_page_frag_array_perm'

From: kernel test robot
Date: Sun Oct 04 2020 - 19:43:01 EST


Hi Eli,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 22fbc037cd32e4e6771d2271b565806cfb8c134c
commit: 1a86b377aa2147a7c866b03142e848c18e5f3cb8 vdpa/mlx5: Add VDPA driver for supported mlx5 devices
date: 9 weeks ago
config: riscv-randconfig-r036-20201005 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.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=1a86b377aa2147a7c866b03142e848c18e5f3cb8
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 1a86b377aa2147a7c866b03142e848c18e5f3cb8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv

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

All errors (new ones prefixed by >>):

riscv32-linux-ld: drivers/vdpa/mlx5/net/main.o: in function `mlx5_vdpa_exit':
drivers/vdpa/mlx5/net/main.c:72: undefined reference to `mlx5_unregister_interface'
riscv32-linux-ld: drivers/vdpa/mlx5/net/main.o: in function `mlx5_vdpa_init':
drivers/vdpa/mlx5/net/main.c:67: undefined reference to `mlx5_register_interface'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `qp_prepare':
drivers/vdpa/mlx5/net/mlx5_vnet.c:350: undefined reference to `mlx5_fill_page_frag_array'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `create_tir':
drivers/vdpa/mlx5/net/mlx5_vnet.c:1244: undefined reference to `mlx5_frag_buf_alloc_node'
>> riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:1251: undefined reference to `mlx5_fill_page_frag_array_perm'
>> riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:1252: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `create_umem':
drivers/vdpa/mlx5/net/mlx5_vnet.c:623: undefined reference to `mlx5_frag_buf_free'
>> riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:650: undefined reference to `mlx5_frag_buf_alloc_node'
>> riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:651: undefined reference to `mlx5_db_alloc'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `umem_size':
drivers/vdpa/mlx5/net/mlx5_vnet.c:605: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `qp_create':
drivers/vdpa/mlx5/net/mlx5_vnet.c:373: undefined reference to `mlx5_db_free'
>> riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:376: undefined reference to `mlx5_frag_buf_free'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:402: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `alloc_inout':
drivers/vdpa/mlx5/net/mlx5_vnet.c:889: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:904: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:922: undefined reference to `mlx5_db_alloc'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:926: undefined reference to `mlx5_frag_buf_alloc_node'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `modify_qp':
drivers/vdpa/mlx5/net/mlx5_vnet.c:967: undefined reference to `mlx5_fill_page_frag_array'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `modify_virtqueue':
drivers/vdpa/mlx5/net/mlx5_vnet.c:1044: undefined reference to `mlx5_vector2eqn'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:1061: undefined reference to `mlx5_core_create_cq'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `suspend_vq':
drivers/vdpa/mlx5/net/mlx5_vnet.c:1137: undefined reference to `mlx5_frag_buf_free'
>> riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:1137: undefined reference to `mlx5_db_free'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:1143: undefined reference to `mlx5_core_destroy_cq'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `mlx5_vdpa_set_vq_ready':
drivers/vdpa/mlx5/net/mlx5_vnet.c:1376: undefined reference to `mlx5_frag_buf_free'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:1378: undefined reference to `mlx5_db_free'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `mlx5_init_fbc_offset':
include/linux/mlx5/driver.h:846: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: include/linux/mlx5/driver.h:848: undefined reference to `mlx5_frag_buf_free'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `umem_destroy':
drivers/vdpa/mlx5/net/mlx5_vnet.c:688: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `umems_create':
drivers/vdpa/mlx5/net/mlx5_vnet.c:709: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `create_virtqueue':
drivers/vdpa/mlx5/net/mlx5_vnet.c:773: undefined reference to `mlx5_db_free'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `umems_create':
drivers/vdpa/mlx5/net/mlx5_vnet.c:717: undefined reference to `mlx5_frag_buf_free'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `create_virtqueue':
drivers/vdpa/mlx5/net/mlx5_vnet.c:785: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:824: undefined reference to `mlx5_del_flow_rules'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `umems_destroy':
>> drivers/vdpa/mlx5/net/mlx5_vnet.c:727: undefined reference to `mlx5_fc_destroy'
>> riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:727: undefined reference to `mlx5_destroy_flow_table'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `setup_vq':
drivers/vdpa/mlx5/net/mlx5_vnet.c:1084: undefined reference to `mlx5_get_flow_namespace'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:1096: undefined reference to `mlx5_create_auto_grouped_flow_table'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `connect_qps':
drivers/vdpa/mlx5/net/mlx5_vnet.c:976: undefined reference to `mlx5_fc_create'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:987: undefined reference to `mlx5_fc_id'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:991: undefined reference to `mlx5_add_flow_rules'
>> riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:995: undefined reference to `mlx5_fc_destroy'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.c:999: undefined reference to `mlx5_destroy_flow_table'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `setup_driver':
drivers/vdpa/mlx5/net/mlx5_vnet.c:1676: undefined reference to `mlx5_query_nic_vport_mtu'
riscv32-linux-ld: drivers/vdpa/mlx5/net/mlx5_vnet.o: in function `create_rqt':
drivers/vdpa/mlx5/net/mlx5_vnet.c:1195: undefined reference to `mlx5_query_nic_vport_mac_address'
riscv32-linux-ld: drivers/vdpa/mlx5/core/resources.o: in function `dealloc_pd':
drivers/vdpa/mlx5/core/resources.c:33: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/core/resources.o: in function `destroy_uctx':
drivers/vdpa/mlx5/core/resources.c:83: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/core/resources.o: in function `mlx5_vdpa_create_tis':
drivers/vdpa/mlx5/core/resources.c:94: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/core/resources.o: in function `mlx5_vdpa_destroy_tis':
drivers/vdpa/mlx5/core/resources.c:107: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/core/resources.o: in function `mlx5_vdpa_create_rqt':
drivers/vdpa/mlx5/core/resources.c:113: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/core/resources.o:drivers/vdpa/mlx5/core/resources.c:126: more undefined references to `mlx5_cmd_exec' follow
riscv32-linux-ld: drivers/vdpa/mlx5/core/resources.o: in function `mlx5_vdpa_destroy_mkey':
drivers/vdpa/mlx5/core/resources.c:213: undefined reference to `mlx5_get_uars_page'
riscv32-linux-ld: drivers/vdpa/mlx5/core/resources.o: in function `mlx5_vdpa_alloc_resources':
drivers/vdpa/mlx5/core/resources.c:227: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/core/resources.c:231: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/core/resources.o: in function `kmalloc':
include/linux/slab.h:555: undefined reference to `mlx5_cmd_exec'
riscv32-linux-ld: drivers/vdpa/mlx5/core/resources.o: in function `create_uctx':
drivers/vdpa/mlx5/core/resources.c:70: undefined reference to `mlx5_put_uars_page'
riscv32-linux-ld: drivers/vdpa/mlx5/core/resources.o: in function `alloc_pd':
drivers/vdpa/mlx5/core/resources.c:18: undefined reference to `mlx5_put_uars_page'

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

Attachment: .config.gz
Description: application/gzip