[Android General] shntat12345:
undeclared identifiers n7100 build

what do i need to do to fix the errors below?

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:489:17: error: use of undeclared identifier 'GRALLOC_USAGE_YUV_ADDR'

if (usage & GRALLOC_USAGE_YUV_ADDR) {

^

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:494:87: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]

ALOGD_IF(debug_level > 0, "%s vaddr[0]=%x vaddr[1]=%x vaddr[2]=%x", __func__, vaddr[0], vaddr[1], vaddr[2]);

~~ ^~~~~~~~

system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'

((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'

#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'

#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'

__android_log_print(prio, tag, __VA_ARGS__)

^~~~~~~~~~~

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:494:97: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]

ALOGD_IF(debug_level > 0, "%s vaddr[0]=%x vaddr[1]=%x vaddr[2]=%x", __func__, vaddr[0], vaddr[1], vaddr[2]);

~~ ^~~~~~~~

system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'

((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'

#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'

#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'

__android_log_print(prio, tag, __VA_ARGS__)

^~~~~~~~~~~

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:494:107: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]

ALOGD_IF(debug_level > 0, "%s vaddr[0]=%x vaddr[1]=%x vaddr[2]=%x", __func__, vaddr[0], vaddr[1], vaddr[2]);

~~ ^~~~~~~~

system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'

((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'

#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'

#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'

__android_log_print(prio, tag, __VA_ARGS__)

^~~~~~~~~~~

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:454:49: warning: unused parameter 'module' [-Wunused-parameter]

static int gralloc_lock(gralloc_module_t const* module, buffer_handle_t handle,

^

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:505:51: warning: unused parameter 'module' [-Wunused-parameter]

static int gralloc_unlock(gralloc_module_t const* module, buffer_handle_t handle)

^

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:585:89: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]

ALOGD_IF(debug_level > 0, "%s paddr[0]=0x%x paddr[1]=0x%x paddr[2]=0x%x", __func__, paddr[0], paddr[1], paddr[2]);

~~ ^~~~~~~~

system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'

((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'

#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'

#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'

__android_log_print(prio, tag, __VA_ARGS__)

^~~~~~~~~~~

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:585:99: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]

ALOGD_IF(debug_level > 0, "%s paddr[0]=0x%x paddr[1]=0x%x paddr[2]=0x%x", __func__, paddr[0], paddr[1], paddr[2]);

~~ ^~~~~~~~

system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'

((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'

#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'

#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'

__android_log_print(prio, tag, __VA_ARGS__)

^~~~~~~~~~~

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:585:109: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]

ALOGD_IF(debug_level > 0, "%s paddr[0]=0x%x paddr[1]=0x%x paddr[2]=0x%x", __func__, paddr[0], paddr[1], paddr[2]);

~~ ^~~~~~~~

system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'

((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'

#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'

#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'

__android_log_print(prio, tag, __VA_ARGS__)

^~~~~~~~~~~

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:580:52: warning: unused parameter 'module' [-Wunused-parameter]

static int gralloc_getphys(gralloc_module_t const* module, buffer_handle_t handle, void** paddr)

^

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:593:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

open: gralloc_device_open

^~~~~

.open =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:598:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

base:

^~~~~

.base =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:600:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]

common:

^~~~~~~

.common =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:602:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]

tag: HARDWARE_MODULE_TAG,

^~~~

.tag =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:603:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]

version_major: 1,

^~~~~~~~~~~~~~

.module_api_version =

hardware/libhardware/include/hardware/hardware.h:114:23: note: expanded from macro 'version_major'

#define version_major module_api_version

^

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:604:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]

version_minor: 0,

^~~~~~~~~~~~~~

.hal_api_version =

hardware/libhardware/include/hardware/hardware.h:132:23: note: expanded from macro 'version_minor'

#define version_minor hal_api_version

^

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:605:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]

id: GRALLOC_HARDWARE_MODULE_ID,

^~~

.id =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:606:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]

name: "Graphics Memory Allocator Module",

^~~~~

.name =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:607:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]

author: "ARM Ltd.",

^~~~~~~

.author =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:608:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]

