diff options
| author | 2026-09-17 08:04:03 +0200 | |
|---|---|---|
| committer | 2026-09-25 08:06:20 -0700 | |
| commit | 7f4d0c359bbac4ba8691bf9b4213bf9ab07cd2a4 (patch) | |
| tree | f7a3993b1fae49fe97bd0ae70368e21860c0e10b /scripts/Makefile.thinlto | |
| parent | nvme: work around -Wformat-security warning (diff) | |
nvme: work around all -Wformat-security warnings
The sysfs code passes two string variables into sysfs_emit(), which is safe
in this instance but causes the compiler to warn when -Wformat-security
is enabled:
host/sysfs.c: In function ‘cntrltype_show’:
host/sysfs.c:682:9: error: format not a string literal and no format arguments [-Werror=format-security]
682 | return sysfs_emit(buf, type[ctrl->cntrltype]);
Print these using a "%s" format like all other instances in the same file.
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
