From patchwork Thu Jun 18 11:23:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaswinder Singh Rajput X-Patchwork-Id: 31105 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5IBOHpu023343 for ; Thu, 18 Jun 2009 11:24:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758694AbZFRLYM (ORCPT ); Thu, 18 Jun 2009 07:24:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755837AbZFRLYL (ORCPT ); Thu, 18 Jun 2009 07:24:11 -0400 Received: from hera.kernel.org ([140.211.167.34]:41846 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758007AbZFRLYK (ORCPT ); Thu, 18 Jun 2009 07:24:10 -0400 Received: from [192.168.1.2] (triband-del-59.180.124.222.bol.net.in [59.180.124.222] (may be forged)) (authenticated bits=0) by hera.kernel.org (8.14.2/8.13.8) with ESMTP id n5IBNUhW003197 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 18 Jun 2009 11:23:34 GMT Subject: [PATCH -tip][KVM] x86: kvm/x86_emulate.c toggle_interruptibility() should be static From: Jaswinder Singh Rajput To: Avi Kivity , Ingo Molnar , x86 maintainers , KVM list , LKML Date: Thu, 18 Jun 2009 16:53:25 +0530 Message-Id: <1245324205.7189.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) X-Virus-Scanned: ClamAV 0.93.3/9480/Thu Jun 18 04:11:35 2009 on hera.kernel.org X-Virus-Status: Clean Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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); /*