> Currently, the OF_IOMMU code is built when OF and IOMMU_API are enabled. > However, the code also uses OF address parsing helpers, which are only > available when OF_ADDRESS is enabled. Since this dependency is not > expressed in Kconfig, when OF_ADDRESS is disabled the code relies on > CONFIG_OF_ADDRESS guards and a __maybe_unused annotation to avoid > compilation issues. > > The only architecture supporting OF without OF_ADDRESS is SPARC, which > does not use OF_IOMMU. Therefore, make the OF_IOMMU code depend on > OF_ADDRESS so that it is built only when the required address parsing > support is available, avoiding the CONFIG_OF_ADDRESS guards and > __maybe_unused annotation in the code. No functional change is intended. > > Suggested-by: Rob Herring <[email protected]> > Reviewed-by: Krzysztof Kozlowski <[email protected]> > Co-developed-by: Vishnu Reddy <[email protected]> > Signed-off-by: Vishnu Reddy <[email protected]> > Signed-off-by: Vikash Garodia <[email protected]>
Sashiko has reviewed this patch and found no issues. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=3