methods: &gralloc_module_methods,

^~~~~~~~

.methods =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:609:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]

dso: NULL,

^~~~

.dso =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:610:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]

reserved : {0,},

^~~~~~~~~~

.reserved =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:612:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]

registerBuffer: gralloc_register_buffer,

^~~~~~~~~~~~~~~

.registerBuffer =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:613:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]

unregisterBuffer: gralloc_unregister_buffer,

^~~~~~~~~~~~~~~~~

.unregisterBuffer =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:614:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]

lock: gralloc_lock,

^~~~~

.lock =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:615:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]

unlock: gralloc_unlock,

^~~~~~~

.unlock =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:616:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]

getphys: gralloc_getphys,

^~~~~~~~

.getphys =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:617:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]

perform: NULL,

^~~~~~~~

.perform =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:618:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]

lock_ycbcr: NULL,

^~~~~~~~~~~

.lock_ycbcr =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:620:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

framebuffer: NULL,

^~~~~~~~~~~~

.framebuffer =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:621:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

flags: 0,

^~~~~~

.flags =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:622:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

numBuffers: 0,

^~~~~~~~~~~

.numBuffers =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:623:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

bufferMask: 0,

^~~~~~~~~~~

.bufferMask =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:624:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

lock: PTHREAD_MUTEX_INITIALIZER,

^~~~~

.lock =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:625:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

currentBuffer: NULL,

^~~~~~~~~~~~~~

.currentBuffer =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:626:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

ion_client: -1,

^~~~~~~~~~~

.ion_client =

hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:616:9: error: field designator 'getphys' does not refer to any field in type 'gralloc_module_t'

getphys: gralloc_getphys,

^

42 warnings and 2 errors generated.

[ 0% 20/63617] build /home/shaun/Desktop/android/out/target/product/n7100/obj/NOTICE_FILES/src/system/lib/liblights_helper.a.txt

Notice file: hardware/samsung/liblights/NOTICE -- /home/shaun/Desktop/android/out/target/product/n7100/obj/NOTICE_FILES/src/system/lib/liblights_helper.a.txt

[ 0% 21/63617] build /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/lights.smdk4x12_intermediates/link_type

Check module type: /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/lights.smdk4x12_intermediates/link_type

[ 0% 22/63617] build /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o

FAILED: /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o

/bin/bash -c "(echo "target thumb C++: gralloc.exynos4 <= hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp" ) && (mkdir -p /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/ ) && (PWD=/proc/self/cwd prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++	-I device/samsung/smdk4412-common/include -I device/samsung/n7100/include -I bionic/libc/include -I hardware/samsung/exynos4/hal/libgralloc_ump/../include -I hardware/samsung/exynos4/hal/libgralloc_ump -I /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates -I /home/shaun/Desktop/android/out/target/product/n7100/gen/SHARED_LIBRARIES/gralloc.exynos4_intermediates -I libnativehelper/include_deprecated \$(cat /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem /home/shaun/Desktop/android/out/target/product/n7100/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -march=armv7-a -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -DLOG_TAG=\"gralloc\" -DSAMSUNG_EXYNOS -DSAMSUNG_EXYNOS_CACHE_UMP -DUSE_PARTIAL_FLUSH -DSAMSUNG_EXYNOS4x12 -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.d -o /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp )"

target thumb C++: gralloc.exynos4 <= hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp

In file included from hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:30:

bionic/libc/include/string.h:164:1: warning: empty struct has size 0 in C, size 1 in C++ [-Wextern-c-compat]

struct __bionic_zero_size_is_okay_t {};

^

In file included from hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:41:

hardware/samsung/exynos4/hal/libgralloc_ump/../include/gralloc_priv.h:169:5: warning: field 'ion_client' will be initialized after field 'yaddr' [-Wreorder]

ion_client(0),

^

hardware/samsung/exynos4/hal/libgralloc_ump/../include/gralloc_priv.h:198:5: warning: field 'ion_client' will be initialized after field 'yaddr' [-Wreorder]

