lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202109141359.ZC7bbgo8-lkp@intel.com>
Date:   Tue, 14 Sep 2021 13:22:06 +0800
From:   kernel test robot <lkp@...el.com>
To:     Alaa Hleihel <alaa@...dia.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Leon Romanovsky <leonro@...dia.com>
Subject: [leon-rdma:rdma-next 19/21] drivers/infiniband/hw/mlx5/mr.c:1389:13:
 error: implicit declaration of function 'ib_umem_get_dummy'; did you mean
 'ib_umem_get_peer'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git rdma-next
head:   26ed3ae2d68abccdd6db755a079f88d6429a1243
commit: 0ae065f0b9cedafab13c1b02208a69f2655452af [19/21] RDMA/mlx5: Add dummy umem to IB_MR_TYPE_DM
config: x86_64-buildonly-randconfig-r002-20210913 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commit/?id=0ae065f0b9cedafab13c1b02208a69f2655452af
        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 0ae065f0b9cedafab13c1b02208a69f2655452af
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   drivers/infiniband/hw/mlx5/mr.c: In function 'mlx5_ib_get_dm_mr':
>> drivers/infiniband/hw/mlx5/mr.c:1389:13: error: implicit declaration of function 'ib_umem_get_dummy'; did you mean 'ib_umem_get_peer'? [-Werror=implicit-function-declaration]
    1389 |  mr->umem = ib_umem_get_dummy(&dev->ib_dev);
         |             ^~~~~~~~~~~~~~~~~
         |             ib_umem_get_peer
>> drivers/infiniband/hw/mlx5/mr.c:1389:11: error: assignment to 'struct ib_umem *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
    1389 |  mr->umem = ib_umem_get_dummy(&dev->ib_dev);
         |           ^
   cc1: all warnings being treated as errors


vim +1389 drivers/infiniband/hw/mlx5/mr.c

  1354	
  1355	static struct ib_mr *mlx5_ib_get_dm_mr(struct ib_pd *pd, u64 start_addr,
  1356					       u64 length, int acc, int mode)
  1357	{
  1358		struct mlx5_ib_dev *dev = to_mdev(pd->device);
  1359		int inlen = MLX5_ST_SZ_BYTES(create_mkey_in);
  1360		struct mlx5_ib_mr *mr;
  1361		void *mkc;
  1362		u32 *in;
  1363		int err;
  1364	
  1365		mr = kzalloc(sizeof(*mr), GFP_KERNEL);
  1366		if (!mr)
  1367			return ERR_PTR(-ENOMEM);
  1368	
  1369		in = kzalloc(inlen, GFP_KERNEL);
  1370		if (!in) {
  1371			err = -ENOMEM;
  1372			goto err_free;
  1373		}
  1374	
  1375		mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry);
  1376	
  1377		MLX5_SET(mkc, mkc, access_mode_1_0, mode & 0x3);
  1378		MLX5_SET(mkc, mkc, access_mode_4_2, (mode >> 2) & 0x7);
  1379		MLX5_SET64(mkc, mkc, len, length);
  1380		set_mkc_access_pd_addr_fields(mkc, acc, start_addr, pd);
  1381	
  1382		err = mlx5_ib_create_mkey(dev, &mr->mmkey, in, inlen);
  1383		if (err)
  1384			goto err_in;
  1385	
  1386		kfree(in);
  1387	
  1388		set_mr_fields(dev, mr, length, acc);
> 1389		mr->umem = ib_umem_get_dummy(&dev->ib_dev);
  1390		if (IS_ERR(mr->umem)) {
  1391			err = -ENOMEM;
  1392			goto err_free;
  1393		}
  1394	
  1395		return &mr->ibmr;
  1396	
  1397	err_in:
  1398		kfree(in);
  1399	
  1400	err_free:
  1401		kfree(mr);
  1402	
  1403		return ERR_PTR(err);
  1404	}
  1405	

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

Download attachment ".config.gz" of type "application/gzip" (45087 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