修改未定义函数

This commit is contained in:
lundi001 2024-03-06 05:39:35 +00:00
parent 45ce5b7169
commit 232dcc42ac
2 changed files with 4 additions and 3 deletions

5
debian/changelog vendored
View File

@ -1,8 +1,9 @@
ocl-icd (2.2.11-ok2) yangtze; urgency=medium
* In the ocl_icd_loader.c file, change the function inline void dump_vendor_icd on line 56 to void dump_vendor_icd
* In the ocl_icd_loader.c file, change the function inline void
dump_vendor_icd on line 56 to static inline void dump_vendor_icd
-- root <zhouningyi@smart-core.cn> Wed, 06 Mar 2024 02:45:39 +0000
-- root <zhouningyi@smart-core.cn> Wed, 06 Mar 2024 05:34:58 +0000
ocl-icd (2.2.11-ok1) yangtze; urgency=medium

View File

@ -58,7 +58,7 @@ typedef __typeof__(clGetPlatformInfo) *clGetPlatformInfo_fn;
// v, v->num_platforms, v->dl_handle, v->ext_fn_ptr);
// }
void dump_vendor_icd(const char* info, const struct vendor_icd *v) {
static inline void dump_vendor_icd(const char* info, const struct vendor_icd *v) {
debug(D_DUMP, "%s %p={ num=%i, handle=%p, f=%p}\n", info,
v, v->num_platforms, v->dl_handle, v->ext_fn_ptr);
}