ion_client(0),

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:118:17: error: use of undeclared identifier 'GRALLOC_USAGE_HW_FIMC1'; did you mean 'GRALLOC_USAGE_HW_FB'?

if (usage & GRALLOC_USAGE_HW_FIMC1) {

^~~~~~~~~~~~~~~~~~~~~~

GRALLOC_USAGE_HW_FB

hardware/libhardware/include/hardware/gralloc.h:96:5: note: 'GRALLOC_USAGE_HW_FB' declared here

GRALLOC_USAGE_HW_FB = 0x00001000U,

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:196:37: error: use of undeclared identifier 'GRALLOC_USAGE_HWC_HWOVERLAY'

if ( (usage < 0 || usage & (GRALLOC_USAGE_HWC_HWOVERLAY | GRALLOC_USAGE_HW_FIMC1)) &&

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:196:67: error: use of undeclared identifier 'GRALLOC_USAGE_HW_FIMC1'; did you mean 'GRALLOC_USAGE_HW_FB'?

if ( (usage < 0 || usage & (GRALLOC_USAGE_HWC_HWOVERLAY | GRALLOC_USAGE_HW_FIMC1)) &&

^~~~~~~~~~~~~~~~~~~~~~

GRALLOC_USAGE_HW_FB

hardware/libhardware/include/hardware/gralloc.h:96:5: note: 'GRALLOC_USAGE_HW_FB' declared here

GRALLOC_USAGE_HW_FB = 0x00001000U,

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:199:25: error: use of undeclared identifier 'GRALLOC_USAGE_PRIVATE_NONECACHE'; did you mean 'GRALLOC_USAGE_PRIVATE_MASK'?

if (usage & GRALLOC_USAGE_PRIVATE_NONECACHE) {

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

GRALLOC_USAGE_PRIVATE_MASK

hardware/libhardware/include/hardware/gralloc.h:144:5: note: 'GRALLOC_USAGE_PRIVATE_MASK' declared here

GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000U,

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:208:25: error: use of undeclared identifier 'GRALLOC_USAGE_PRIVATE_NONECACHE'; did you mean 'GRALLOC_USAGE_PRIVATE_MASK'?

if (usage & GRALLOC_USAGE_PRIVATE_NONECACHE) {

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

GRALLOC_USAGE_PRIVATE_MASK

hardware/libhardware/include/hardware/gralloc.h:144:5: note: 'GRALLOC_USAGE_PRIVATE_MASK' declared here

GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000U,

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:234:86: warning: format specifies type 'unsigned int' but the argument has type 'private_handle_t *' [-Wformat]

ALOGD_IF(debug_level > 0, "%s hnd=%x paddr=%x yaddr=%x offset=%x", __func__, hnd, current_address, gReservedMemSize, buffer_offset);

~~ ^~~

system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'

((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'

#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'

#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)

^~~~~~~~~~~

system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'

__android_log_print(prio, tag, __VA_ARGS__)

^~~~~~~~~~~

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:238:17: error: use of undeclared identifier 'GRALLOC_USAGE_HW_ION'

if (usage & GRALLOC_USAGE_HW_ION) {

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:248:34: error: use of undeclared identifier 'GRALLOC_USAGE_HWC_HWOVERLAY'

if (usage < 0 || usage & GRALLOC_USAGE_HWC_HWOVERLAY )

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:259:21: error: use of undeclared identifier 'GRALLOC_USAGE_PRIVATE_NONECACHE'; did you mean 'GRALLOC_USAGE_PRIVATE_MASK'?

if (usage & GRALLOC_USAGE_PRIVATE_NONECACHE) {

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

GRALLOC_USAGE_PRIVATE_MASK

hardware/libhardware/include/hardware/gralloc.h:144:5: note: 'GRALLOC_USAGE_PRIVATE_MASK' declared here

GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000U,

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:275:21: error: use of undeclared identifier 'GRALLOC_USAGE_PRIVATE_NONECACHE'; did you mean 'GRALLOC_USAGE_PRIVATE_MASK'?

if (usage & GRALLOC_USAGE_PRIVATE_NONECACHE) {

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

GRALLOC_USAGE_PRIVATE_MASK

hardware/libhardware/include/hardware/gralloc.h:144:5: note: 'GRALLOC_USAGE_PRIVATE_MASK' declared here

GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000U,

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:507:29: error: use of undeclared identifier 'GRALLOC_USAGE_HW_ION'

if (!(l_usage & GRALLOC_USAGE_HW_ION)) {

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:508:28: error: use of undeclared identifier 'GRALLOC_USAGE_HW_ION'

l_usage |= GRALLOC_USAGE_HW_ION; // Exynos HWC wants ION-friendly memory allocation

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:512:29: error: use of undeclared identifier 'GRALLOC_USAGE_PRIVATE_NONECACHE'; did you mean 'GRALLOC_USAGE_PRIVATE_MASK'?

if (!(l_usage & GRALLOC_USAGE_PRIVATE_NONECACHE)) {

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

GRALLOC_USAGE_PRIVATE_MASK

hardware/libhardware/include/hardware/gralloc.h:144:5: note: 'GRALLOC_USAGE_PRIVATE_MASK' declared here

GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000U,

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:513:28: error: use of undeclared identifier 'GRALLOC_USAGE_PRIVATE_NONECACHE'; did you mean 'GRALLOC_USAGE_PRIVATE_MASK'?

l_usage |= GRALLOC_USAGE_PRIVATE_NONECACHE; // Exynos HWC wants ION-friendly memory allocation

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

GRALLOC_USAGE_PRIVATE_MASK

hardware/libhardware/include/hardware/gralloc.h:144:5: note: 'GRALLOC_USAGE_PRIVATE_MASK' declared here

GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000U,

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:525:24: error: use of undeclared identifier 'GRALLOC_USAGE_HW_ION'

l_usage |= GRALLOC_USAGE_HW_ION;

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:553:27: error: use of undeclared identifier 'GRALLOC_USAGE_HW_ION'

if (l_usage & GRALLOC_USAGE_HW_ION)

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:570:27: error: use of undeclared identifier 'GRALLOC_USAGE_HW_ION'

if (l_usage & GRALLOC_USAGE_HW_ION)

^

hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:664:62: warning: unused parameter 'name' [-Wunused-parameter]

int alloc_device_open(hw_module_t const* module, const char* name, hw_device_t** device)

^

5 warnings and 16 errors generated.

[ 0% 23/63617] build /home/shaun/Desktop/android/out/target/product/n7100/obj/STATIC_LIBRARIES/liblights_helper_intermediates/lights_helper.o

target thumb C: liblights_helper <= hardware/samsung/liblights/lights_helper.c

[ 0% 24/63617] build /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/lights.smdk4x12_intermediates/lights.o

target thumb C: lights.smdk4x12 <= hardware/samsung/liblights/lights.c

[ 0% 25/63617] build setup-jack-server

Ensuring Jack server is installed and started

Jack server already installed in "/home/shaun/.jack-server"

Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Xmx8g -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/shaun/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher

[ 0% 26/63617] build /home/shaun/Desktop/android/out/target/product/n7100/obj/KERNEL_OBJ/.config

Building Kernel Config

make: Entering directory '/home/shaun/Desktop/android/kernel/samsung/smdk4412'

GEN /home/shaun/Desktop/android/out/target/product/n7100/obj/KERNEL_OBJ/Makefile

arch/arm/mach-exynos/Kconfig:875:warning: choice value used outside its choice group

arch/arm/mach-exynos/Kconfig:877:warning: defaults for choice values not supported

warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_U1 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects LINK_DEVICE_HSIC which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)

warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects UMTS_MODEM_XMM6262 which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)

warning: (ARM) selects SECCOMP_FILTER which has unmet direct dependencies (HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET)

warning: (ARM) selects SECCOMP_FILTER which has unmet direct dependencies (HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET)

warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_U1 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects LINK_DEVICE_HSIC which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)

warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects UMTS_MODEM_XMM6262 which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)

#