diff options
| author | Adrián García Casado <adriangarciacasado42@gmail.com> | 2026-10-20 21:59:34 +0200 |
|---|---|---|
| committer | Martin K. Petersen (Oracle) <mkp@kernel.org> | 2026-10-28 21:53:54 -0400 |
| commit | 503e6172fa74da6b4944ece458f5534681e51d21 (patch) | |
| tree | 9b4f1e264ec9cc58c2896883ed64f0d547aeacb5 /scripts/dummy-tools/python3 | |
| parent | 6a6e7d7230cd4e0a6c003bae5b85bf37a1e77b94 (diff) | |
scsi: libsas: Add __printf attribute to sas_ata_printk()
sas_ata_printk() formats its variadic arguments via struct va_format and
%pV before passing them to printk().
Because %pV hides the format string from the compiler, GCC does not suggest
the format attribute under -Wsuggest-attribute=format, and callers do not
get compile-time format string validation.
Add the __printf(3, 4) attribute to sas_ata_printk() to enable compile-time
format string checking for its callers.
Signed-off-by: Adrián García Casado <adriangarciacasado42@gmail.com>
Reviewed-by: John Garry <john.garry@linux.dev>
Link: https://patch.msgid.link/20261020195934.250768-1-adriangarciacasado42@gmail.com
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'scripts/dummy-tools/python3')
0 files changed, 0 insertions, 0 deletions
