]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/hns: Use dev_* printings in hem code instead of ibdev_*
authorJunxian Huang <huangjunxian6@hisilicon.com>
Thu, 24 Oct 2024 12:39:59 +0000 (20:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:53:35 +0000 (13:53 +0100)
commitb29a038f4d22fa2d592afce2f3eb3383764b4a43
tree5d79ce95a84dd87c8c6999920dc44989883775d0
parentbbfa1c3e757ad2045adfebcc482def2394f4d2a0
RDMA/hns: Use dev_* printings in hem code instead of ibdev_*

[ Upstream commit d81fb6511abf18591befaa5f4a972ffc838690ec ]

The hem code is executed before ib_dev is registered, so use dev_*
printing instead of ibdev_* to avoid log like this:

(null): set HEM address to HW failed!

Fixes: 2f49de21f3e9 ("RDMA/hns: Optimize mhop get flow for multi-hop addressing")
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20241024124000.2931869-5-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hem.c