diff mbox

ACPI / sleep: Make acpi_sleep_syscore_init static

Message ID 20170731114013.75bc1b0a@endymion (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show

Commit Message

Jean Delvare July 31, 2017, 9:40 a.m. UTC
Function acpi_sleep_syscore_init has no external user so it should be
static.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Len Brown <lenb@kernel.org>
---
 drivers/acpi/sleep.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Rafael J. Wysocki Aug. 1, 2017, 11:15 p.m. UTC | #1
On Monday, July 31, 2017 11:40:13 AM Jean Delvare wrote:
> Function acpi_sleep_syscore_init has no external user so it should be
> static.
> 
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Cc: Len Brown <lenb@kernel.org>
> ---
>  drivers/acpi/sleep.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- linux-4.13-rc3.orig/drivers/acpi/sleep.c	2017-07-31 10:51:43.665159497 +0200
> +++ linux-4.13-rc3/drivers/acpi/sleep.c	2017-07-31 11:34:07.180873669 +0200
> @@ -870,7 +870,7 @@ static struct syscore_ops acpi_sleep_sys
>  	.resume = acpi_restore_bm_rld,
>  };
>  
> -void acpi_sleep_syscore_init(void)
> +static void acpi_sleep_syscore_init(void)
>  {
>  	register_syscore_ops(&acpi_sleep_syscore_ops);
>  }
> 
> 
> 

Applied, thanks!

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- linux-4.13-rc3.orig/drivers/acpi/sleep.c	2017-07-31 10:51:43.665159497 +0200
+++ linux-4.13-rc3/drivers/acpi/sleep.c	2017-07-31 11:34:07.180873669 +0200
@@ -870,7 +870,7 @@  static struct syscore_ops acpi_sleep_sys
 	.resume = acpi_restore_bm_rld,
 };
 
-void acpi_sleep_syscore_init(void)
+static void acpi_sleep_syscore_init(void)
 {
 	register_syscore_ops(&acpi_sleep_syscore_ops);
 }