summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorEduard Zateev <hackerowskiy@gmail.com>2026-09-23 04:48:27 +0200
committerGuenter Roeck <linux@roeck-us.net>2026-10-18 09:35:08 -0700
commitaa8ae39a725347db3511076d2fc5d10caf0a5d8e (patch)
tree8102d3ed0e7605767fb263d4dd79575fc67e896a /tools/perf/scripts/python
parentf47e06715727b4ec545492ff1148e4c3e1681f34 (diff)
downloadlinux-aa8ae39a725347db3511076d2fc5d10caf0a5d8e.tar.gz
linux-aa8ae39a725347db3511076d2fc5d10caf0a5d8e.zip
hwmon: (pmbus/ibm-cffps) Avoid format truncation warnings
Building with W=1 reports format truncation warnings when formatting the firmware version values for debugfs. The SMBus helpers return the byte and word values as int, so the compiler cannot infer that the formatted values fit into the small temporary buffers. Cast the values to u8 and u16 before formatting them. This avoids the -Wformat-truncation warnings while keeping the existing output format unchanged. Signed-off-by: Eduard Zateev <hackerowskiy@gmail.com> Link: https://patch.msgid.link/20260923024827.56445-1-hackerowskiy@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions