Skip to contentSkip to conversation

drm/amdkfd: add missing void argument to function kgd2kfd_init

PATCH Applied Colin King 4 participants 6 messages Oct 5, 2019 – Oct 7, 2019

Subsystems (4)
lore
Share & tools
lore

Colin King

author
#0 lore raw

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
index 986ff52d5750..f4b7f7e6c40e 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Colin King

From: Colin Ian King <[email protected]>

Function kgd2kfd_init is missing a void argument, add it to clean up the non-ANSI function declaration.

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
index 986ff52d5750..f4b7f7e6c40e 100644
@@ -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
#2 lore raw
Quoted 6 lines · Randy Dunlap
Quoted 5 lines · Colin King

From: Colin Ian King <[email protected]>

Function kgd2kfd_init is missing a void argument, add it to clean up the non-ANSI function declaration.

Quoted 8 lines
Quoted 1 line

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
index 986ff52d5750..f4b7f7e6c40e 100644
@@ -82,7 +82,7 @@ static void kfd_exit(void)
 	kfd_chardev_exit();
 }
 
-int kgd2kfd_init()
+int kgd2kfd_init(void)
 {
 	return kfd_init();
 }
#3 lore raw
Quoted 19 lines · Colin Ian King
Quoted 6 lines · Randy Dunlap
Quoted 5 lines · Colin King

From: Colin Ian King <[email protected]>

Function kgd2kfd_init is missing a void argument, add it to clean up the non-ANSI function declaration.

Quoted 8 lines
Quoted 1 line

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 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

ah. Thanks.

Signature · 1 line
~Randy
Applied
#4 lore raw
In reply to Colin King
Quoted 7 lines · Colin King

From: Colin Ian King <[email protected]>

Function kgd2kfd_init is missing a void argument, add it to clean up the non-ANSI function declaration.

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
index 986ff52d5750..f4b7f7e6c40e 100644
@@ -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

maintainer
#5 lore raw
Quoted 8 lines · Alex Deucher
Quoted 6 lines · Colin King

From: Colin Ian King <[email protected]>

Function kgd2kfd_init is missing a void argument, add it to clean up the non-ANSI function declaration.

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
index 986ff52d5750..f4b7f7e6c40e 100644
@@ -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