public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI / sleep: Make acpi_sleep_syscore_init static
@ 2017-07-31  9:40 Jean Delvare
  2017-08-01 23:15 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2017-07-31  9:40 UTC (permalink / raw)
  To: linux-acpi; +Cc: Rafael J. Wysocki, Len Brown

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);
 }


-- 
Jean Delvare
SUSE L3 Support

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ACPI / sleep: Make acpi_sleep_syscore_init static
  2017-07-31  9:40 [PATCH] ACPI / sleep: Make acpi_sleep_syscore_init static Jean Delvare
@ 2017-08-01 23:15 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2017-08-01 23:15 UTC (permalink / raw)
  To: Jean Delvare; +Cc: linux-acpi, Len Brown

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!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-01 23:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-31  9:40 [PATCH] ACPI / sleep: Make acpi_sleep_syscore_init static Jean Delvare
2017-08-01 23:15 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox