diff mbox

drm/amdgpu: Make amdgpu_atif_handler static

Message ID 20170730131102.2dcf2731@endymion (mailing list archive)
State New, archived
Headers show

Commit Message

Jean Delvare July 30, 2017, 11:11 a.m. UTC
There are no external users of function amdgpu_atif_handler so it can
be static.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alex Deucher July 31, 2017, 8:21 p.m. UTC | #1
On Sun, Jul 30, 2017 at 7:11 AM, Jean Delvare <jdelvare@suse.de> wrote:
> There are no external users of function amdgpu_atif_handler so it can
> be static.
>
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
> Cc: Alex Deucher <alexander.deucher@amd.com>
> Cc: "Christian König" <christian.koenig@amd.com>

Applied.  thanks!

Alex

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-4.12.orig/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c    2017-07-30 13:06:19.949418618 +0200
> +++ linux-4.12/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c 2017-07-30 13:07:14.949120591 +0200
> @@ -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;
>
>
> --
> Jean Delvare
> SUSE L3 Support
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

--- linux-4.12.orig/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c	2017-07-30 13:06:19.949418618 +0200
+++ linux-4.12/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c	2017-07-30 13:07:14.949120591 +0200
@@ -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;