Commit f785d987 authored by Colin Ian King's avatar Colin Ian King Committed by Oded Gabbay

drm/amdgpu: fix non-ANSI declaration of amdgpu_amdkfd_gfx_*_get_functions()

amdgpu_amdkfd_gfx_7_get_functions and amdgpu_amdkfd_gfx_8_0_get_functions
have no parameters, so use the normal void parameter convention to make
them  match their prototypes in the header file
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent 92e963f5
...@@ -154,7 +154,7 @@ static const struct kfd2kgd_calls kfd2kgd = { ...@@ -154,7 +154,7 @@ static const struct kfd2kgd_calls kfd2kgd = {
.get_fw_version = get_fw_version .get_fw_version = get_fw_version
}; };
struct kfd2kgd_calls *amdgpu_amdkfd_gfx_7_get_functions() struct kfd2kgd_calls *amdgpu_amdkfd_gfx_7_get_functions(void)
{ {
return (struct kfd2kgd_calls *)&kfd2kgd; return (struct kfd2kgd_calls *)&kfd2kgd;
} }
......
...@@ -115,7 +115,7 @@ static const struct kfd2kgd_calls kfd2kgd = { ...@@ -115,7 +115,7 @@ static const struct kfd2kgd_calls kfd2kgd = {
.get_fw_version = get_fw_version .get_fw_version = get_fw_version
}; };
struct kfd2kgd_calls *amdgpu_amdkfd_gfx_8_0_get_functions() struct kfd2kgd_calls *amdgpu_amdkfd_gfx_8_0_get_functions(void)
{ {
return (struct kfd2kgd_calls *)&kfd2kgd; return (struct kfd2kgd_calls *)&kfd2kgd;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment