From nobody Tue Dec 16 05:37:35 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; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1520983003383272.9447271552435; Tue, 13 Mar 2018 16:16:43 -0700 (PDT) Received: from localhost ([::1]:43437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evt9p-0003qD-8W for importer@patchew.org; Tue, 13 Mar 2018 19:16:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evsiD-0005uO-At for qemu-devel@nongnu.org; Tue, 13 Mar 2018 18:48:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evsiC-0003Zf-Bb for qemu-devel@nongnu.org; Tue, 13 Mar 2018 18:48:05 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:39407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evsiC-0003YV-3S for qemu-devel@nongnu.org; Tue, 13 Mar 2018 18:48:04 -0400 Received: by mail-wm0-x244.google.com with SMTP id u10so668593wmu.4 for ; Tue, 13 Mar 2018 15:48:03 -0700 (PDT) Received: from donizetti.lan (94-36-191-219.adsl-ull.clienti.tiscali.it. [94.36.191.219]) by smtp.gmail.com with ESMTPSA id x107sm1557951wrb.97.2018.03.13.15.48.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Mar 2018 15:48:02 -0700 (PDT) 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=dj7RvaH3EuGZ3K5WUvfULwP8FgbXyoulwV8gqD3TKyg=; b=ngBdndnLhl2/A9wgPvBLI87Flsi6mnGmzSFW12dl+Er+2vSvn7pcI43NqlxpvmpoPB eCtzSx6V3lRQwP5uwTyp5PmGw/yKY82D+nFmGy6r6fTGwRE6vx7yjXXQUld1hRHVfM4J F/aiZ8zk+FKKiapIOHf8SYcb2RwKvD6UfPJRhaKxOr3x1C5HYZTk7HuohKJApipqGnba PaqASG6QuaiBXLh+rl4zRSToqaJv5zZ8XDt3vxFwWdgq1AZyUIOMcMwG+9OTQ1sV1/6q 3RxdryuPEBC/KkrZC4NPhGuBEQ2BDvm0mM/0Mp5rcTmDZBkIR2XyK68gBljZH59P7Ufi OwKQ== 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=dj7RvaH3EuGZ3K5WUvfULwP8FgbXyoulwV8gqD3TKyg=; b=Qn9CtNJooyYMWEq6JEl8PCdit083ZVloWa5PbDGZrOtJJHfPIUMwXJbbVre/XXag0l oPXRSwt7ZhRQPQPVLlcI993x7u5392byesm8ibQWmkHTPqBNQawe7ZS8xEbDclwOX30z eh9ownQ7a1CHvCUR6OR2fWLDRks/m0NXK1thQVF2fvOhfxF5bVEQZyFssE1G3PtyDzIG d3hPc/lUqqkIWNpsQ/32MeLYtkzJBzhg8jZPOvsNfuTWNMnkJEqQpLgJB7+5rvMGhYP7 pH8eochkioY29Oj6M/ewExGvZC8f+Wr0T78vIJ7vd2sIwjbTUQtTNYd0cPN7+vyqEO4T k/ow== X-Gm-Message-State: AElRT7E2RQhKcFZkvoFwmH4imHraZKMxOkVoAx1ZbMTPuNZgr5peit2t P2I6I6O/zDGGdxAW508AGsKqyEbe X-Google-Smtp-Source: AG47ELsDjWyHCHAmQ0ne7w2YTY9Npt3gpHL6Y8lLSTmkId0FP2q8Od/arrs1lRxeedV85baCy8HQqQ== X-Received: by 10.28.51.67 with SMTP id z64mr1965733wmz.59.1520981282700; Tue, 13 Mar 2018 15:48:02 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 13 Mar 2018 23:46:43 +0100 Message-Id: <20180313224719.4954-34-pbonzini@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180313224719.4954-1-pbonzini@redhat.com> References: <20180313224719.4954-1-pbonzini@redhat.com> 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::244 Subject: [Qemu-devel] [PULL 33/69] 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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= 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 From: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20180308223946.26784-8-f4bug@amsat.org> Reviewed-by: Mark Cave-Ayland Signed-off-by: Paolo Bonzini --- 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.14.3