linux/drivers/scsi/pm8001
Lee Jones 412b51ffda scsi: pm8001: pm8001_sas: Fix strncpy() warning when space is not left for NUL
This string is not NUL terminated.

Fixes the following W=1 kernel build warning(s):

 from drivers/scsi/pm8001/pm8001_sas.c:41:
 In function ‘strncpy’,
 inlined from ‘pm8001_issue_ssp_tmf’ at drivers/scsi/pm8001/pm8001_sas.c:919:2:
 include/linux/string.h:297:30: warning: ‘__builtin_strncpy’ specified bound 8 equals destination size [-Wstringop-truncation]
 297 | #define __underlying_strncpy __builtin_strncpy
 | ^
 include/linux/string.h:307:9: note: in expansion of macro ‘__underlying_strncpy’
 307 | return __underlying_strncpy(p, q, size);
 | ^~~~~~~~~~~~~~~~~~~~

Link: https://lore.kernel.org/r/20201102102544.1018706-2-lee.jones@linaro.org
Cc: Jack Wang <jinpu.wang@cloud.ionos.com>
Acked-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-11-10 22:10:03 -05:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pm80xx_hwi.c scsi: pm80xx: Avoid busywait in FW ready check 2020-11-04 22:55:38 -05:00
pm80xx_hwi.h scsi: pm80xx: Avoid busywait in FW ready check 2020-11-04 22:55:38 -05:00
pm8001_chips.h
pm8001_ctl.c scsi: pm80xx: Increase number of supported queues 2020-10-07 23:50:04 -04:00
pm8001_ctl.h
pm8001_defs.h scsi: pm80xx: Increase the number of outstanding I/O supported to 1024 2020-10-07 23:50:04 -04:00
pm8001_hwi.c scsi: pm80xx: Fix pm8001_mpi_get_nvmd_resp() race condition 2020-11-04 22:55:38 -05:00
pm8001_hwi.h scsi: pm80xx: Fix for phy enable/disable functionality 2018-09-11 21:13:08 -04:00
pm8001_init.c scsi: pm80xx: Make running_req atomic 2020-11-04 22:55:38 -05:00
pm8001_sas.c scsi: pm8001: pm8001_sas: Fix strncpy() warning when space is not left for NUL 2020-11-10 22:10:03 -05:00
pm8001_sas.h scsi: pm80xx: Make running_req atomic 2020-11-04 22:55:38 -05:00