From nobody Mon Feb 9 19:07:56 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1520549312889137.2106422734015; Thu, 8 Mar 2018 14:48:32 -0800 (PST) Received: from localhost ([::1]:42262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eu4Ko-0004oX-HP for importer@patchew.org; Thu, 08 Mar 2018 17:48:26 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eu4Cn-0006ow-EC for qemu-devel@nongnu.org; Thu, 08 Mar 2018 17:40:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eu4Cm-0003vd-J3 for qemu-devel@nongnu.org; Thu, 08 Mar 2018 17:40:09 -0500 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:39266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eu4Cm-0003v0-CD; Thu, 08 Mar 2018 17:40:08 -0500 Received: by mail-wm0-x243.google.com with SMTP id i3so672385wmi.4; Thu, 08 Mar 2018 14:40:08 -0800 (PST) Received: from x1.local (ABayonne-654-1-76-150.w86-222.abo.wanadoo.fr. [86.222.219.150]) by smtp.gmail.com with ESMTPSA id x190sm19315070wme.27.2018.03.08.14.40.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 14:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W3d2bI+1KY2S/D2mZY27YY9JOlWJC+XrekaqDSGntIg=; b=PS48SeYhIgS0kILxHqW/i98JcRKBMeEVFwpH6Y6RLlSJk3qAmiWO6PdjJQ4kbM9l+i rwhqSKX+X+eM+GG/wE76YfiUmqeOhvgICao/zOmu4ODIZxsbkZp76kNl2HnZkTTQKa7G eTsyRcUdMlp91jtNGIN25ctzAAZ3TbqnbfP+NaQNrG+J015KrLEQvXptj8IADUqCbYyh 3Sq+zorV1nRxc2gBoik9jB+ywAB6RDqMW7TRoasEAJEJU6KYZ2RZwcFIoxTkie7FXzNh 8UxOFuaZUvmBGOZOFElhyYkowHPKFon0tcb6wZzkX1n4heIw/XYWt5ft3INYlsqhp1g0 Hzcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=W3d2bI+1KY2S/D2mZY27YY9JOlWJC+XrekaqDSGntIg=; b=C8ZPQuJ9ySLaeUHvRwY4EzyMDV57pZNx74DcX6WAhHZ7F4W9Hnv9kJky+SgJZ6WH8h 6BmKmaDGsNJlPFmWm+3VfCQR8D+svTA+EcKsAE/ZY89O7RPa6b6RUtw/rPhvS+1/xlJt JGN5R2CDC5/g+JdnkNanDVRBq503CxSnyYhClhTc038T+9UdA7ua/g5fKBwSkn1+M6pL P0og5NpJobN7BVciUW5vDSEDVELijq/+FyRTovM8sfn2WZP7Ef0Q5W2U/cI1sT/9DrLQ IEDYdr3zWtLk4m6R9mTIBUIRnhQNOGVOFfwgj3FopHH/+UEroLhl/6pvorgO9SS4YHlx T/UQ== X-Gm-Message-State: AElRT7EB/vCk4ogOppnPOLPCyKBN75KuQHAYg9xDTBIQ+jzxSkgl3Z18 UKP6ycWxYxUJGGL+cFdg5R4= X-Google-Smtp-Source: AG47ELu/eSBHHmKN/AQOcZiFr1JJYhMJC1VD+yiq/f42nnv+B0pj2/xKpy5dY8V7HAbUGfYtW5oFXA== X-Received: by 10.28.170.5 with SMTP id t5mr301783wme.116.1520548807409; Thu, 08 Mar 2018 14:40:07 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: "Michael S . Tsirkin" , Paolo Bonzini , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Marcel Apfelbaum , Aurelien Jarno , Alexey Kardashevskiy , Thomas Huth Date: Thu, 8 Mar 2018 23:39:28 +0100 Message-Id: <20180308223946.26784-8-f4bug@amsat.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180308223946.26784-1-f4bug@amsat.org> References: <20180308223946.26784-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH 07/25] hw/isa/pc87312: Use 'unsigned int' for the irq value X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eduardo Habkost , Mark Cave-Ayland , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, "open list:PReP" , Guan Xuetao , Yongbok Kim , Artyom Tarasenko , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Mark Cave-Ayland --- hw/isa/pc87312.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/isa/pc87312.c b/hw/isa/pc87312.c index 105c23e680..fda91fed21 100644 --- a/hw/isa/pc87312.c +++ b/hw/isa/pc87312.c @@ -76,9 +76,9 @@ static inline uint16_t get_parallel_iobase(PC87312State *= s) return parallel_base[s->regs[REG_FAR] & FAR_PARALLEL_ADDR]; } =20 -static const uint32_t parallel_irq[] =3D { 5, 7, 5, 0 }; +static const unsigned int parallel_irq[] =3D { 5, 7, 5, 0 }; =20 -static inline uint32_t get_parallel_irq(PC87312State *s) +static inline unsigned int get_parallel_irq(PC87312State *s) { int idx; idx =3D (s->regs[REG_FAR] & FAR_PARALLEL_ADDR); @@ -110,7 +110,7 @@ static inline uint16_t get_uart_iobase(PC87312State *s,= int i) } } =20 -static inline uint32_t get_uart_irq(PC87312State *s, int i) +static inline unsigned int get_uart_irq(PC87312State *s, int i) { int idx; idx =3D (s->regs[REG_FAR] >> (2 * i + 2)) & 0x3; --=20 2.16.2