diff options
| author | Vasily Gorbik <gor@linux.ibm.com> | 2018-06-18 22:49:32 +0200 |
|---|---|---|
| committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2018-07-02 11:25:02 +0200 |
| commit | 5d2f6e26b318a41e4e588bb270377da13b78b3c8 (patch) | |
| tree | e92400c4ce8d81c96cc9b6f141d229e621e50d24 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | s390: align struct lowcore to double page size (diff) | |
| download | linux-5d2f6e26b318a41e4e588bb270377da13b78b3c8.tar.gz linux-5d2f6e26b318a41e4e588bb270377da13b78b3c8.zip | |
s390/tape: fix stringop-truncation gcc 8 warnings
Use strlcpy to make sure strings are NUL-terminated. Fixes the following
gcc 8 warning:
inlined from 'register_tape_dev' at drivers/s390/char/tape_class.c:57:2:
./include/linux/string.h:246:9: warning: '__builtin_strncpy' specified
bound 32 equals destination size [-Wstringop-truncation]
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
