Skip to content
Snippets Groups Projects
Commit aff0a149 authored by Richard Liu's avatar Richard Liu Committed by Gianfranco Mariotti
Browse files

MA-19350 [#imx-2662] Not use kernel_write/kernel_read on Android non-debug build


Google not allow to use kernel_write/kernel_read in drivers for secure reason.
These symbols can’t be added into GKI (Generic Kernel Image) symbol list, to
meet Google's request skip use them for non-debug build on Android.

Signed-off-by: default avatarRichard Liu <xuegang.liu@nxp.com>
parent 735a6511
No related branches found
No related tags found
1 merge request!156Draft: [i.MX] mxc: gpu-viv: apply patches
......@@ -114,6 +114,7 @@ typedef va_list gctARGUMENTS;
#define gcmkOUTPUT_STRING(String) \
printk("%s", String); \
#if !defined(gcdANDROID) || gcdDEBUG
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)
#define gcmkDUMP_STRING(Os, String) \
do \
......@@ -151,6 +152,7 @@ typedef va_list gctARGUMENTS;
} \
while (0)
#endif
#endif
#define gcmkSPRINTF(Destination, Size, ...) \
snprintf(Destination, Size, __VA_ARGS__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment