linux/drivers/thermal
Andy Shevchenko 5ad0af4f43 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: c56f5c0342 ("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>
2026-09-04 15:49:46 +02:00
..
broadcom thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
intel - Get rid of static_cpu_has() - one less API to care about testing CPU 2026-08-18 19:09:42 -07:00
mediatek thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
qcom More thermal control updates for 7.3-rc1 2026-08-26 14:21:30 -07:00
renesas More thermal control updates for 7.3-rc1 2026-08-26 14:21:30 -07:00
samsung thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
spacemit thermal/drivers/spacemit: Validate clamped trip thresholds 2026-08-07 17:18:53 +02:00
st thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
tegra thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
testing thermal: testing: zone: Flush work items during cleanup 2026-06-24 14:59:25 +02:00
ti-soc-thermal
airoha_thermal.c thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
amlogic_thermal.c
armada_thermal.c thermal/drivers/armada: Fix missing bitfields include 2026-08-18 13:09:22 +02:00
cpufreq_cooling.c
cpuidle_cooling.c
da9062-thermal.c
db8500_thermal.c MFD for v7.3 2026-08-27 10:45:08 -07:00
devfreq_cooling.c
dove_thermal.c
gov_bang_bang.c
gov_fair_share.c
gov_power_allocator.c
gov_step_wise.c
gov_user_space.c
hisi_thermal.c thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
imx_sc_thermal.c
imx_thermal.c thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
imx8mm_thermal.c
imx91_thermal.c thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
k3_bandgap.c
k3_j72xx_bandgap.c
Kconfig
khadas_mcu_fan.c
kirkwood_thermal.c
loongson2_thermal.c thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
Makefile
max77620_thermal.c thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
pcie_cooling.c
qoriq_thermal.c thermal/drivers/qoriq: Disable clock on resume failure 2026-08-07 17:18:50 +02:00
rockchip_thermal.c thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
spear_thermal.c
sprd_thermal.c
sun8i_thermal.c thermal: Remove unneeded 'fast_io' parameter in regmap_config 2026-07-27 13:51:56 +02:00
thermal_core.c Revert "thermal/core: Allocate the thermal class dynamically" 2026-08-25 21:08:46 +02:00
thermal_core.h
thermal_debugfs.c
thermal_debugfs.h
thermal_fw.c thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
thermal_helpers.c
thermal_hwmon.c thermal: hwmon: Remove hwmon class device along with its parent 2026-08-05 13:57:39 +02:00
thermal_hwmon.h
thermal_mmio.c
thermal_netlink.c
thermal_netlink.h
thermal_of.c thermal/of: Fix trivial enabled typo 2026-08-07 17:18:40 +02:00
thermal_sysfs.c thermal: sysfs: switch to use scnprintf() to suppress truncation warning 2026-09-04 15:49:46 +02:00
thermal_thresholds.c
thermal_thresholds.h
thermal_trace_ipa.h
thermal_trace.h
thermal_trip.c
thermal-fw.c thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
thermal-generic-adc.c iio: inkern: Use namespaced exports 2026-07-05 01:37:19 +01:00
uniphier_thermal.c