diff options
author | Randy Dunlap <[email protected]> | 2023-02-08 17:03:59 -0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2023-02-16 10:17:31 +0100 |
commit | 4762315d1c971312d55848fdc85eee7f0b09c8f2 (patch) | |
tree | 4392b7eed6ca9fb0d3d408ea801fdaa4045a1927 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 189d496b48b1731f21f19ff3b7109ec724f5dcb2 (diff) |
iommu/of: mark an unused function as __maybe_unused
When CONFIG_OF_ADDRESS is not set, there is a build warning/error
about an unused function.
Annotate the function to quieten the warning/error.
../drivers/iommu/of_iommu.c:176:29: warning: 'iommu_resv_region_get_type' defined but not used [-Wunused-function]
176 | static enum iommu_resv_type iommu_resv_region_get_type(struct device *dev, struct resource *phys,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Fixes: a5bf3cfce8cb ("iommu: Implement of_iommu_get_resv_regions()")
Signed-off-by: Randy Dunlap <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Joerg Roedel <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: [email protected]
Reviewed-by: Thierry Reding <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[joro: Improve code formatting]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions