drm/panfrost: depend on !GENERIC_ATOMIC64 when using COMPILE_TEST
authorSteven Price <steven.price@arm.com>
Wed, 17 Apr 2019 15:29:28 +0000 (16:29 +0100)
committerRob Herring <robh@kernel.org>
Thu, 18 Apr 2019 14:27:13 +0000 (09:27 -0500)
commitdb594ba3fcf9b2b84d71ffcc62a54b49c21427da
tree5adb3f1f390fb32a0676bdcd59fd77ab8dd0bee7
parent82c810856955d83a840e84c5b03918a00060efb7
drm/panfrost: depend on !GENERIC_ATOMIC64 when using COMPILE_TEST

Since panfrost has a 'select' on IOMMU_IO_PGTABLE_LPAE we must depend on
the same set of flags. Otherwise IOMMU_IO_PGTABLE_LPAE will be forced on
even though it cannot build (no support for cmpxchg64).

This fixes the following warning from kconfig:

WARNING: unmet direct dependencies detected for IOMMU_IO_PGTABLE_LPAE
  Depends on [n]: IOMMU_SUPPORT [=y] && (ARM || ARM64 || COMPILE_TEST [=y] && !GENERIC_ATOMIC64 [=y])
  Selected by [y]:
  - DRM_PANFROST [=y] && HAS_IOMEM [=y] && DRM [=y] && (ARM || ARM64 || COMPILE_TEST [=y]) && MMU [=y]

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190417152928.10790-1-steven.price@arm.com
drivers/gpu/drm/panfrost/Kconfig