diff options
author | Lijun Pan <lijunp213@gmail.com> | 2021-06-11 21:33:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-11 23:56:23 +0300 |
commit | 0b217d3d746233ace52b5dcb26974e929abf62c5 (patch) | |
tree | 558bc5a65de1f838517c7b20bb6cfe2e1a9f910c /drivers/net/wwan/iosm/iosm_ipc_task_queue.c | |
parent | 2227ec7baab22a6f2a8ee8756847f3c2ccc62e3f (diff) | |
download | linux-0b217d3d746233ace52b5dcb26974e929abf62c5.tar.xz |
ibmvnic: fix kernel build warning in strncpy
drivers/net/ethernet/ibm/ibmvnic.c: In function ‘handle_vpd_rsp’:
drivers/net/ethernet/ibm/ibmvnic.c:4393:3: warning: ‘strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
4393 | strncpy((char *)adapter->fw_version, "N/A", 3 * sizeof(char));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Lijun Pan <lijunp213@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_task_queue.c')
0 files changed, 0 insertions, 0 deletions