aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2025-03-14 15:57:15 +0000
committerJason Gunthorpe <[email protected]>2025-04-07 17:55:32 +0000
commit62dd71e691109bb44ba8ad7f58b3a2ac6b69d496 (patch)
tree6895c402eddf2a76e6cc7b61782376fef7f14c23 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentRDMA/bnxt_re: Fix budget handling of notification queue (diff)
downloadkernel-62dd71e691109bb44ba8ad7f58b3a2ac6b69d496.tar.gz
kernel-62dd71e691109bb44ba8ad7f58b3a2ac6b69d496.zip
RDMA/ucaps: Avoid format-security warning
Passing a non-literal format string to dev_set_name causes a warning: drivers/infiniband/core/ucaps.c:173:33: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] 173 | ret = dev_set_name(&ucap->dev, ucap_names[type]); | ^~~~~~~~~~~~~~~~ drivers/infiniband/core/ucaps.c:173:33: note: treat the string as an argument to avoid this 173 | ret = dev_set_name(&ucap->dev, ucap_names[type]); | ^ | "%s", Turn the name into the %s argument as suggested by gcc. Fixes: 61e51682816d ("RDMA/uverbs: Introduce UCAP (User CAPabilities) API") Link: https://patch.msgid.link/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Zhu Yanjun <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions