Skip to contentSkip to conversation

ACPI: tables: Mark acpi_init_fpdt with static keyword

PATCH In review Zou Wei 2 participants 3 messages Jan 28, 2021 – Jan 30, 2021 ACPI

lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 ACPI: tables: Mark acpi_init_fpdt with static keyword

Fix the following sparse warning:

drivers/acpi/acpi_fpdt.c:230:6: warning: symbol 'acpi_init_fpdt' was not declared. Should it be static?

---
 drivers/acpi/acpi_fpdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/acpi_fpdt.c +1 -1
index b810811..968f9cc 100644
@@ -227,7 +227,7 @@ static int fpdt_process_subtable(u64 address, u32 subtable_type)
 	return 0;
 }
 
-void acpi_init_fpdt(void)
+static void acpi_init_fpdt(void)
 {
 	acpi_status status;
 	struct acpi_table_header *header;
Signature · 1 line
2.6.2
#1 lore raw

Hi, Wei,

Thanks for the patch.

Given that there are a couple of things need to be fixed in the orignal patch, I'd prefer to refresh the patch with all the fixes included

https://patchwork.kernel.org/project/linux-acpi/patch/[email protected]/

what do you think?

thanks,
rui

Quoted 24 lines · Zou Wei

Fix the following sparse warning:

drivers/acpi/acpi_fpdt.c:230:6: warning: symbol 'acpi_init_fpdt' was not declared. Should it be static?

---
 drivers/acpi/acpi_fpdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/acpi_fpdt.c +1 -1
index b810811..968f9cc 100644
@@ -227,7 +227,7 @@ static int fpdt_process_subtable(u64 address, u32
 subtable_type)
 	return 0;
 }
 
-void acpi_init_fpdt(void)
+static void acpi_init_fpdt(void)
 {
 	acpi_status status;

struct acpi_table_header *header;

#2 lore raw

Hi Rui,

You can fix it in your patch together.

-----邮件原件-----
发件人: Zhang Rui [mailto:[email protected]]
发送时间: 2021年1月29日 14:25
收件人: Zouwei (Samuel) <[email protected]>; [email protected]; [email protected] 抄送: [email protected]; [email protected]
主题: Re: [PATCH -next] ACPI: tables: Mark acpi_init_fpdt with static keyword

Hi, Wei,

Thanks for the patch.

Given that there are a couple of things need to be fixed in the orignal patch, I'd prefer to refresh the patch with all the fixes included

https://patchwork.kernel.org/project/linux-acpi/patch/[email protected]/

what do you think?

thanks,
rui

Quoted 24 lines · Zou Wei

Fix the following sparse warning:

drivers/acpi/acpi_fpdt.c:230:6: warning: symbol 'acpi_init_fpdt' was not declared. Should it be static?

---
 drivers/acpi/acpi_fpdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/acpi_fpdt.c index renamed from drivers/acpi/acpi_fpdt.c +0 -0

b810811..968f9cc 100644

drivers/acpi/acpi_fpdt.c +1 -1
@@ -227,7 +227,7 @@ static int fpdt_process_subtable(u64 address, u32
 subtable_type)
 	return 0;
 }
 
-void acpi_init_fpdt(void)
+static void acpi_init_fpdt(void)
 {
 	acpi_status status;

struct acpi_table_header *header;