Commit db3a7fd7 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Joerg Roedel

iommu/exynos: prevent building on big-endian kernels

Since we print the correct warning, an allmodconfig build is no longer
clean but always prints it, which defeats compile-testing:

drivers/iommu/exynos-iommu.c:58:2: error: #warning "revisit driver if we can enable big-endian ptes" [-Werror=cpp]

This replaces the #warning with a dependency, moving warning text into
a comment.

Fixes: 1f59adb1 ("iommu/exynos: Replace non-existing big-endian Kconfig option")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 1f59adb1
...@@ -253,6 +253,7 @@ config TEGRA_IOMMU_SMMU ...@@ -253,6 +253,7 @@ config TEGRA_IOMMU_SMMU
config EXYNOS_IOMMU config EXYNOS_IOMMU
bool "Exynos IOMMU Support" bool "Exynos IOMMU Support"
depends on ARCH_EXYNOS && MMU depends on ARCH_EXYNOS && MMU
depends on !CPU_BIG_ENDIAN # revisit driver if we can enable big-endian ptes
select IOMMU_API select IOMMU_API
select ARM_DMA_USE_IOMMU select ARM_DMA_USE_IOMMU
help help
......
...@@ -54,10 +54,6 @@ typedef u32 sysmmu_pte_t; ...@@ -54,10 +54,6 @@ typedef u32 sysmmu_pte_t;
#define lv2ent_small(pent) ((*(pent) & 2) == 2) #define lv2ent_small(pent) ((*(pent) & 2) == 2)
#define lv2ent_large(pent) ((*(pent) & 3) == 1) #define lv2ent_large(pent) ((*(pent) & 3) == 1)
#ifdef CONFIG_CPU_BIG_ENDIAN
#warning "revisit driver if we can enable big-endian ptes"
#endif
/* /*
* v1.x - v3.x SYSMMU supports 32bit physical and 32bit virtual address spaces * v1.x - v3.x SYSMMU supports 32bit physical and 32bit virtual address spaces
* v5.0 introduced support for 36bit physical address space by shifting * v5.0 introduced support for 36bit physical address space by shifting
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment