Messages in this thread | | | Date | Fri, 10 Dec 2021 01:19:23 +0800 | From | kernel test robot <> | Subject | [leon-rdma:rdma-next 24/31] drivers/infiniband/core/cache.c:967:16: error: expected ';' after expression |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git rdma-next head: 3851deadf6de976fe0d2f72ca1084b47a044c2c7 commit: 1f2b65dfb4d995e74b621e3e21e7c7445d187956 [24/31] RDMA/core: Modify rdma_query_gid() to return accurate error codes config: riscv-buildonly-randconfig-r003-20211209 (https://download.01.org/0day-ci/archive/20211210/202112100121.3lkxU859-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a) 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 # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commit/?id=1f2b65dfb4d995e74b621e3e21e7c7445d187956 git remote add leon-rdma https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git git fetch --no-tags leon-rdma rdma-next git checkout 1f2b65dfb4d995e74b621e3e21e7c7445d187956 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/infiniband/core/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/infiniband/core/cache.c:967:16: error: expected ';' after expression res = -EINVAL ^ ; 1 error generated.
vim +967 drivers/infiniband/core/cache.c
938 939 /** 940 * rdma_query_gid - Read the GID content from the GID software cache 941 * @device: Device to query the GID 942 * @port_num: Port number of the device 943 * @index: Index of the GID table entry to read 944 * @gid: Pointer to GID where to store the entry's GID 945 * 946 * rdma_query_gid() only reads the GID entry content for requested device, 947 * port and index. It reads for IB, RoCE and iWarp link layers. It doesn't 948 * hold any reference to the GID table entry in the HCA or software cache. 949 * 950 * Returns 0 on success or appropriate error code. 951 * 952 */ 953 int rdma_query_gid(struct ib_device *device, u32 port_num, 954 int index, union ib_gid *gid) 955 { 956 struct ib_gid_table *table; 957 unsigned long flags; 958 int res; 959 960 if (!rdma_is_port_valid(device, port_num)) 961 return -EINVAL; 962 963 table = rdma_gid_table(device, port_num); 964 read_lock_irqsave(&table->rwlock, flags); 965 966 if (index < 0 || index >= table->sz) { > 967 res = -EINVAL 968 goto done; 969 } 970 971 if (!is_gid_entry_valid(table->data_vec[index])) { 972 res = -ENOENT; 973 goto done; 974 } 975 976 memcpy(gid, &table->data_vec[index]->attr.gid, sizeof(*gid)); 977 res = 0; 978 979 done: 980 read_unlock_irqrestore(&table->rwlock, flags); 981 return res; 982 } 983 EXPORT_SYMBOL(rdma_query_gid); 984
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |