diff options
| author | Lee Jones <[email protected]> | 2020-11-02 10:25:43 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-11-10 22:10:03 -0500 |
| commit | 412b51ffda3c8023cc017f951e864588f157a988 (patch) | |
| tree | 53bb076b55e3a174fbf4bc77c5bb1ec773406c37 /tools/perf/scripts/python/netdev-times.py | |
| parent | d2a2f3794cbcb2c6051f907fbe207ecf3c69702e (diff) | |
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/[email protected]
Cc: Jack Wang <[email protected]>
Acked-by: Jack Wang <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions