linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] ACPI: debug: Make two functions static
@ 2020-05-07  7:07 Zheng Zengkai
  2020-05-09  9:35 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Zheng Zengkai @ 2020-05-07  7:07 UTC (permalink / raw)
  To: rjw, lenb; +Cc: linux-acpi, linux-kernel, zhengzengkai

Fix sparse warnings:

drivers/acpi/acpi_dbg.c:748:12: warning:
 symbol 'acpi_aml_init' was not declared. Should it be static?
drivers/acpi/acpi_dbg.c:774:13: warning:
 symbol 'acpi_aml_exit' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com>
---
 drivers/acpi/acpi_dbg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/acpi_dbg.c b/drivers/acpi/acpi_dbg.c
index 7a265c2171c0..6041974c7627 100644
--- a/drivers/acpi/acpi_dbg.c
+++ b/drivers/acpi/acpi_dbg.c
@@ -745,7 +745,7 @@ static const struct acpi_debugger_ops acpi_aml_debugger = {
 	.notify_command_complete = acpi_aml_notify_command_complete,
 };
 
-int __init acpi_aml_init(void)
+static int __init acpi_aml_init(void)
 {
 	int ret;
 
@@ -771,7 +771,7 @@ int __init acpi_aml_init(void)
 	return 0;
 }
 
-void __exit acpi_aml_exit(void)
+static void __exit acpi_aml_exit(void)
 {
 	if (acpi_aml_initialized) {
 		acpi_unregister_debugger(&acpi_aml_debugger);
-- 
2.20.1


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

* Re: [PATCH -next] ACPI: debug: Make two functions static
  2020-05-07  7:07 [PATCH -next] ACPI: debug: Make two functions static Zheng Zengkai
@ 2020-05-09  9:35 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2020-05-09  9:35 UTC (permalink / raw)
  To: Zheng Zengkai; +Cc: lenb, linux-acpi, linux-kernel

On Thursday, May 7, 2020 9:07:36 AM CEST Zheng Zengkai wrote:
> Fix sparse warnings:
> 
> drivers/acpi/acpi_dbg.c:748:12: warning:
>  symbol 'acpi_aml_init' was not declared. Should it be static?
> drivers/acpi/acpi_dbg.c:774:13: warning:
>  symbol 'acpi_aml_exit' was not declared. Should it be static?
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com>
> ---
>  drivers/acpi/acpi_dbg.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/acpi/acpi_dbg.c b/drivers/acpi/acpi_dbg.c
> index 7a265c2171c0..6041974c7627 100644
> --- a/drivers/acpi/acpi_dbg.c
> +++ b/drivers/acpi/acpi_dbg.c
> @@ -745,7 +745,7 @@ static const struct acpi_debugger_ops acpi_aml_debugger = {
>  	.notify_command_complete = acpi_aml_notify_command_complete,
>  };
>  
> -int __init acpi_aml_init(void)
> +static int __init acpi_aml_init(void)
>  {
>  	int ret;
>  
> @@ -771,7 +771,7 @@ int __init acpi_aml_init(void)
>  	return 0;
>  }
>  
> -void __exit acpi_aml_exit(void)
> +static void __exit acpi_aml_exit(void)
>  {
>  	if (acpi_aml_initialized) {
>  		acpi_unregister_debugger(&acpi_aml_debugger);
> 

Applied as 5.8 material, thanks!





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

end of thread, other threads:[~2020-05-09  9:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-07  7:07 [PATCH -next] ACPI: debug: Make two functions static Zheng Zengkai
2020-05-09  9:35 ` 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;
as well as URLs for NNTP newsgroup(s).