Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754476AbZFTHtS (ORCPT ); Sat, 20 Jun 2009 03:49:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751664AbZFTHtC (ORCPT ); Sat, 20 Jun 2009 03:49:02 -0400 Received: from hera.kernel.org ([140.211.167.34]:49706 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751271AbZFTHtB (ORCPT ); Sat, 20 Jun 2009 03:49:01 -0400 Subject: [KVM] x86: kvm/x86_emulate.c toggle_interruptibility() should be static From: Jaswinder Singh Rajput To: Avi Kivity Cc: Ingo Molnar , x86 maintainers , KVM list , LKML In-Reply-To: <1245324205.7189.6.camel@localhost.localdomain> References: <1245324205.7189.6.camel@localhost.localdomain> Content-Type: text/plain Date: Sat, 20 Jun 2009 13:18:16 +0530 Message-Id: <1245484096.3102.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1140 Lines: 35 toggle_interruptibility() is used only by same file, it should be static. Fixed following sparse warning : arch/x86/kvm/x86_emulate.c:1364:6: warning: symbol 'toggle_interruptibility' was not declared. Should it be static? Signed-off-by: Jaswinder Singh Rajput --- arch/x86/kvm/x86_emulate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c index c1b6c23..616de46 100644 --- a/arch/x86/kvm/x86_emulate.c +++ b/arch/x86/kvm/x86_emulate.c @@ -1361,7 +1361,7 @@ static inline int writeback(struct x86_emulate_ctxt *ctxt, return 0; } -void toggle_interruptibility(struct x86_emulate_ctxt *ctxt, u32 mask) +static void toggle_interruptibility(struct x86_emulate_ctxt *ctxt, u32 mask) { u32 int_shadow = kvm_x86_ops->get_interrupt_shadow(ctxt->vcpu, mask); /* -- 1.6.0.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/