All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] acpi: add missing prototype for ‘arch_post_acpi_subsys_init’
@ 2018-05-05 20:36 Mathieu Malaterre
  2018-05-17 10:15 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Malaterre @ 2018-05-05 20:36 UTC (permalink / raw)
  To: rjw; +Cc: Mathieu Malaterre, Len Brown, linux-acpi, linux-kernel

In commit e7ff3a47630d ("x86/amd: Check for the C1E bug post ACPI subsystem
init") a new function ‘arch_post_acpi_subsys_init’ was introduced. This
weak function can potentially be overridden on a per arch basis, introduce
the prototype for clarity.

Silence the following gcc warning (W=1):

  init/main.c:484:20: warning: no previous prototype for ‘arch_post_acpi_subsys_init’ [-Wmissing-prototypes]

Signed-off-by: Mathieu Malaterre <malat@debian.org>
---
 include/linux/acpi.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 15bfb15c2fa5..cb4d7b6b085c 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -578,6 +578,7 @@ int acpi_match_platform_list(const struct acpi_platform_list *plat);
 
 extern void acpi_early_init(void);
 extern void acpi_subsystem_init(void);
+extern void arch_post_acpi_subsys_init(void);
 
 extern int acpi_nvs_register(__u64 start, __u64 size);
 
-- 
2.11.0

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

* Re: [PATCH] acpi: add missing prototype for ‘arch_post_acpi_subsys_init’
  2018-05-05 20:36 [PATCH] acpi: add missing prototype for ‘arch_post_acpi_subsys_init’ Mathieu Malaterre
@ 2018-05-17 10:15 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2018-05-17 10:15 UTC (permalink / raw)
  To: Mathieu Malaterre; +Cc: Len Brown, linux-acpi, linux-kernel

On Saturday, May 5, 2018 10:36:03 PM CEST Mathieu Malaterre wrote:
> In commit e7ff3a47630d ("x86/amd: Check for the C1E bug post ACPI subsystem
> init") a new function ‘arch_post_acpi_subsys_init’ was introduced. This
> weak function can potentially be overridden on a per arch basis, introduce
> the prototype for clarity.
> 
> Silence the following gcc warning (W=1):
> 
>   init/main.c:484:20: warning: no previous prototype for ‘arch_post_acpi_subsys_init’ [-Wmissing-prototypes]
> 
> Signed-off-by: Mathieu Malaterre <malat@debian.org>
> ---
>  include/linux/acpi.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/linux/acpi.h b/include/linux/acpi.h
> index 15bfb15c2fa5..cb4d7b6b085c 100644
> --- a/include/linux/acpi.h
> +++ b/include/linux/acpi.h
> @@ -578,6 +578,7 @@ int acpi_match_platform_list(const struct acpi_platform_list *plat);
>  
>  extern void acpi_early_init(void);
>  extern void acpi_subsystem_init(void);
> +extern void arch_post_acpi_subsys_init(void);
>  
>  extern int acpi_nvs_register(__u64 start, __u64 size);
>  
> 

Applied, thanks!

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

end of thread, other threads:[~2018-05-17 10:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-05 20:36 [PATCH] acpi: add missing prototype for ‘arch_post_acpi_subsys_init’ Mathieu Malaterre
2018-05-17 10:15 ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.