Skip to contentSkip to conversation

drm/amdgpu: Make amdgpu_atif_handler static

PATCH Applied Jean Delvare 2 participants 2 messages Jul 30, 2017 – Jul 31, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Make amdgpu_atif_handler static

There are no external users of function amdgpu_atif_handler so it can be static.

Cc Alex Deucher <[email protected]>
Cc "Christian König" <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +1 -1
@@ -289,7 +289,7 @@ static int amdgpu_atif_get_sbios_request
  * handles it.
  * Returns NOTIFY code
  */
-int amdgpu_atif_handler(struct amdgpu_device *adev,
+static int amdgpu_atif_handler(struct amdgpu_device *adev,
 			struct acpi_bus_event *event)
 {
 	struct amdgpu_atif *atif = &adev->atif;
Signature · 6 lines
Jean Delvare
SUSE L3 Support
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Applied
#1 lore raw
Quoted 6 lines · Jean Delvare

There are no external users of function amdgpu_atif_handler so it can be static.

Cc Alex Deucher <[email protected]>
Cc "Christian König" <[email protected]>

Applied. thanks!

Alex

Quoted 18 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c 2017-07-30 13:07:14.949120591 +0200 renamed from drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c 2017-07-30 13:06:19.949418618 +0200 +1 -2
@@ -289,7 +289,7 @@ static int amdgpu_atif_get_sbios_request
  * handles it.
  * Returns NOTIFY code
  */
-int amdgpu_atif_handler(struct amdgpu_device *adev,
+static int amdgpu_atif_handler(struct amdgpu_device *adev,
                        struct acpi_bus_event *event)
 {
        struct amdgpu_atif *atif = &adev->atif;
 
 
--
Quoted 6 lines

Jean Delvare
SUSE L3 Support
_______________________________________________
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