]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Fix -Wformat warning in check_ucmd_data()
authorTom Seewald <tseewald@gmail.com>
Fri, 5 Jun 2020 02:30:12 +0000 (21:30 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 15 Jun 2020 18:39:36 +0000 (15:39 -0300)
commit58dc1ed2dbe265a362bce5ec3ddc847063609c0c
treed2baf3f1cdcd497df5d0d59daef7768cdc0d3bc7
parent75cf0f4258e32670eeb4ce0bf231dad91dc860fa
RDMA/mlx5: Fix -Wformat warning in check_ucmd_data()

Variables of type size_t should use %zu rather than %lu [1]. The variables
"inlen", "ucmd", "last", and "size" are all size_t, so use the correct
format specifiers.

[1] https://www.kernel.org/doc/html/latest/core-api/printk-formats.html

Fixes: 35615a6d1628 ("RDMA/mlx5: Set ECE options during QP create")
Link: https://lore.kernel.org/r/20200605023012.9527-1-tseewald@gmail.com
Signed-off-by: Tom Seewald <tseewald@gmail.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c