lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sun,  7 Dec 2014 21:50:59 +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: ebb.c:  Remove unused function

Remove the function event_bhrb_init() that is not used anywhere.

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/ebb.c |    5 -----
 tools/testing/selftests/powerpc/pmu/ebb/ebb.h |    1 -
 2 files changed, 6 deletions(-)

diff --git a/tools/testing/selftests/powerpc/pmu/ebb/ebb.c b/tools/testing/selftests/powerpc/pmu/ebb/ebb.c
index d7a72ce..75af212 100644
--- a/tools/testing/selftests/powerpc/pmu/ebb/ebb.c
+++ b/tools/testing/selftests/powerpc/pmu/ebb/ebb.c
@@ -324,11 +324,6 @@ void event_ebb_init(struct event *e)
 	e->attr.config |= (1ull << 63);
 }
 
-void event_bhrb_init(struct event *e, unsigned ifm)
-{
-	e->attr.config |= (1ull << 62) | ((u64)ifm << 60);
-}
-
 void event_leader_ebb_init(struct event *e)
 {
 	event_ebb_init(e);
diff --git a/tools/testing/selftests/powerpc/pmu/ebb/ebb.h b/tools/testing/selftests/powerpc/pmu/ebb/ebb.h
index e44eee5..a71596a 100644
--- a/tools/testing/selftests/powerpc/pmu/ebb/ebb.h
+++ b/tools/testing/selftests/powerpc/pmu/ebb/ebb.h
@@ -46,7 +46,6 @@ static inline void ebb_enable_pmc_counting(int pmc)
 bool ebb_check_count(int pmc, u64 sample_period, int fudge);
 void event_leader_ebb_init(struct event *e);
 void event_ebb_init(struct event *e);
-void event_bhrb_init(struct event *e, unsigned ifm);
 void setup_ebb_handler(void (*callee)(void));
 void standard_ebb_callee(void);
 int ebb_event_enable(struct event *e);
-- 
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