diff options
| author | Leon Romanovsky <[email protected]> | 2023-06-13 08:15:57 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2023-06-21 17:08:28 +0000 |
| commit | 147394dbe1237ef1f2da528c238633215f7193e1 (patch) | |
| tree | b8fe3f9242ee2cee94049227942e6e32db9f5d0c /drivers/gpu/drm/lima/lima_sched.c | |
| parent | RDMA/cma: Remove NULL check before dev_{put, hold} (diff) | |
| download | kernel-147394dbe1237ef1f2da528c238633215f7193e1.tar.gz kernel-147394dbe1237ef1f2da528c238633215f7193e1.zip | |
RDMA/bnxt_re: Initialize opcode while sending message
Fix compilation warning:
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:325:18:
error: variable 'opcode' is uninitialized when used here [-Werror,-Wuninitialized]
crsqe->opcode = opcode;
^~~~~~
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:291:11:
note: initialize the variable 'opcode' to silence this warning
u8 opcode;
^
= '\0'
Fixes: bcfee4ce3e01 ("RDMA/bnxt_re: remove redundant cmdq_bitmap")
Link: https://lore.kernel.org/r/6ad1e44be2b560986da6fdc6b68da606413e9026.1686644105.git.leonro@nvidia.com
Acked-by: Selvin Xavier <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_sched.c')
0 files changed, 0 insertions, 0 deletions
