From: Jan Altensen Date: Sat, 4 Apr 2020 22:43:05 +0000 (+0200) Subject: libmemtrack: resolve compile errors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75a5c86d993fc0d84e73027182215329811e8f37;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_exynos.git libmemtrack: resolve compile errors Change-Id: I5ff7e9589630147da3ce6db7931f370ef25816c2 --- diff --git a/libmemtrack/Android.mk b/libmemtrack/Android.mk index 47aa0a6..f8fbdac 100644 --- a/libmemtrack/Android.mk +++ b/libmemtrack/Android.mk @@ -19,7 +19,7 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_RELATIVE_PATH := hw -LOCAL_C_INCLUDES += hardware/libhardware/include bionic/libc/include +LOCAL_C_INCLUDES += hardware/libhardware/include LOCAL_SHARED_LIBRARIES := liblog LOCAL_SRC_FILES := memtrack_exynos.c mali.c ion.c LOCAL_MODULE := memtrack.$(TARGET_BOARD_PLATFORM) diff --git a/libmemtrack/ion.c b/libmemtrack/ion.c index 1d4a99f..1d8b500 100644 --- a/libmemtrack/ion.c +++ b/libmemtrack/ion.c @@ -45,7 +45,6 @@ int ion_memtrack_get_memory(pid_t pid, enum memtrack_type __unused type, size_t *num_records) { size_t allocated_records = min(*num_records, ARRAY_SIZE(ion_record_templates)); - int i; FILE *fp; struct stat s; char line[1024]; diff --git a/libmemtrack/memtrack_exynos.c b/libmemtrack/memtrack_exynos.c index ef6358b..77fa96e 100644 --- a/libmemtrack/memtrack_exynos.c +++ b/libmemtrack/memtrack_exynos.c @@ -45,17 +45,17 @@ static struct hw_module_methods_t memtrack_module_methods = { }; struct memtrack_module HAL_MODULE_INFO_SYM = { - common: { - tag: HARDWARE_MODULE_TAG, - module_api_version: MEMTRACK_MODULE_API_VERSION_0_1, - hal_api_version: HARDWARE_HAL_API_VERSION, - id: MEMTRACK_HARDWARE_MODULE_ID, - name: "Exynos Memory Tracker HAL", - author: "The Android Open Source Project", - methods: &memtrack_module_methods, + .common = { + .tag = HARDWARE_MODULE_TAG, + .module_api_version = MEMTRACK_MODULE_API_VERSION_0_1, + .hal_api_version = HARDWARE_HAL_API_VERSION, + .id = MEMTRACK_HARDWARE_MODULE_ID, + .name = "Exynos Memory Tracker HAL", + .author = "The Android Open Source Project", + .methods = &memtrack_module_methods, }, - init: exynos_memtrack_init, - getMemory: exynos_memtrack_get_memory, + .init = exynos_memtrack_init, + .getMemory = exynos_memtrack_get_memory, };