aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Dänzer2017-11-30 11:28:01 -0600
committerMichel Dänzer2017-12-01 09:52:01 -0600
commit85c6b0b00ab894116880d2338776727ccff2d5c3 (patch)
treea4d8d3738b77fb3ab1edc1cf04294671cf97baff /amdgpu/amdgpu_internal.h
parentbc21168fa924d3fc4a000492e861f50a1a135b25 (diff)
downloadexternal-libgbm-85c6b0b00ab894116880d2338776727ccff2d5c3.tar.gz
external-libgbm-85c6b0b00ab894116880d2338776727ccff2d5c3.tar.xz
external-libgbm-85c6b0b00ab894116880d2338776727ccff2d5c3.zip
amdgpu: Clean up amdgpu_parse_asic_ids error handling
* Move error message printing into amdgpu_parse_asic_ids and make it return void * Print only "Invalid format" error message if parse_one_line returns -EINVAL * Use strerror instead of printing the (negative) error code in hex Acked-by: Slava Abramov <slava.abramov@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_internal.h')
-rw-r--r--amdgpu/amdgpu_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/amdgpu/amdgpu_internal.h b/amdgpu/amdgpu_internal.h
index e26e5190..1aff7f8e 100644
--- a/amdgpu/amdgpu_internal.h
+++ b/amdgpu/amdgpu_internal.h
@@ -148,7 +148,7 @@ drm_private void amdgpu_vamgr_init(struct amdgpu_bo_va_mgr *mgr, uint64_t start,
148 148
149drm_private void amdgpu_vamgr_deinit(struct amdgpu_bo_va_mgr *mgr); 149drm_private void amdgpu_vamgr_deinit(struct amdgpu_bo_va_mgr *mgr);
150 150
151drm_private int amdgpu_parse_asic_ids(struct amdgpu_asic_id **asic_ids); 151drm_private void amdgpu_parse_asic_ids(struct amdgpu_asic_id **asic_ids);
152 152
153drm_private int amdgpu_query_gpu_info_init(amdgpu_device_handle dev); 153drm_private int amdgpu_query_gpu_info_init(amdgpu_device_handle dev);
154 154