mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
a316b5ca9e
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 <digetx@gmail.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> |
||
---|---|---|
.. | ||
event | ||
devfreq-event.c | ||
devfreq.c | ||
exynos-bus.c | ||
governor_passive.c | ||
governor_performance.c | ||
governor_powersave.c | ||
governor_simpleondemand.c | ||
governor_userspace.c | ||
governor.h | ||
imx8m-ddrc.c | ||
imx-bus.c | ||
Kconfig | ||
Makefile | ||
rk3399_dmc.c | ||
tegra20-devfreq.c | ||
tegra30-devfreq.c |