aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2021-06-02 13:58:20 -0700
committerDavid S. Miller <[email protected]>2021-06-03 14:16:14 -0700
commit43902070fb7b73a0148eef63f5ece3a100e821ae (patch)
tree203969b734ff7f3a4ea0fe55383cc2d8bc431712 /tools/perf/scripts/python/compaction-times.py
parent9c153d3889767eb347a9b1719cc6f336faccdba9 (diff)
net: bonding: Use strscpy_pad() instead of manually-truncated strncpy()
Silence this warning by using strscpy_pad() directly: drivers/net/bonding/bond_main.c:4877:3: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 4877 | strncpy(params->primary, primary, IFNAMSIZ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Additionally replace other strncpy() uses, as it is considered deprecated: https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/lkml/[email protected] Acked-by: Jay Vosburgh <[email protected]> Signed-off-by: Kees Cook <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions