Re: [PATCH v1 1/1] thermal: sysfs: switch to use scnprintf() to suppress truncation warning

From: Andy Shevchenko

Date: Thu Sep 03 2026 - 07:42:56 EST


On Mon, Aug 17, 2026 at 12:33:24PM +0200, Andy Shevchenko wrote:
> 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.

I still have the build issues, can we get this applied to v7.3-rcX, please?

> Fixes: c56f5c0342df ("Thermal: Make Thermal trip points writeable")

--
With Best Regards,
Andy Shevchenko