]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Only touch archdata.iommu when it exists
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 18 Sep 2017 16:46:52 +0000 (17:46 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Sep 2017 09:13:50 +0000 (10:13 +0100)
commit7cea42b4ebb66b0dfb73c6a25cd0c6b795fcd50c
treecf98d33fe5d170923fe07ee480167fc75bbfd125
parent3b95fd578d66d83c3fdbf83d0af1f52d53c31f88
drm/i915/selftests: Only touch archdata.iommu when it exists

archdata.iommu only exists when CONFIG_IOMMU_API is enabled (and only
applies to intel-iommu in our case) so conditionally compile it out when
it doesn't exist.

Fixes: d389c0cb9a5b ("drm/i915/selftests: Disable iommu for the mock device")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170918164652.14200-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/selftests/mock_gem_device.c