samsung_slsi: exynos5: resolve compiling warnings/errors lineage-16.0
authorStricted <info@stricted.net>
Mon, 8 Oct 2018 17:44:29 +0000 (19:44 +0200)
committerJan Altensen <info@stricted.net>
Sun, 5 Apr 2020 01:03:38 +0000 (03:03 +0200)
Change-Id: Ie0f884e33f72977999c2dfc8d697c9357b891418

libkeymaster/Android.mk
libkeymaster/keymaster_mobicore.cpp
libkeymaster/tlcTeeKeymaster_if.c

index 32753a36ddefc58ad161dc749f39e2a9116281c2..6f22471cd13d8bd6616fa6d5d1179191ff1bbad5 100644 (file)
@@ -26,7 +26,7 @@ LOCAL_C_INCLUDES := \
        $(MOBICORE_PATH)/daemon/ClientLib/public \
        $(MOBICORE_PATH)/common/MobiCore/inc/
 LOCAL_C_FLAGS = -fvisibility=hidden -Wall -Werror
-LOCAL_SHARED_LIBRARIES := libcrypto liblog libMcClient
+LOCAL_SHARED_LIBRARIES := libcrypto liblog libMcClient libnativehelper
 LOCAL_MODULE_TAGS := optional
 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
 
index 0ef92e5ea6f4f1add1c61cbc49ae71862f789434..b056d07c5ffb5cc5118ef3fc45a8e1dc23e1d8c5 100644 (file)
@@ -28,7 +28,7 @@
 #include <openssl/err.h>
 #include <openssl/x509.h>
 
-#include <UniquePtr.h>
+#include <nativehelper/UniquePtr.h>
 
 #define LOG_TAG "ExynosKeyMaster"
 #include <cutils/log.h>
@@ -484,20 +484,20 @@ static int exynos_km_open(const hw_module_t* module, const char* name,
 }
 
 static struct hw_module_methods_t keystore_module_methods = {
-    open: exynos_km_open,
+    .open = exynos_km_open,
 };
 
 struct keystore_module HAL_MODULE_INFO_SYM
 __attribute__ ((visibility ("default"))) = {
-    common: {
-        tag: HARDWARE_MODULE_TAG,
-        version_major: 1,
-        version_minor: 0,
-        id: KEYSTORE_HARDWARE_MODULE_ID,
-        name: "Keymaster Exynos HAL",
-        author: "Samsung S.LSI",
-        methods: &keystore_module_methods,
-        dso: 0,
-        reserved: {},
+    .common = {
+        .tag = HARDWARE_MODULE_TAG,
+        .version_major = 1,
+        .version_minor = 0,
+        .id = KEYSTORE_HARDWARE_MODULE_ID,
+        .name = "Keymaster Exynos HAL",
+        .author = "Samsung S.LSI",
+        .methods = &keystore_module_methods,
+        .dso = 0,
+        .reserved = {},
     },
 };
index ded7d19c82acf5c47d546eebdeb7c225ee4ab111..eb12ae85e76e8ce5698268a6a292410bb0365e11 100644 (file)
@@ -99,7 +99,7 @@ static tciMessage_ptr TEE_Open(
 
     } while (false);
 
-    LOG_I("TEE_Open(): returning pointer to TCI buffer: 0x%.8x\n", pTci);
+    //LOG_I("TEE_Open(): returning pointer to TCI buffer: 0x%.8x\n", pTci);
 
     return pTci;
 }