From 634e9a47920c3409cd20f1d22b7585847c5f08c0 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 5 Sep 2023 21:39:23 +0200 Subject: [PATCH] btrfs-progs: tests: fix build -Wmissing-prototypes warnings Signed-off-by: David Sterba --- tests/ioctl-test.c | 2 +- tests/string-table-test.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ioctl-test.c b/tests/ioctl-test.c index 8452684a..dd6284f9 100644 --- a/tests/ioctl-test.c +++ b/tests/ioctl-test.c @@ -192,7 +192,7 @@ static struct btrfs_ioctl_dev_replace_args used_replace_args __attribute__((used static struct btrfs_ioctl_same_args used_same_args __attribute__((used)); static struct btrfs_ioctl_feature_flags used_feature_flags __attribute__((used)); -const char* value_to_string(unsigned long num) +static const char* value_to_string(unsigned long num) { #define ONE(x) case x: return #x; switch (num) { diff --git a/tests/string-table-test.c b/tests/string-table-test.c index 6a21cdb4..fd448f8a 100644 --- a/tests/string-table-test.c +++ b/tests/string-table-test.c @@ -19,7 +19,7 @@ #include "common/utils.h" #include "common/string-table.h" -void test_simple_create_free() +static void test_simple_create_free() { struct string_table *tab; @@ -38,7 +38,7 @@ void test_simple_create_free() table_free(tab); } -void test_simple_header() +static void test_simple_header() { struct string_table *tab; int i; @@ -68,7 +68,7 @@ void test_simple_header() table_free(tab); } -void test_simple_paginate() +static void test_simple_paginate() { struct string_table *tab; unsigned int page_size = 4;