drm/amdkfd: add missing void argument to function kgd2kfd_init
Subsystems (4)
PATCH 1/1 drm/amdkfd: add missing void argument to function kgd2kfd_init
From: Colin Ian King <[email protected]>
Function kgd2kfd_init is missing a void argument, add it to clean up the non-ANSI function declaration.
--- drivers/gpu/drm/amd/amdkfd/kfd_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_module.c +1 -1
@@ -82,7 +82,7 @@ static void kfd_exit(void)kfd_chardev_exit (); } -int kgd2kfd_init () +int kgd2kfd_init (void ) {return kfd_init (); }
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Colin King
From: Colin Ian King <[email protected]>
Function
kgd2kfd_initis missing a void argument, add it to clean up the non-ANSI function declaration.Signed-off-by Colin Ian King <[email protected]>
sparse reports 2 such warnings in amdgpu:
../drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_module.c:85:18: warning: non-ANSI function declaration of function 'kgd2kfd_init' ../drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c:168:60: warning: non-ANSI function declaration of function 'amdgpu_amdkfd_gfx_10_0_get_functions'
Thanks.
Quoted 18 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdkfd/kfd_module.c +1
-1@@ -82,7 +82,7 @@ static void kfd_exit(void)kfd_chardev_exit (); } -int kgd2kfd_init () +int kgd2kfd_init (void ) {return kfd_init (); }
Signature · 1 line
~Randy
Quoted 6 lines · Randy Dunlap
Quoted 5 lines · Colin King
From: Colin Ian King <[email protected]>
Function
kgd2kfd_initis missing a void argument, add it to clean up the non-ANSI function declaration.
Quoted 8 lines
Quoted 1 line
Signed-off-by Colin Ian King <[email protected]>Acked-by Randy Dunlap <[email protected]>sparse reports 2 such warnings in amdgpu:
../drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_module.c:85:18: warning: non-ANSI function declaration of function 'kgd2kfd_init'../drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c:168:60: warning: non-ANSI function declaration of function 'amdgpu_amdkfd_gfx_10_0_get_functions'
Looking at linux-next, the amdgpu_amdkfd_gfx_10_0_get_functions() was removed in commit:
commit e392c887df979112af94cfec08dd87f4dd55d085
Author: Yong Zhao <[email protected]> Date: Fri Sep 27 22:03:42 2019 -0400
drm/amdkfd: Use array to probe kfd2kgd_calls
..so I didn't fix that one up
Coln
Quoted 23 lines
Thanks.
Quoted 18 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdkfd/kfd_module.c +1
-1@@ -82,7 +82,7 @@ static void kfd_exit(void)kfd_chardev_exit (); } -int kgd2kfd_init () +int kgd2kfd_init (void ) {return kfd_init (); }
Quoted 19 lines · Colin Ian King
Quoted 6 lines · Randy Dunlap
Quoted 5 lines · Colin King
From: Colin Ian King <[email protected]>
Function
kgd2kfd_initis missing a void argument, add it to clean up the non-ANSI function declaration.Quoted 8 lines
Quoted 1 line
Signed-off-by Colin Ian King <[email protected]>Acked-by Randy Dunlap <[email protected]>sparse reports 2 such warnings in amdgpu:
../drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_module.c:85:18: warning: non-ANSI function declaration of function 'kgd2kfd_init'../drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c:168:60: warning: non-ANSI function declaration of function 'amdgpu_amdkfd_gfx_10_0_get_functions'Looking at linux-next, the
amdgpu_amdkfd_gfx_10_0_get_functions()was removed in commit:
Quoted 7 lines
commit
e392c887df979112af94cfec08dd87f4dd55d085Author: Yong Zhao <[email protected]> Date: Fri Sep 27 22:03:42 2019 -0400drm/amdkfd: Use array to probe
kfd2kgd_calls..so I didn't fix that one up
ah. Thanks.
Signature · 1 line
~Randy
Alex Deucher
AppliedQuoted 7 lines · Colin King
From: Colin Ian King <[email protected]>
Function
kgd2kfd_initis missing a void argument, add it to clean up the non-ANSI function declaration.Signed-off-by Colin Ian King <[email protected]>
Applied. thanks!
Alex
Quoted 20 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdkfd/kfd_module.c +1
-2@@ -82,7 +82,7 @@ static void kfd_exit(void)kfd_chardev_exit (); } -int kgd2kfd_init () +int kgd2kfd_init (void ) {return kfd_init (); } --2.20.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Kuehling, Felix
maintainerQuoted 8 lines · Alex Deucher
Quoted 6 lines · Colin King
From: Colin Ian King <[email protected]>
Function
kgd2kfd_initis missing a void argument, add it to clean up the non-ANSI function declaration.Signed-off-by Colin Ian King <[email protected]>Applied. thanks!
Thank you!
Quoted 23 lines
Alex
Quoted 20 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdkfd/kfd_module.c +1
-2@@ -82,7 +82,7 @@ static void kfd_exit(void)kfd_chardev_exit (); } -int kgd2kfd_init () +int kgd2kfd_init (void ) {return kfd_init (); } --2.20.1
Quoted 4 lines
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx