Commit b3e7dcea authored by Colin Ian King's avatar Colin Ian King Committed by Tim Gardner

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

BugLink: http://bugs.launchpad.net/bugs/1546572

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>
(cherry picked from commit f785d987)
Signed-off-by: default avatarAlberto Milone <alberto.milone@canonical.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent bc04de87
...@@ -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