]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Fix build break when CMA=n && SPAPR_TCE_IOMMU=y
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 14 Feb 2017 02:44:05 +0000 (13:44 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 14 Feb 2017 05:54:22 +0000 (16:54 +1100)
commit578167eee0206a28925f7b5aee1b11f833a2f975
tree104fda3dafb0bffb97745a67c08fed531ea091e9
parent1ca0f2f7af8aa83987c10051de00d024ab2d6e75
powerpc/mm: Fix build break when CMA=n && SPAPR_TCE_IOMMU=y

Currently the build breaks if CMA=n and SPAPR_TCE_IOMMU=y:

  arch/powerpc/mm/mmu_context_iommu.c: In function ‘mm_iommu_get’:
  arch/powerpc/mm/mmu_context_iommu.c:193:42: error: ‘MIGRATE_CMA’ undeclared (first use in this function)
  if (get_pageblock_migratetype(page) == MIGRATE_CMA) {
  ^~~~~~~~~~~

Fix it by using the existing is_migrate_cma_page(), which evaulates to
false when CMA=n.

Fixes: 5d557c34362d ("KVM: PPC: Book3S HV: Migrate pinned pages out of CMA")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/mmu_context_iommu.c