Message ID | 20221103195154.21495-7-semen.protsenko@linaro.org |
---|---|
State | New |
Headers | show |
Series | iommu/exynos: Convert to a module | expand |
On 03/11/2022 15:51, Sam Protsenko wrote: > Now that CONFIG_EXYNOS_IOMMU can be built as a module, it's not correct > anymore to check whether it's enabled or not just with #ifdef. Use > proper IS_ENABLED() macro to handle both built-in and module cases. > > Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> > --- > Changes in v2: Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_iommu.h b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_iommu.h index 1a32266b7ddc..a8b48692d128 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_iommu.h +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_iommu.h @@ -7,7 +7,9 @@ #ifndef S5P_MFC_IOMMU_H_ #define S5P_MFC_IOMMU_H_ -#if defined(CONFIG_EXYNOS_IOMMU) +#include <linux/kconfig.h> + +#if IS_ENABLED(CONFIG_EXYNOS_IOMMU) #include <linux/iommu.h>
Now that CONFIG_EXYNOS_IOMMU can be built as a module, it's not correct anymore to check whether it's enabled or not just with #ifdef. Use proper IS_ENABLED() macro to handle both built-in and module cases. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> --- Changes in v2: - New patch drivers/media/platform/samsung/s5p-mfc/s5p_mfc_iommu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)