Files
linux/drivers/hwmon
Arnd Bergmann 831a2b2791 hwmon: (occ) Mark occ_init_attribute() as __printf
This is a printf-style function, which gcc -Werror=suggest-attribute=format
correctly points out:

drivers/hwmon/occ/common.c: In function 'occ_init_attribute':
drivers/hwmon/occ/common.c:761:9: error: function 'occ_init_attribute' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]

Add the attribute to avoid this warning and ensure any incorrect
format strings are detected here.

Fixes: 744c2fe950 ("hwmon: (occ) Rework attribute registration for stack usage")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20260203163440.2674340-1-arnd@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2026-02-04 14:40:36 -08:00
..
2025-11-02 11:07:16 -08:00
2025-03-18 08:03:40 -07:00
2025-10-15 11:02:43 -07:00
2025-05-12 18:05:54 -07:00
2025-11-26 09:03:56 -08:00
2025-10-15 11:02:43 -07:00
2025-10-17 05:59:12 -07:00
2025-09-25 08:08:13 -07:00
2025-10-19 18:56:14 -07:00
2025-09-09 05:26:11 -07:00
2025-10-15 11:02:43 -07:00