summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2026-08-17 12:33:24 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-09-04 15:49:46 +0200
commit5ad0af4f4367202b1bc71813052fe39b5116cdb9 (patch)
treeb40a97f9c531c0b412593b35abdfda3f2482fa2e /scripts/basic/split-include.c
parentcee9395acd8043be0644b25c34bfa86623f2b935 (diff)
downloadlinux-5ad0af4f4367202b1bc71813052fe39b5116cdb9.tar.gz
linux-5ad0af4f4367202b1bc71813052fe39b5116cdb9.zip
thermal: sysfs: switch to use scnprintf() to suppress truncation warning
Switch the sysfs code to use scnprintf() to avoid warnings about potential truncation of the names of the sysfs attributes. We can't increase the buffer size because the size is the part of an ABI for some reason. Note, with the current size of buffer the affected attributes have a room for up to 1000 names, which ought to be enough for all cases. There is no functional change, as the same limitation was implied before. Fixes: c56f5c0342df ("Thermal: Make Thermal trip points writeable") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> Link: https://patch.msgid.link/20260817103324.1020212-1-andriy.shevchenko@linux.intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions