diff options
author | Dexuan Cui <decui@microsoft.com> | 2024-09-10 02:44:32 +0200 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2024-12-09 19:42:42 +0100 |
commit | cb1b78f1c726c938bd47497c1ab16b01ce967f37 (patch) | |
tree | 35e2deefd830d13c0ab43bb071d5df026ecd05ec /include/clocksource | |
parent | Linux 6.13-rc2 (diff) | |
download | linux-cb1b78f1c726c938bd47497c1ab16b01ce967f37.tar.xz linux-cb1b78f1c726c938bd47497c1ab16b01ce967f37.zip |
tools: hv: Fix a complier warning in the fcopy uio daemon
hv_fcopy_uio_daemon.c:436:53: warning: '%s' directive output may be truncated
writing up to 14 bytes into a region of size 10 [-Wformat-truncation=]
436 | snprintf(uio_dev_path, sizeof(uio_dev_path), "/dev/%s", uio_name);
Also added 'static' for the array 'desc[]'.
Fixes: 82b0945ce2c2 ("tools: hv: Add new fcopy application based on uio driver")
Cc: stable@vger.kernel.org # 6.10+
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Link: https://lore.kernel.org/r/20240910004433.50254-1-decui@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20240910004433.50254-1-decui@microsoft.com>
Diffstat (limited to 'include/clocksource')
0 files changed, 0 insertions, 0 deletions