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 thermal/drivers/amlogic: Add support for secure monitor calibration readout 2026-06-03 09:12:17 +02:00
armada_thermal.c thermal/drivers/armada: Fix missing bitfields include 2026-08-18 13:09:22 +02:00
cpufreq_cooling.c thermal/of: Add cooling device ID support 2026-06-03 09:12:55 +02:00
cpuidle_cooling.c thermal/of: Add cooling device ID support 2026-06-03 09:12:55 +02:00
da9062-thermal.c thermal: Constify struct thermal_zone_device_ops 2025-07-15 15:26:04 +02:00
db8500_thermal.c MFD for v7.3 2026-08-27 10:45:08 -07:00
devfreq_cooling.c thermal/of: Add cooling device ID support 2026-06-03 09:12:55 +02:00
dove_thermal.c thermal: Constify struct thermal_zone_device_ops 2025-07-15 15:26:04 +02:00
gov_bang_bang.c
gov_fair_share.c
gov_power_allocator.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
gov_step_wise.c thermal: gov_step_wise: Allow cooling level to be reduced earlier 2025-09-04 21:28:01 +02:00
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 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig thermal/drivers/spacemit/k1: Add thermal sensor support 2026-06-03 09:12:31 +02:00
khadas_mcu_fan.c thermal/of: Rename the devm_thermal_of_cooling_device_register() function 2026-06-03 09:12:53 +02:00
kirkwood_thermal.c thermal: Constify struct thermal_zone_device_ops 2025-07-15 15:26:04 +02:00
loongson2_thermal.c thermal/drivers: Remove redundant error messages on IRQ request failure 2026-08-07 17:27:28 +02:00
Makefile thermal/drivers/spacemit/k1: Add thermal sensor support 2026-06-03 09:12:31 +02:00
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 thermal/drivers/spear: Fix error condition for reading st,thermal-flags 2026-03-27 11:26:43 +01:00
sprd_thermal.c thermal/drivers/sprd: Use min instead of clamp in sprd_thm_temp_to_rawdata 2026-03-10 11:54:12 +01:00
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/of: Move cooling device OF helpers out of thermal core 2026-06-03 09:12:50 +02:00
thermal_debugfs.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
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 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
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