[Beignet] [PATCH v2 1/8] [OCL20] runtime: fix gcc build error.

Luo, Xionghu xionghu.luo at intel.com
Tue Mar 1 03:33:17 UTC 2016


This patchset are resend with some modifications to disable atomic int64, please ignore the previous version. Thanks.


Luo Xionghu
Best Regards


-----Original Message-----
From: Luo, Xionghu 
Sent: Tuesday, March 1, 2016 7:35 PM
To: beignet at lists.freedesktop.org
Cc: Luo, Xionghu <xionghu.luo at intel.com>
Subject: [PATCH v2 1/8] [OCL20] runtime: fix gcc build error.

From: Luo Xionghu <xionghu.luo at intel.com>

this link fail appears on gcc 5.2.1.

Signed-off-by: Luo Xionghu <xionghu.luo at intel.com>
---
 src/cl_api.c   | 2 +-
 src/cl_event.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cl_api.c b/src/cl_api.c index c5cb67a..98f871c 100644
--- a/src/cl_api.c
+++ b/src/cl_api.c
@@ -64,7 +64,7 @@ typedef intptr_t cl_device_partition_property;
 	  return RET; \
 	} while(0)
 
-inline cl_int
+static inline cl_int
 handle_events(cl_command_queue queue, cl_int num, const cl_event *wait_list,
               cl_event* event, enqueue_data* data, cl_command_type type)  { diff --git a/src/cl_event.c b/src/cl_event.c index bd4d700..041c178 100644
--- a/src/cl_event.c
+++ b/src/cl_event.c
@@ -55,7 +55,7 @@ void cl_event_insert_last_events(cl_command_queue queue,cl_event event)
   else set_last_event(queue,event);
 }
 
-inline cl_bool
+static inline cl_bool
 cl_event_is_gpu_command_type(cl_command_type type)  {
   switch(type) {
--
2.1.4



More information about the Beignet mailing list