diff options
| author | Nathan Chancellor <natechancellor@gmail.com> | 2019-09-26 23:23:54 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2020-02-02 01:41:01 +0200 |
| commit | 41030c7dd59d1ad70501d6edd51fae79279e626b (patch) | |
| tree | 0ffec4cb10cdf8dd73e4551b0818739e326ede9e /kernel/sysctl_binary.c | |
| parent | f59da8d5184939b7e5e994be68cf6d1f3fb9ec2e (diff) | |
soc: qcom: glink_debugfs: Fix strlcpy usage
Clang warns:
../drivers/soc/qcom/glink_debugfs.c:562:18: warning: size argument in
'strlcpy' call appears to be size of the source; expected the size of
the destination [-Wstrlcpy-strlcat-size]
curr, strlen(curr) + 1);
~~~~~~~^~~~~~~~~
../drivers/soc/qcom/glink_debugfs.c:562:11: note: change size argument
to be the size of the destination
curr, strlen(curr) + 1);
^~~~~~~~~~~~~~~~
sizeof(dbgfs_dent_s->self_name)
../drivers/soc/qcom/glink_debugfs.c:564:13: warning: size argument in
'strlcpy' call appears to be size of the source; expected the size of
the destination [-Wstrlcpy-strlcat-size]
strlen(par_dir) + 1);
~~~~~~~^~~~~~~~~~~~
../drivers/soc/qcom/glink_debugfs.c:564:6: note: change size argument to
be the size of the destination
strlen(par_dir) + 1);
^~~~~~~~~~~~~~~~~~~
sizeof(dbgfs_dent_s->par_name)
2 warnings generated.
Fixes: 987bbebd9aa6 ("soc: qcom: Add snapshot of G-Link driver")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
