Skip to content

Commit 9e0caab

Browse files
fvincenzojenswi-linaro
authored andcommitted
tee: optee: Fix compilation issue with nommu
The optee driver uses specific page table types to verify if a memory region is normal. These types are not defined in nommu systems. Trying to compile the driver in these systems results in a build error: linux/drivers/tee/optee/call.c: In function ‘is_normal_memory’: linux/drivers/tee/optee/call.c:533:26: error: ‘L_PTE_MT_MASK’ undeclared (first use in this function); did you mean ‘PREEMPT_MASK’? return (pgprot_val(p) & L_PTE_MT_MASK) == L_PTE_MT_WRITEALLOC; ^~~~~~~~~~~~~ PREEMPT_MASK linux/drivers/tee/optee/call.c:533:26: note: each undeclared identifier is reported only once for each function it appears in linux/drivers/tee/optee/call.c:533:44: error: ‘L_PTE_MT_WRITEALLOC’ undeclared (first use in this function) return (pgprot_val(p) & L_PTE_MT_MASK) == L_PTE_MT_WRITEALLOC; ^~~~~~~~~~~~~~~~~~~ Make the optee driver depend on MMU to fix the compilation issue. Signed-off-by: Vincenzo Frascino <[email protected]> [jw: update commit title] Signed-off-by: Jens Wiklander <[email protected]>
1 parent d1eef1c commit 9e0caab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tee/optee/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
config OPTEE
44
tristate "OP-TEE"
55
depends on HAVE_ARM_SMCCC
6+
depends on MMU
67
help
78
This implements the OP-TEE Trusted Execution Environment (TEE)
89
driver.

0 commit comments

Comments
 (0)