aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorDmitry Osipenko <[email protected]>2020-02-27 17:08:54 +0000
committerChanwoo Choi <[email protected]>2020-05-28 09:02:39 +0000
commita316b5ca9ead8065ac873e655c313248ecd732bc (patch)
tree12c7e1a06d613c784d8753cc14db7d4c70b10dfd /tools/perf/scripts/python/sctop.py
parentPM / devfreq: imx: Register interconnect device (diff)
downloadkernel-a316b5ca9ead8065ac873e655c313248ecd732bc.tar.gz
kernel-a316b5ca9ead8065ac873e655c313248ecd732bc.zip
PM / devfreq: Replace strncpy with strscpy
GCC produces this warning when kernel compiled using `make W=1`: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation] 772 | strncpy(devfreq->governor_name, governor_name, DEVFREQ_NAME_LEN); The strncpy doesn't take care of NULL-termination of the destination buffer, while the strscpy does. Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions