diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2026-09-17 08:04:03 +0200 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-09-25 08:06:20 -0700 |
| commit | 7f4d0c359bbac4ba8691bf9b4213bf9ab07cd2a4 (patch) | |
| tree | f7a3993b1fae49fe97bd0ae70368e21860c0e10b /tools/lib/python/kdoc | |
| parent | 6b8a5367e9e73a17561b8ce584ae77a43f712007 (diff) | |
| download | linux-next-7f4d0c359bbac4ba8691bf9b4213bf9ab07cd2a4.tar.gz linux-next-7f4d0c359bbac4ba8691bf9b4213bf9ab07cd2a4.zip | |
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 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
