mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:44:45 +01:00
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:
|
||
|---|---|---|
| .. | ||
| common.c | ||
| common.h | ||
| Kconfig | ||
| Makefile | ||
| p8_i2c.c | ||
| p9_sbe.c | ||
| sysfs.c | ||