aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2018-07-18 09:01:35 -0700
committerJason Gunthorpe <[email protected]>2018-07-25 14:35:11 -0600
commit9491a1edbae39d1fb1c88289d327e33916b98a1e (patch)
tree57bfa0ee214540d123cd6fae92adb312906602fc /tools/perf/scripts/python
parent22fa27fbc64d01cbbe1e4da751e64cc22d24a6e4 (diff)
RDMA/ocrdma: Suppress a compiler warning
This patch avoids that the following compiler warning is reported when building with gcc 8 and W=1: In function 'ocrdma_mbx_get_ctrl_attribs', inlined from 'ocrdma_init_hw' at drivers/infiniband/hw/ocrdma/ocrdma_hw.c:3224:11: drivers/infiniband/hw/ocrdma/ocrdma_hw.c:1368:3: warning: 'strncpy' output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation] strncpy(dev->model_number, ^~~~~~~~~~~~~~~~~~~~~~~~~~ hba_attribs->controller_model_number, 31); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Bart Van Assche <[email protected]> Acked-by: Selvin Xavier <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions