diff options
| author | Vincenzo Frascino <[email protected]> | 2020-01-10 12:28:07 +0000 |
|---|---|---|
| committer | Jens Wiklander <[email protected]> | 2020-01-23 09:55:20 +0000 |
| commit | 9e0caab8e0f96f0af7d1dd388e62f44184a75372 (patch) | |
| tree | efbb6467dcde7db877ae930bf95ff29f5f8a2c0a /lib/xarray.c | |
| parent | Linux 5.5-rc2 (diff) | |
| download | kernel-9e0caab8e0f96f0af7d1dd388e62f44184a75372.tar.gz kernel-9e0caab8e0f96f0af7d1dd388e62f44184a75372.zip | |
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]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions
