From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Zhou Furong Date: Mon, 27 Aug 2018 15:15:51 +0800 Subject: [PATCH] Fix compilation errors when rebase to v4.19-rc1. Include header file of_platform.h when update kernel to v4.19-rc1. Change-Id: I732913061fed8ab14edddb40544df370e19edc54 --- drivers/trusty/trusty-log.c | 4 ++++ drivers/trusty/trusty-timer.c | 4 ++++ drivers/trusty/trusty-wall.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/drivers/trusty/trusty-log.c b/drivers/trusty/trusty-log.c index d2446a1..4888343 100755 --- a/drivers/trusty/trusty-log.c +++ b/drivers/trusty/trusty-log.c @@ -12,6 +12,10 @@ * */ #include +#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) +#include +#endif #include #include #include diff --git a/drivers/trusty/trusty-timer.c b/drivers/trusty/trusty-timer.c index 6783a30..ca6ea57 100644 --- a/drivers/trusty/trusty-timer.c +++ b/drivers/trusty/trusty-timer.c @@ -15,6 +15,10 @@ #include #include #include +#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) +#include +#endif #include #include #include diff --git a/drivers/trusty/trusty-wall.c b/drivers/trusty/trusty-wall.c index 2345f56..812ac2a 100644 --- a/drivers/trusty/trusty-wall.c +++ b/drivers/trusty/trusty-wall.c @@ -13,6 +13,10 @@ * */ #include +#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) +#include +#endif #include #include #include -- 2.21.0