summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2026-09-16 13:44:51 +0200
committerKeith Busch <kbusch@kernel.org>2026-09-25 08:06:20 -0700
commit6b8a5367e9e73a17561b8ce584ae77a43f712007 (patch)
tree063513aa4ba9a243f861d739bbb3f91cb4b182b9 /tools/lib/python
parentc20bba234f3e1dcd81f7a2ec21ea7bf01a4cf35f (diff)
downloadlinux-next-6b8a5367e9e73a17561b8ce584ae77a43f712007.tar.gz
linux-next-6b8a5367e9e73a17561b8ce584ae77a43f712007.zip
nvme: work around -Wformat-security warning
Passing a string variable into dev_set_name() causes a warning when building with -Wformat-security enabled: drivers/nvme/host/core.c: In function 'nvme_cdev_add': drivers/nvme/host/core.c:3911:9: error: format not a string literal and no format arguments [-Werror=format-security] 3911 | ret = dev_set_name(cdev_device, name); Remove the temporary strings and let dev_set_name() do the same thing internally. Fixes: 26acdaa357cd ("nvme: fix crash and memory leak during invalid cdev teardown") Reviewed-by: Nilay Shroff <nilay@linux.ibm.com> Reviewed-by: John Garry <john.garry@linux.dev> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions