From nobody Sat Oct 25 08:57:50 2025 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 (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1520285389587250.0389633407566; Mon, 5 Mar 2018 13:29:49 -0800 (PST) Received: from localhost ([::1]:51651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esxg4-0004mQ-LW for importer@patchew.org; Mon, 05 Mar 2018 16:29:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esxWO-0004Kf-KC for qemu-devel@nongnu.org; Mon, 05 Mar 2018 16:19:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esxWN-0001WQ-Me for qemu-devel@nongnu.org; Mon, 05 Mar 2018 16:19:48 -0500 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:44195) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1esxWN-0001W6-Fc; Mon, 05 Mar 2018 16:19:47 -0500 Received: by mail-wr0-x242.google.com with SMTP id v65so18776885wrc.11; Mon, 05 Mar 2018 13:19:47 -0800 (PST) Received: from x1.local (ABayonne-654-1-79-224.w86-222.abo.wanadoo.fr. [86.222.222.224]) by smtp.gmail.com with ESMTPSA id g96sm12904808wrd.73.2018.03.05.13.19.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Mar 2018 13:19:45 -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=HdLt7ZMDQncCvlSUM5ZnT6GsozyEqiEOXUsHbtfGfIJOe/7AZs70ZC4AUgMXtzAxDl f1TYSOPIjzOaN6X2vUo+dlvjnWGxMuBR6ejpH7OPPkbZYfMmd5YMpHxkUxqxH5+VhsUL VAenihuKjz5/oIoAx4AesR4Az9r+phRzWKoSDeqWEsstVGsS05mjmfu0TnVTOT7WfObm P18EqFeX2oBtIUHKknk/zt3jfOEMFSo807mYPVS4QgJDlDirutnRF3/JFwDEVtuulo7S xgpkN3VRZBhr0pKHnm/OpdSZPUlgleU4wU9s8GhdmWjerawZSsZ4QArWvlxhGI+LKLrh JGmg== 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=Z9fLyf610TDlw1RRsIxd67wgpQKoVUcRto7NtK1PyuAE6du80+CXcGon5p0otFsi1O 1FOjZj8x7mxxKMICsGgCcRDn+pPUzf4U25mGEf2WZ42I1k3Y6yUt/Ka+eZzrNlbn7PtJ lE5mR1iiYqjU+gdws88v68RD4e8RoBtKhfycLdW35boGJJA2TRhBqqaHQUSTE4MaFkxH 6S4TDgognZQD76cBegmqW1f8PO+niGAuYAv/sM4/PkMGOAqK371JvuiNUbWM/RXpduJR kkSPlhWH2cvKzmgaQ/kFd2P0jzaZz5SafOf1+nUAjyI1PgcuQpQWQqHVUQAHvL6zzWlf lcYg== X-Gm-Message-State: APf1xPDw0R4oVigXZO0MkoFVVWs3CzCjzPJY8VXHwcJMPqj828PqC1sw R2jZ8NBxgb52oqFwi2BM4HE= X-Google-Smtp-Source: AG47ELviF3oQlKhUHV3+TQ3vjuh21kEe+fE0KPUQyTLBl74YChUYOl7bBmEDMOp0/lB3JrfuDCLSSQ== X-Received: by 10.223.130.76 with SMTP id 70mr13476361wrb.95.1520284786487; Mon, 05 Mar 2018 13:19:46 -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 , Mark Cave-Ayland , Alexey Kardashevskiy , Thomas Huth Date: Mon, 5 Mar 2018 18:19:12 -0300 Message-Id: <20180305211928.466-7-f4bug@amsat.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180305211928.466-1-f4bug@amsat.org> References: <20180305211928.466-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:c0c::242 Subject: [Qemu-devel] [RFC PATCH v2 06/22] 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 , =?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 --- 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