From patchwork Mon May 23 14:39:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cyrill Gorcunov X-Patchwork-Id: 809042 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4NEdOO0007096 for ; Mon, 23 May 2011 14:39:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755334Ab1EWOjV (ORCPT ); Mon, 23 May 2011 10:39:21 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:59118 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755253Ab1EWOjV (ORCPT ); Mon, 23 May 2011 10:39:21 -0400 Received: by ewy4 with SMTP id 4so1837142ewy.19 for ; Mon, 23 May 2011 07:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=xWTTMzCjSZ/R9GZuGfbKc/Xm3DbuHhtpisekEwCAVC4=; b=ud82S+Qd0iEmTxPXtUS948HRWebZulFRxM5lzmy4pXbYPRuEnM2ycUS9vRVrybTz8C pOpdoHbw1Nlw4lOlO5IBHBQGB0aPPmrAOLDKFzGEM3B1OsKmdQv0jr8wJ+NXLySgdq4P ot3skJhzwsNzrrrEcziXDTz9TADpDX1DQ3B2k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=HcY3O4FC+aAX1lGsn9NTg2nE2Gnfj3qekcsI6CWtF8fLzPOi6FBw7yPCLGpL87uey5 3huZbwiIUIsFpUZYoYx8zcEBzACXVkUvIvoQTnKaqyKcvUj8PcSQ2tFAzQBzDE8Q+cQb ltBu0D0IxEp6aLPZ59XpEKHPPJSohwm9ZuH2k= Received: by 10.213.34.68 with SMTP id k4mr1131776ebd.35.1306161559998; Mon, 23 May 2011 07:39:19 -0700 (PDT) Received: from [10.10.0.150] (95-26-151-27.broadband.corbina.ru [95.26.151.27]) by mx.google.com with ESMTPS id y17sm4682404eeh.26.2011.05.23.07.39.18 (version=SSLv3 cipher=OTHER); Mon, 23 May 2011 07:39:19 -0700 (PDT) Message-ID: <4DDA7195.4030507@gmail.com> Date: Mon, 23 May 2011 18:39:17 +0400 From: Cyrill Gorcunov User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 MIME-Version: 1.0 To: Pekka Enberg CC: Sasha Levin , kvm-vger , Ingo Molnar , Prasad Joshi Subject: [PATCH] kvm tools: Drop unused vars from int10.c code Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 23 May 2011 14:39:24 +0000 (UTC) There is a couple of functions which defines 'ah' variable but never use it in real so that gcc 4.6.x series does complain on me as CC bios/bios-rom.bin bios/int10.c: In function ‘int10_putchar’: bios/int10.c:86:9: error: variable ‘ah’ set but not used [-Werror=unused-but-set-variable] bios/int10.c: In function ‘int10_vesa’: bios/int10.c:96:9: error: variable ‘ah’ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors so get rid of them. Signed-off-by: Cyrill Gorcunov CC: Sasha Levin --- tools/kvm/bios/int10.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6.git/tools/kvm/bios/int10.c =================================================================== --- linux-2.6.git.orig/tools/kvm/bios/int10.c +++ linux-2.6.git/tools/kvm/bios/int10.c @@ -83,22 +83,18 @@ static inline void outb(unsigned short p */ static inline void int10_putchar(struct int10_args *args) { - u8 al, ah; - - al = args->eax & 0xFF; - ah = (args->eax & 0xFF00) >> 8; + u8 al = args->eax & 0xFF; outb(0x3f8, al); } static void int10_vesa(struct int10_args *args) { - u8 al, ah; + u8 al; struct vesa_general_info *destination; struct vminfo *vi; al = args->eax; - ah = args->eax >> 8; switch (al) { case 0: