aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/altera-fpga2sdram.c
diff options
context:
space:
mode:
authorViresh Kumar <[email protected]>2023-09-27 10:58:16 +0000
committerViresh Kumar <[email protected]>2024-03-11 05:09:24 +0000
commit992e88335997a2f171c7da221a14c40771cd517d (patch)
tree6319983e77f5bb150cde6ec5a61fb48a773f6855 /drivers/fpga/altera-fpga2sdram.c
parentcpufreq: Move dev_pm_opp_{init|free}_cpufreq_table() to pm_opp.h (diff)
downloadkernel-992e88335997a2f171c7da221a14c40771cd517d.tar.gz
kernel-992e88335997a2f171c7da221a14c40771cd517d.zip
OPP: debugfs: Fix warning with W=1 builds
We currently get the following warning: debugfs.c:105:54: error: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 8 [-Werror=format-truncation=] snprintf(name, sizeof(name), "supply-%d", i); ^~ debugfs.c:105:46: note: directive argument in the range [-2147483644, 2147483646] snprintf(name, sizeof(name), "supply-%d", i); ^~~~~~~~~~~ debugfs.c:105:17: note: 'snprintf' output between 9 and 19 bytes into a destination of size 15 snprintf(name, sizeof(name), "supply-%d", i); Fix this and other potential issues it by allocating larger arrays. Use the exact string format to allocate the arrays without getting into these issues again. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Viresh Kumar <[email protected]> Reviewed-by: Dhruva Gole <[email protected]>
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions