From d9120ccba72cfe3173cf5987871e9667d4c4c547 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 19 Nov 2019 13:51:10 -0500 Subject: [PATCH] Make some bt_param_validation_map_value_entry_descr variables static These variables are not used outside their respective files. Change-Id: I281df2f935ebd4326a9a655cd8b84fbcb437cfc3 Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/2412 Tested-by: jenkins Reviewed-by: Philippe Proulx --- src/plugins/lttng-utils/debug-info/debug-info.c | 1 + src/plugins/text/dmesg/dmesg.c | 1 + src/plugins/text/pretty/pretty.c | 1 + src/plugins/utils/counter/counter.c | 1 + src/plugins/utils/dummy/dummy.c | 1 + src/plugins/utils/muxer/muxer.c | 1 + src/plugins/utils/trimmer/trimmer.c | 1 + 7 files changed, 7 insertions(+) diff --git a/src/plugins/lttng-utils/debug-info/debug-info.c b/src/plugins/lttng-utils/debug-info/debug-info.c index 374ec222..c98cf604 100644 --- a/src/plugins/lttng-utils/debug-info/debug-info.c +++ b/src/plugins/lttng-utils/debug-info/debug-info.c @@ -1704,6 +1704,7 @@ const bt_message *handle_message(struct debug_info_msg_iter *debug_it, return out_message; } +static struct bt_param_validation_map_value_entry_descr debug_info_params[] = { { "debug-info-field-name", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_STRING } }, { "debug-info-dir", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_STRING } }, diff --git a/src/plugins/text/dmesg/dmesg.c b/src/plugins/text/dmesg/dmesg.c index 0d755e73..da21f69e 100644 --- a/src/plugins/text/dmesg/dmesg.c +++ b/src/plugins/text/dmesg/dmesg.c @@ -201,6 +201,7 @@ end: return ret; } +static struct bt_param_validation_map_value_entry_descr dmesg_params[] = { { "no-extract-timestamp", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } }, { "path", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_STRING } }, diff --git a/src/plugins/text/pretty/pretty.c b/src/plugins/text/pretty/pretty.c index 6cc8607e..b05622bd 100644 --- a/src/plugins/text/pretty/pretty.c +++ b/src/plugins/text/pretty/pretty.c @@ -296,6 +296,7 @@ end: static const char *color_choices[] = { "never", "auto", "always", NULL }; static const char *show_hide_choices[] = { "show", "hide", NULL }; +static struct bt_param_validation_map_value_entry_descr pretty_params[] = { { "color", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { BT_VALUE_TYPE_STRING, .string = { .choices = color_choices, diff --git a/src/plugins/utils/counter/counter.c b/src/plugins/utils/counter/counter.c index cff0d577..9fe62a34 100644 --- a/src/plugins/utils/counter/counter.c +++ b/src/plugins/utils/counter/counter.c @@ -138,6 +138,7 @@ void counter_finalize(bt_self_component_sink *comp) g_free(counter); } +static struct bt_param_validation_map_value_entry_descr counter_params[] = { { "step", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_UNSIGNED_INTEGER } }, { "hide-zero", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } }, diff --git a/src/plugins/utils/dummy/dummy.c b/src/plugins/utils/dummy/dummy.c index 6f772561..224b0696 100644 --- a/src/plugins/utils/dummy/dummy.c +++ b/src/plugins/utils/dummy/dummy.c @@ -54,6 +54,7 @@ void dummy_finalize(bt_self_component_sink *comp) destroy_private_dummy_data(dummy); } +static struct bt_param_validation_map_value_entry_descr dummy_params[] = { BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_END }; diff --git a/src/plugins/utils/muxer/muxer.c b/src/plugins/utils/muxer/muxer.c index 638bc0c9..f4af51c8 100644 --- a/src/plugins/utils/muxer/muxer.c +++ b/src/plugins/utils/muxer/muxer.c @@ -255,6 +255,7 @@ void destroy_muxer_comp(struct muxer_comp *muxer_comp) g_free(muxer_comp); } +static struct bt_param_validation_map_value_entry_descr muxer_params[] = { BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_END }; diff --git a/src/plugins/utils/trimmer/trimmer.c b/src/plugins/utils/trimmer/trimmer.c index a3016212..75104b31 100644 --- a/src/plugins/utils/trimmer/trimmer.c +++ b/src/plugins/utils/trimmer/trimmer.c @@ -527,6 +527,7 @@ enum bt_param_validation_status validate_bound_type( return status; } +static struct bt_param_validation_map_value_entry_descr trimmer_params[] = { { "gmt", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } }, { "begin", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .validation_func = validate_bound_type } }, -- 2.34.1