]> Git Repo - linux.git/commitdiff
x86/paravirt: Mark unused patch_default label
authorPeter Zijlstra <[email protected]>
Fri, 16 Dec 2016 09:51:50 +0000 (10:51 +0100)
committerIngo Molnar <[email protected]>
Thu, 22 Dec 2016 16:43:35 +0000 (17:43 +0100)
A bugfix commit:

  45dbea5f55c0 ("x86/paravirt: Fix native_patch()")

... 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]

Fix it by annotating the label as __maybe_unused.

Reported-by: Arnd Bergmann <[email protected]>
Reported-by: Piotr Gregor <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Fixes: 45dbea5f55c0 ("x86/paravirt: Fix native_patch()")
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/paravirt_patch_32.c
arch/x86/kernel/paravirt_patch_64.c

index d33ef165b1f8b87cb4282801c0f2653732bcaf80..553acbbb4d32d72d0807f037a513fe05cfd7629b 100644 (file)
@@ -68,7 +68,7 @@ unsigned native_patch(u8 type, u16 clobbers, void *ibuf,
 #endif
 
        default:
-patch_default:
+patch_default: __maybe_unused
                ret = paravirt_patch_default(type, clobbers, ibuf, addr, len);
                break;
 
index f4fcf26c9fcecefcd3b3c07db7cc85676e26aba6..11aaf1eaa0e4c9eb6373a3856fdc4af3ad143360 100644 (file)
@@ -80,7 +80,7 @@ unsigned native_patch(u8 type, u16 clobbers, void *ibuf,
 #endif
 
        default:
-patch_default:
+patch_default: __maybe_unused
                ret = paravirt_patch_default(type, clobbers, ibuf, addr, len);
                break;
 
This page took 0.062936 seconds and 4 git commands to generate.