[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1417992042-20553-1-git-send-email-rickard_strandqvist@spectrumdigital.se>
Date: Sun, 7 Dec 2014 23:40:42 +0100
From: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
To: Shuah Khan <shuahkh@....samsung.com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>
Cc: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>,
Michael Ellerman <mpe@...erman.id.au>,
linux-api@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] tools: testing: selftests: powerpc: pmu: ebb: trace.c: Remove some unused functions
Removes some functions that are not used anywhere:
trace_log_outdent() trace_log_indent()
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
---
tools/testing/selftests/powerpc/pmu/ebb/trace.c | 26 -----------------------
tools/testing/selftests/powerpc/pmu/ebb/trace.h | 2 --
2 files changed, 28 deletions(-)
diff --git a/tools/testing/selftests/powerpc/pmu/ebb/trace.c b/tools/testing/selftests/powerpc/pmu/ebb/trace.c
index 251e66a..2b18b22 100644
--- a/tools/testing/selftests/powerpc/pmu/ebb/trace.c
+++ b/tools/testing/selftests/powerpc/pmu/ebb/trace.c
@@ -139,32 +139,6 @@ int trace_log_string(struct trace_buffer *tb, char *str)
return 0;
}
-int trace_log_indent(struct trace_buffer *tb)
-{
- struct trace_entry *e;
-
- e = trace_alloc_entry(tb, 0);
- if (!e)
- return -ENOSPC;
-
- e->type = TRACE_TYPE_INDENT;
-
- return 0;
-}
-
-int trace_log_outdent(struct trace_buffer *tb)
-{
- struct trace_entry *e;
-
- e = trace_alloc_entry(tb, 0);
- if (!e)
- return -ENOSPC;
-
- e->type = TRACE_TYPE_OUTDENT;
-
- return 0;
-}
-
static void trace_print_header(int seq, int prefix)
{
printf("%*s[%d]: ", prefix, "", seq);
diff --git a/tools/testing/selftests/powerpc/pmu/ebb/trace.h b/tools/testing/selftests/powerpc/pmu/ebb/trace.h
index 926458e..6c436d7 100644
--- a/tools/testing/selftests/powerpc/pmu/ebb/trace.h
+++ b/tools/testing/selftests/powerpc/pmu/ebb/trace.h
@@ -33,8 +33,6 @@ struct trace_buffer *trace_buffer_allocate(u64 size);
int trace_log_reg(struct trace_buffer *tb, u64 reg, u64 value);
int trace_log_counter(struct trace_buffer *tb, u64 value);
int trace_log_string(struct trace_buffer *tb, char *str);
-int trace_log_indent(struct trace_buffer *tb);
-int trace_log_outdent(struct trace_buffer *tb);
void trace_buffer_print(struct trace_buffer *tb);
void trace_print_location(struct trace_buffer *tb);
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists