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

Commit 9922d261 authored by Shrenuj Bansal's avatar Shrenuj Bansal
Browse files

msm: kgsl: Add arch_mmap_check() stub definition



Add a stub definition for arch_mmap_check() in kgsl.c for
situations where the function is not defined, similar to the
stub definition in mm/mmap.c

Change-Id: I2d0f7f8c76f35cbec1554893433199e256f76df4
Signed-off-by: default avatarShrenuj Bansal <shrenujb@codeaurora.org>
parent 2e5dacb7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -44,6 +44,10 @@
#undef MODULE_PARAM_PREFIX
#define MODULE_PARAM_PREFIX "kgsl."

#ifndef arch_mmap_check
#define arch_mmap_check(addr, len, flags)	(0)
#endif

static int kgsl_pagetable_count = KGSL_PAGETABLE_COUNT;
static char *ksgl_mmu_type;
module_param_named(ptcount, kgsl_pagetable_count, int, 0);