SWDEV-256292 - Fix build failure when using lightning to build
clang complains there are multiple definitions of ret_val
Change-Id: I949af23e0658b28b339b378c9c0e4681d83d5f5a
[ROCm/clr commit: ee2e91912b]
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
extern cl_command_queue command_queue;
|
||||
|
||||
cl_int ret_val;
|
||||
static cl_int ret_val;
|
||||
|
||||
const struct clRetainCommandQueue_st clRetainCommandQueueData[NUM_ITEMS_clRetainCommandQueue] = {
|
||||
{NULL}
|
||||
|
||||
@@ -12,7 +12,7 @@ extern cl_mem buffer;
|
||||
extern cl_command_queue command_queue;
|
||||
extern cl_event event;
|
||||
extern cl_context_properties context_properties[3];
|
||||
cl_int ret_val;
|
||||
static cl_int ret_val;
|
||||
cl_mem ret_mem;
|
||||
|
||||
struct clCreateFromGLBuffer_st clCreateFromGLBufferData[NUM_ITEMS_clCreateFromGLBuffer] = {
|
||||
|
||||
@@ -10,7 +10,7 @@ extern cl_command_queue command_queue;
|
||||
extern cl_event event;
|
||||
extern cl_mem buffer;
|
||||
|
||||
int ret_val;
|
||||
static int ret_val;
|
||||
|
||||
const struct clGetSupportedImageFormats_st clGetSupportedImageFormatsData[NUM_ITEMS_clGetSupportedImageFormats] =
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ extern cl_event event;
|
||||
extern cl_context context;
|
||||
extern cl_command_queue command_queue;
|
||||
extern cl_device_id devices;
|
||||
int ret_val;
|
||||
static int ret_val;
|
||||
extern void CL_CALLBACK setevent_callback(cl_event _a, cl_int _b, void* _c);
|
||||
extern void CL_CALLBACK setprintf_callback(cl_context _a, cl_uint _b, char* _c, void* _d );
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ extern cl_platform_id platform;
|
||||
|
||||
extern cl_device_id devices;
|
||||
|
||||
int ret_val;
|
||||
static int ret_val;
|
||||
|
||||
struct clRetainContext_st clRetainContextData[NUM_ITEMS_clRetainContext] =
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ extern cl_program program;
|
||||
extern cl_platform_id platform;
|
||||
extern cl_device_id devices;
|
||||
|
||||
int ret_val;
|
||||
static int ret_val;
|
||||
|
||||
extern void CL_CALLBACK program_callback(cl_program _a, void* _b);
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <platform/icd_test_log.h>
|
||||
|
||||
extern cl_sampler sampler;
|
||||
int ret_val;
|
||||
static int ret_val;
|
||||
|
||||
const struct clRetainSampler_st clRetainSamplerData[NUM_ITEMS_clRetainSampler]=
|
||||
{
|
||||
|
||||
مرجع در شماره جدید
Block a user