Remove build warnings 07/149507/3 accepted/tizen/unified/20170915.191013 submit/tizen/20170914.095319
authorSejun Park <sejun79.park@samsung.com>
Tue, 12 Sep 2017 10:08:13 +0000 (19:08 +0900)
committerSejun Park <sejun79.park@samsung.com>
Thu, 14 Sep 2017 05:48:50 +0000 (14:48 +0900)
Change-Id: Icb6d5af3c42e1361afebcfe9e504df46d9697ff1

exynos/libion/kernel-headers/linux/ion.h
exynos/libvideocodec/Makefile.am
exynos/libvideocodec/dec/ExynosVideoDecoder.c
exynos/libvideocodec/enc/ExynosVideoEncoder.c
openmax/component/video/dec/h264/Exynos_OMX_H264dec.c [changed mode: 0755->0644]
openmax/component/video/dec/h264/library_register.c [changed mode: 0755->0644]
openmax/osal/Exynos_OSAL_Log.c
openmax/osal/Exynos_OSAL_SharedMemory.c
openmax/osal/Makefile.am
packaging/libomxil-e7270-v4l2.spec

index bb145d1..fa0fe9f 100755 (executable)
@@ -102,5 +102,21 @@ struct ion_preload_data {
 #define ION_IOC_PRELOAD_ALLOC _IOW(ION_IOC_MAGIC, 8, struct ion_preload_data)
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 #define ION_IOC_CUSTOM _IOWR(ION_IOC_MAGIC, 6, struct ion_custom_data)
+
+struct ion_handle;
+
+int ion_open();
+int ion_close(int fd);
+int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask,
+              unsigned int flags, ion_user_handle_t *handle);
+int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask,
+              unsigned int flags, int *handle_fd);
+int ion_sync_fd(int fd, int handle_fd);
+int ion_sync_fd_partial(int fd, int handle_fd, off_t offset, size_t len);
+int ion_free(int fd, ion_user_handle_t handle);
+int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot,
+            int flags, off_t offset, unsigned char **ptr, int *map_fd);
+int ion_share(int fd, ion_user_handle_t handle, int *share_fd);
+int ion_import(int fd, int share_fd, ion_user_handle_t *handle);
 #endif
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
index 41c658b..8dc3d6f 100755 (executable)
@@ -12,6 +12,7 @@ libExynosVideoApi_la_CFLAGS = -I$(CURDIR)/include \
                               -I$(CURDIR)/mfc_headers \
                               -I$(top_srcdir)/openmax/include/khronos \
                               -I$(top_srcdir)/openmax/osal \
+                              -I$(top_srcdir)/exynos/libion/kernel-headers/linux \
                               $(EXYNOSCOMMON_CFLAGS)
 
 libExynosVideoApi_la_CFLAGS += -DCID_SUPPORT -DUSE_DEFINE_H264_SEI_TYPE -DUSE_MFC_MEDIA -DUSE_ORIGINAL_HEADER \
index 55a22ad..d7931fa 100755 (executable)
@@ -45,6 +45,7 @@
 #include "ExynosVideoDec.h"
 #include "ExynosVideo_OSAL_Dec.h"
 #include "OMX_Core.h"
+#include "ion.h"
 
 /* #define LOG_NDEBUG 0 */
 #ifdef LOG_TAG
index 63d1a89..9d73ffe 100755 (executable)
@@ -45,6 +45,7 @@
 #include "ExynosVideoEnc.h"
 #include "ExynosVideo_OSAL_Enc.h"
 #include "OMX_Core.h"
+#include "ion.h"
 
 /* #define LOG_NDEBUG 0 */
 #ifdef LOG_TAG
index 04fc7a1..24ef4e1 100755 (executable)
@@ -33,6 +33,7 @@
 
 #include "Exynos_OSAL_Log.h"
 #include "Exynos_OSAL_ETC.h"
+#include "Exynos_OSAL_Memory.h"
 
 #ifdef USE_DLOG
 #include <dlog.h>
index 21e83e1..a7b766e 100755 (executable)
@@ -38,7 +38,7 @@
 #include <fcntl.h>
 #include <sys/mman.h>
 
-#include <../libion/kernel-headers/linux/ion.h>
+#include "ion.h"
 #include "exynos_ion.h"
 
 #include "Exynos_OSAL_Mutex.h"
index 47aac5b..2dcd154 100755 (executable)
@@ -19,6 +19,7 @@ libExynosOMX_OSAL_la_CFLAGS = -I$(top_srcdir)/openmax/include/khronos \
                               -I$(top_srcdir)/openmax/core \
                               -I$(top_srcdir)/openmax/osal \
                               -I$(top_srcdir)/openmax/component/common \
+                              -I$(top_srcdir)/exynos/libion/kernel-headers/linux \
                               -I$(top_srcdir)/exynos/libvideocodec/include
 libExynosOMX_OSAL_la_CFLAGS += -DUSE_KHRONOS_OMX_HEADER -DUSE_DMA_BUF -DUSE_METADATABUFFERTYPE -DUSE_STOREMETADATA
 libExynosOMX_OSAL_la_CFLAGS += -Wno-unused-label
index b0a2bb4..e513bed 100755 (executable)
@@ -3,7 +3,7 @@ Summary: OpenMAX IL for e7270-v4l2
 Version: 0.0.1
 License: Apache-2.0
 Group: Development/Libraries
-Release: 0
+Release: 1
 ExclusiveArch: %arm
 Source: %{name}-%{version}.tar.gz
 Requires(post): /sbin/ldconfig