Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e112b1c7 authored by Pu Chen's avatar Pu Chen
Browse files

msm: kgsl: Fix miscellaneous compilation errors



Do not include ocmem header file for non-ocmem targets.
Use correct print type for size_t.

Change-Id: Ica17bdf908b8e9b2849f95f45746d5c877ed4cfc
Signed-off-by: default avatarPu Chen <puchen@codeaurora.org>
parent 360013b1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -18,7 +18,11 @@
#include "adreno_ringbuffer.h"
#include "adreno_profile.h"
#include "kgsl_iommu.h"
#include <linux/stat.h>

#ifdef CONFIG_MSM_OCMEM
#include <mach/ocmem.h>
#endif

#include "a3xx_reg.h"

+1 −1
Original line number Diff line number Diff line
@@ -1766,7 +1766,7 @@ kgsl_iommu_map(struct kgsl_pagetable *pt,
				page_to_phys(kgsl_guard_page), PAGE_SIZE,
				protflags & ~IOMMU_WRITE);
		if (ret) {
			KGSL_CORE_ERR("iommu_map(%p, %x, guard, %x) err: %d\n",
			KGSL_CORE_ERR("iommu_map(%p, %zx, guard, %x) err: %d\n",
				iommu_pt->domain, iommu_virt_addr + size,
				protflags & ~IOMMU_WRITE,
				ret);