[PATCH 2/3] tracing: remove exported but unused trace_array_destroy()
From: Jakub Kicinski
Date: Wed Aug 28 2019 - 01:26:22 EST
trace_array_destroy() is an exported symbol, but not only
are there no in-tree callers, it doesn't actually have
a declaration in any header.
This fixes the "no previous prototype for" warning.
Signed-off-by: Jakub Kicinski <jakub.kicinski@xxxxxxxxxxxxx>
---
kernel/trace/trace.c | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 947ba433865f..4cd9855dcd88 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -8438,25 +8438,6 @@ static int __remove_instance(struct trace_array *tr)
return 0;
}
-int trace_array_destroy(struct trace_array *tr)
-{
- int ret;
-
- if (!tr)
- return -EINVAL;
-
- mutex_lock(&event_mutex);
- mutex_lock(&trace_types_lock);
-
- ret = __remove_instance(tr);
-
- mutex_unlock(&trace_types_lock);
- mutex_unlock(&event_mutex);
-
- return ret;
-}
-EXPORT_SYMBOL_GPL(trace_array_destroy);
-
static int instance_rmdir(const char *name)
{
struct trace_array *tr;
--
2.21.0