[PATCH 01/10] acpi: acpitables: make two more functions static

Colin King colin.king at canonical.com
Thu Jun 12 18:03:40 UTC 2014


From: Colin Ian King <colin.king at canonical.com>

Nobody references these two functions outside the test,
so make them static:

acpi_table_check_field, acpi_table_check_field_test

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 src/acpi/acpitables/acpitables.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/acpi/acpitables/acpitables.c b/src/acpi/acpitables/acpitables.c
index 439df2a..1212864 100644
--- a/src/acpi/acpitables/acpitables.c
+++ b/src/acpi/acpitables/acpitables.c
@@ -515,7 +515,7 @@ static int acpi_table_check_test1(fwts_framework *fw)
 	return FWTS_OK;
 }
 
-bool acpi_table_check_field(const char *field, const size_t len)
+static bool acpi_table_check_field(const char *field, const size_t len)
 {
 	size_t i;
 
@@ -526,7 +526,7 @@ bool acpi_table_check_field(const char *field, const size_t len)
 	return true;
 }
 
-bool acpi_table_check_field_test(
+static bool acpi_table_check_field_test(
 	fwts_framework *fw,
 	const char *table_name,
 	const char *field_name,
-- 
2.0.0




More information about the fwts-devel mailing list