kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH 0/1] x86/hyperv_clock: use report_summary
@ 2021-06-03 10:33 Po-Hsu Lin
  2021-06-03 10:33 ` [kvm-unit-tests PATCH 1/1] " Po-Hsu Lin
  0 siblings, 1 reply; 2+ messages in thread
From: Po-Hsu Lin @ 2021-06-03 10:33 UTC (permalink / raw)
  To: kvm; +Cc: po-hsu.lin, cascardo, pbonzini

The nerr variable will always be zero in x86/hyperv_clock.c
Remove it and use use report_summary() like others instead.

Patch source:
https://kernel.ubuntu.com/git/ubuntu/kvm-unit-tests/commit/?h=disco&id=4b9cb37424b52ba94afa627675a1f780957218ca

Applied to kvm-unit-tests master tree with 3-way merge.

Thadeu Lima de Souza Cascardo (1):
  x86/hyperv_clock: use report_summary

 x86/hyperv_clock.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [kvm-unit-tests PATCH 1/1] x86/hyperv_clock: use report_summary
  2021-06-03 10:33 [kvm-unit-tests PATCH 0/1] x86/hyperv_clock: use report_summary Po-Hsu Lin
@ 2021-06-03 10:33 ` Po-Hsu Lin
  0 siblings, 0 replies; 2+ messages in thread
From: Po-Hsu Lin @ 2021-06-03 10:33 UTC (permalink / raw)
  To: kvm; +Cc: po-hsu.lin, cascardo, pbonzini

From: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>

Removed unused nerr variable and use report_summary when exiting.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
---
 x86/hyperv_clock.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/x86/hyperv_clock.c b/x86/hyperv_clock.c
index b4cfc9f..1e6f368 100644
--- a/x86/hyperv_clock.c
+++ b/x86/hyperv_clock.c
@@ -144,7 +144,6 @@ static void perf_test(int ncpus)
 
 int main(int ac, char **av)
 {
-	int nerr = 0;
 	int ncpus;
 	struct hv_reference_tsc_page shadow;
 	uint64_t tsc1, t1, tsc2, t2;
@@ -191,5 +190,5 @@ int main(int ac, char **av)
 	report(rdmsr(HV_X64_MSR_REFERENCE_TSC) == 0,
 	       "MSR value after disabling");
 
-	return nerr > 0 ? 1 : 0;
+	return report_summary();
 }
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-03 10:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03 10:33 [kvm-unit-tests PATCH 0/1] x86/hyperv_clock: use report_summary Po-Hsu Lin
2021-06-03 10:33 ` [kvm-unit-tests PATCH 1/1] " Po-Hsu Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).