linux/drivers/tee/optee
Jens Wiklander 34f3c67b81
optee: smc_abi.c: add missing #include <linux/mm.h>
Adds missing #include <linux/mm.h> drivers/tee/optee/smc_abi.c to fix
compile errors like:
drivers/tee/optee/smc_abi.c:405:15: error: implicit
declaration of function 'page_to_section'
[-Werror,-Wimplicit-function-declaration]
        optee_page = page_to_phys(*pages) +
                     ^
arch/arm/include/asm/memory.h:148:43: note: expanded from
macro 'page_to_phys'
                                               ^
include/asm-generic/memory_model.h:52:21: note: expanded
from macro 'page_to_pfn'
                    ^
include/asm-generic/memory_model.h:35:14: note: expanded
from macro '__page_to_pfn'
        int __sec = page_to_section(__pg);                      \
                    ^
drivers/tee/optee/smc_abi.c:405:15: note: did you mean
'__nr_to_section'?
arch/arm/include/asm/memory.h:148:43: note: expanded from
macro 'page_to_phys'
                                               ^
include/asm-generic/memory_model.h:52:21: note: expanded
from macro 'page_to_pfn'
                    ^
include/asm-generic/memory_model.h:35:14: note: expanded
from macro '__page_to_pfn'
        int __sec = page_to_section(__pg);                      \
                    ^
include/linux/mmzone.h:1365:35: note: '__nr_to_section'
declared here
static inline struct mem_section *__nr_to_section(unsigned long nr)

Fixes: c51a564a5b ("optee: isolate smc abi")
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Link: https://lore.kernel.org/r/20211021125539.3858495-1-jens.wiklander@linaro.org'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-10-21 21:35:49 +02:00
..
call.c optee: add FF-A support 2021-10-18 11:44:23 +02:00
core.c optee: add FF-A support 2021-10-18 11:44:23 +02:00
device.c tee: optee: Fix missing devices unregister during optee_remove 2021-10-12 13:24:39 +02:00
ffa_abi.c optee: add FF-A support 2021-10-18 11:44:23 +02:00
Kconfig
Makefile optee: add FF-A support 2021-10-18 11:44:23 +02:00
optee_ffa.h optee: add FF-A support 2021-10-18 11:44:23 +02:00
optee_msg.h optee: add FF-A support 2021-10-18 11:44:23 +02:00
optee_private.h optee: add FF-A support 2021-10-18 11:44:23 +02:00
optee_rpc_cmd.h
optee_smc.h
optee_trace.h
rpc.c optee: isolate smc abi 2021-10-18 11:44:23 +02:00
smc_abi.c optee: smc_abi.c: add missing #include <linux/mm.h> 2021-10-21 21:35:49 +02:00
supp.c