[Beignet] [PATCH] fix gcc build error.

Yang, Rong R rong.r.yang at intel.com
Wed Dec 9 00:37:52 PST 2015


LGTM, pushed, thanks.

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> xionghu.luo at intel.com
> Sent: Tuesday, December 8, 2015 23:38
> To: beignet at lists.freedesktop.org
> Cc: Luo, Xionghu
> Subject: [Beignet] [PATCH] 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 a18bc99..e203258 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.5.0
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list