aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core
diff options
context:
space:
mode:
authorQian Cai <cai@gmx.us>2018-11-29 21:18:07 -0500
committerJason Gunthorpe <jgg@mellanox.com>2018-12-06 20:23:06 -0700
commit0fbc9b8b4ea3f688a5da141a64f97aa33ad02ae9 (patch)
treebd6d9ab5860f27db615c1418a93403d5fb767153 /drivers/infiniband/core
parentIB/hfi1: Reduce lock contention on iowait_lock for sdma and pio (diff)
downloadlinux-dev-0fbc9b8b4ea3f688a5da141a64f97aa33ad02ae9.tar.xz
linux-dev-0fbc9b8b4ea3f688a5da141a64f97aa33ad02ae9.zip
mlx4: Use snprintf instead of complicated strcpy
This fixes a compilation warning in sysfs.c drivers/infiniband/hw/mlx4/sysfs.c:360:2: warning: 'strncpy' output may be truncated copying 8 bytes from a string of length 31 [-Wstringop-truncation] By eliminating the temporary stack buffer. Signed-off-by: Qian Cai <cai@gmx.us> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core')
0 files changed, 0 insertions, 0 deletions