diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2026-05-19 22:36:51 +0200 |
|---|---|---|
| committer | Joerg Roedel <joerg.roedel@amd.com> | 2026-05-28 09:29:43 +0200 |
| commit | 80b0d3546ce18c5bbae7cebec014beb2fbe81580 (patch) | |
| tree | f6b56e3971dca2f7ce2b2ae689e10561ebdf76b3 /drivers/phy/eswin/git@git.tavy.me:linux.git | |
| parent | 6ddfbec80077eca7b7e5a4298750d3dac82997ff (diff) | |
iommu: vsi: avoid -Wformat-security warning
When -Wformat-security is enabled, it catches a call to
iommu_device_sysfs_add() that passes a string variable in
place of a format:
drivers/iommu/vsi-iommu.c: In function 'vsi_iommu_probe':
drivers/iommu/vsi-iommu.c:717:9: error: format not a string literal and no format arguments [-Werror=format-security]
717 | err = iommu_device_sysfs_add(&iommu->iommu, dev, NULL, dev_name(dev));
| ^~~
Pass this indirectly using "%s" as the format instead.
Fixes: 917ace84b770 ("iommu: Add verisilicon IOMMU driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
