1. 04 Jul, 2019 4 commits
    • Valentine Fatiev's avatar
      IB/ipoib: Add child to parent list only if device initialized · 91b01061
      Valentine Fatiev authored
      Despite failure in ipoib_dev_init() we continue with initialization flow
      and creation of child device. It causes to the situation where this child
      device is added too early to parent device list.
      
      Change the logic, so in case of failure we properly return error from
      ipoib_dev_init() and add child only in success path.
      
      Fixes: eaeb3984 ("IB/ipoib: Move init code to ndo_init")
      Signed-off-by: default avatarValentine Fatiev <valentinef@mellanox.com>
      Reviewed-by: default avatarFeras Daoud <ferasda@mellanox.com>
      Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
      Reviewed-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      91b01061
    • Leon Romanovsky's avatar
      RDMA/mlx5: Use proper allocation API to get zeroed memory · 50ba3c18
      Leon Romanovsky authored
      There is no need in custom memory zeroing, because it can be done
      by using kzalloc from the beginning.
      Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
      Reviewed-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      50ba3c18
    • Colin Ian King's avatar
      RDMA/uverbs: remove redundant assignment to variable ret · 0bddcff6
      Colin Ian King authored
      The variable ret is being initialized with a value that is never read and
      it is being updated later with a new value. The initialization is
      redundant and can be removed.
      
      Addresses-Coverity: ("Unused value")
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Reviewed-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      0bddcff6
    • Lijun Ou's avatar
      RDMA/hns: Fix building modular hns · 9a601fc4
      Lijun Ou authored
      The patch below wasn't fully tested for all combinations of module and
      configs, and causes a compile failure:
      
      WARNING: modpost: missing MODULE_LICENSE() in drivers/infiniband/hw/hns/hns_roce_ah.o
      see include/linux/module.h for more information
      WARNING: modpost: missing MODULE_LICENSE() in drivers/infiniband/hw/hns/hns_roce_alloc.o
      see include/linux/module.h for more information
      WARNING: modpost: missing MODULE_LICENSE() in drivers/infiniband/hw/hns/hns_roce_cmd.o
      see include/linux/module.h for more information
      WARNING: modpost: missing MODULE_LICENSE() in drivers/infiniband/hw/hns/hns_roce_cq.o
      see include/linux/module.h for more information
      WARNING: modpost: missing MODULE_LICENSE() in drivers/infiniband/hw/hns/hns_roce_db.o
      see include/linux/module.h for more information
      WARNING: modpost: missing MODULE_LICENSE() in drivers/infiniband/hw/hns/hns_roce_hem.o
      see include/linux/module.h for more information
      WARNING: modpost: missing MODULE_LICENSE() in drivers/infiniband/hw/hns/hns_roce_mr.o
      see include/linux/module.h for more information
      WARNING: modpost: missing MODULE_LICENSE() in drivers/infiniband/hw/hns/hns_roce_pd.o
      see include/linux/module.h for more information
      WARNING: modpost: missing MODULE_LICENSE() in drivers/infiniband/hw/hns/hns_roce_qp.o
      see include/linux/module.h for more information
      WARNING: modpost: missing MODULE_LICENSE() in drivers/infiniband/hw/hns/hns_roce_restrack.o
      see include/linux/module.h for more information
      WARNING: modpost: missing MODULE_LICENSE() in drivers/infiniband/hw/hns/hns_roce_srq.o
      see include/linux/module.h for more information
      ERROR: "hns_roce_bitmap_cleanup" [drivers/infiniband/hw/hns/hns_roce_srq.ko] undefined!
      ERROR: "hns_roce_bitmap_init" [drivers/infiniband/hw/hns/hns_roce_srq.ko] undefined!
      ERROR: "hns_roce_free_cmd_mailbox" [drivers/infiniband/hw/hns/hns_roce_srq.ko] undefined!
      ERROR: "hns_roce_alloc_cmd_mailbox" [drivers/infiniband/hw/hns/hns_roce_srq.ko] undefined!
      ERROR: "hns_roce_table_get" [drivers/infiniband/hw/hns/hns_roce_srq.ko] undefined!
      ERROR: "hns_roce_bitmap_alloc" [drivers/infiniband/hw/hns/hns_roce_srq.ko] undefined!
      ERROR: "hns_roce_table_find" [drivers/infiniband/hw/hns/hns_roce_srq.ko] undefined!
      
      The fix is to put the module sub components in the right line.
      
      Fixes: e9816ddf ("RDMA/hns: Cleanup unnecessary exported symbols")
      Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarXi Wang <wangxi11@huawei.com>
      Signed-off-by: default avatarLijun Ou <oulijun@huawei.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      9a601fc4
  2. 03 Jul, 2019 20 commits
  3. 02 Jul, 2019 12 commits
  4. 01 Jul, 2019 4 commits