Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1580869 > unrolled thread

[PATCH] hv: hide unused label

Started byArnd Bergmann <arnd@arndb.de>
First post2017-02-14 22:20 +0100
Last post2017-02-17 18:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] hv: hide unused label Arnd Bergmann <arnd@arndb.de> - 2017-02-14 22:20 +0100
    Re: [PATCH] hv: hide unused label Stephen Hemminger <stephen@networkplumber.org> - 2017-02-17 18:10 +0100

#1580869 — [PATCH] hv: hide unused label

FromArnd Bergmann <arnd@arndb.de>
Date2017-02-14 22:20 +0100
Subject[PATCH] hv: hide unused label
Message-ID<taSFY-6Yz-13@gated-at.bofh.it>
This new 32-bit warning just showed up:

arch/x86/hyperv/hv_init.c: In function 'hyperv_init':
arch/x86/hyperv/hv_init.c:167:1: error: label 'register_msr_cs' defined but not used [-Werror=unused-label]

The easiest solution is to move the label up into the existing #ifdef that
has the goto.

Fixes: dee863b571b0 ("hv: export current Hyper-V clocksource")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/x86/hyperv/hv_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c
index db64baf0e500..8bef70e7f3cc 100644
--- a/arch/x86/hyperv/hv_init.c
+++ b/arch/x86/hyperv/hv_init.c
@@ -158,13 +158,13 @@ void hyperv_init(void)
 		clocksource_register_hz(&hyperv_cs_tsc, NSEC_PER_SEC/100);
 		return;
 	}
+register_msr_cs:
 #endif
 	/*
 	 * For 32 bit guests just use the MSR based mechanism for reading
 	 * the partition counter.
 	 */
 
-register_msr_cs:
 	hyperv_cs = &hyperv_cs_msr;
 	if (ms_hyperv.features & HV_X64_MSR_TIME_REF_COUNT_AVAILABLE)
 		clocksource_register_hz(&hyperv_cs_msr, NSEC_PER_SEC/100);
-- 
2.9.0

[toc] | [next] | [standalone]


#1583601

FromStephen Hemminger <stephen@networkplumber.org>
Date2017-02-17 18:10 +0100
Message-ID<tbUcG-76j-13@gated-at.bofh.it>
In reply to#1580869
On Tue, 14 Feb 2017 22:17:17 +0100
Arnd Bergmann <arnd@arndb.de> wrote:

> This new 32-bit warning just showed up:
> 
> arch/x86/hyperv/hv_init.c: In function 'hyperv_init':
> arch/x86/hyperv/hv_init.c:167:1: error: label 'register_msr_cs' defined but not used [-Werror=unused-label]
> 
> The easiest solution is to move the label up into the existing #ifdef that
> has the goto.
> 
> Fixes: dee863b571b0 ("hv: export current Hyper-V clocksource")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Acked-by: Stephen Hemminger <sthemmin@microsoft.com>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web