Re: [PATCH] x86/paravirt: hide unused patch_default label

2016-12-16 Thread Arnd Bergmann
On Friday, December 16, 2016 10:51:50 AM CET Peter Zijlstra wrote: > -patch_default: > +patch_default: __maybe_unused > ret = paravirt_patch_default(type, clobbers, ibuf, addr, len); > break; > Ah, nice, I didn't know you could do that. Yes, please do this instead.

Re: [PATCH] x86/paravirt: hide unused patch_default label

2016-12-16 Thread Peter Zijlstra
On Fri, Dec 16, 2016 at 10:16:35AM +0100, Arnd Bergmann wrote: > A bugfix introduced a harmless warning: > > arch/x86/kernel/paravirt_patch_32.c: In function 'native_patch': > arch/x86/kernel/paravirt_patch_32.c:71:1: error: label 'patch_default' > defined but not used [-Werror=unused-label] > >

[PATCH] x86/paravirt: hide unused patch_default label

2016-12-16 Thread Arnd Bergmann
A bugfix introduced a harmless warning: arch/x86/kernel/paravirt_patch_32.c: In function 'native_patch': arch/x86/kernel/paravirt_patch_32.c:71:1: error: label 'patch_default' defined but not used [-Werror=unused-label] This puts it in the same #ifdef as its caller. Fixes: 45dbea5f55c0 ("x86/pa