]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Suppress a compiler warning
authorBart Van Assche <bart.vanassche@wdc.com>
Tue, 10 Jul 2018 18:32:16 +0000 (11:32 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 11 Jul 2018 20:20:45 +0000 (14:20 -0600)
commit9d2fec20f31df731b7c2e3ecb379bc83c1831672
treec5456847231ede8425342ccde264b13be889af11
parent6a2270a5bba5d11c5c9f1dfe6b4e331831bba74b
IB/hfi1: Suppress a compiler warning

Avoid that the following compiler warning is reported when building
with gcc 8:

drivers/infiniband/hw/hfi1/verbs.c:1896:2: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation]

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/verbs.c