aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-02-02 14:12:20 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-02-13 21:37:02 -0500
commita8db6140d7d5396263935a48f0bd7eca3b90f15d (patch)
treeb7a62179ab63e3ef2b4df9c8a90e5777d390a34d /tools/perf/scripts/python/bin
parentscsi: qedf: fix LTO-enabled build (diff)
downloadlinux-a8db6140d7d5396263935a48f0bd7eca3b90f15d.tar.gz
linux-a8db6140d7d5396263935a48f0bd7eca3b90f15d.zip
scsi: qedf: use correct strncpy() size
gcc-8 warns during link-time optimization that the strncpy() call passes the size of the source buffer rather than the destination: drivers/scsi/qedf/qedf_dbg.c: In function 'qedf_uevent_emit': include/linux/string.h:253: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] This changes it to strscpy() with the correct length, guaranteeing a properly nul-terminated string of the right size. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Chad Dupuis <chad.dupuis@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions