From patchwork Tue Mar 1 15:57:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Galvan X-Patchwork-Id: 8466501 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E8B1C9F8A8 for ; Tue, 1 Mar 2016 16:03:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 50AD6200F0 for ; Tue, 1 Mar 2016 16:03:12 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AA68D20120 for ; Tue, 1 Mar 2016 16:03:11 +0000 (UTC) Received: from localhost ([::1]:50587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aamlT-0007Y6-4O for patchwork-qemu-devel@patchwork.kernel.org; Tue, 01 Mar 2016 11:03:11 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aamgT-0006qm-CW for qemu-devel@nongnu.org; Tue, 01 Mar 2016 10:58:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aamgP-0006Il-C2 for qemu-devel@nongnu.org; Tue, 01 Mar 2016 10:58:01 -0500 Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:35862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aamgP-0006Ih-83 for qemu-devel@nongnu.org; Tue, 01 Mar 2016 10:57:57 -0500 Received: by mail-qg0-x234.google.com with SMTP id u110so15939316qge.3 for ; Tue, 01 Mar 2016 07:57:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tallertechnologies.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=P0ogeZwkS/F8JgXTVBcJV1UHcmHXDWJ5+Myxfu5MJWY=; b=YF3lDPlpARtBIz+TaJBEg0aOVnu+7QCogcNx4bvSPVfcb2i3hHZ7X3l8NAEM/H/rUK 5WVwZJcFm0DDMHPQ7oUFG/JmzqPhux3N/4cVfiOalt961JIgFd2/nLbt7YdhH1FGUVjY YSmvYmTczJCQZBI+9auNSSxSZtvvKZC0dcMKM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=P0ogeZwkS/F8JgXTVBcJV1UHcmHXDWJ5+Myxfu5MJWY=; b=doHXO8GCr4XxtQmPxlP+RwdUREitaYyXuFU3od79X/+ZDyAzIrp/u/IGwxh/cHJ8KE kK3FYTRJaX48wHso8kkugvMVmVZPrnzBhjv1TXc3CdIaPiWY1YYVxTP1kmDt6wt5LRVZ ZNH/NcuJjg78vr7ownEg+OmAOzhWceoXVusrqZW4nD3MVgyUxUOTSSBeW9YpP/tdFva1 I5JYtOlSBINP4tDkqMnqJuf4kARmbHrueNoXQrnmnDNHQvlNloPFtiskf6un+6TVlylZ InCtaM4x8GsC2yX7arGe4Hu7fgE+mWrdyZeLiv915ObYAY7mPVZztCfbo7is2sa+QyZr eJgg== X-Gm-Message-State: AD7BkJJuobuZV/okXzM9m9I1eVPuk/BP1syqfiBV5XZPw/woYBh2pjxwFvjXcMnhbkDLv4g6 X-Received: by 10.140.41.82 with SMTP id y76mr18187187qgy.3.1456847876812; Tue, 01 Mar 2016 07:57:56 -0800 (PST) Received: from martin-galvan.dominio.tallertechnologies.com ([200.69.202.173]) by smtp.gmail.com with ESMTPSA id 123sm13109030qhu.22.2016.03.01.07.57.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Mar 2016 07:57:56 -0800 (PST) From: Martin Galvan To: qemu-devel@nongnu.org, peter.maydell@linaro.org, pbonzini@redhat.com, edgar.iglesias@gmail.com, rth@twiddle.net, aurelien@aurel32.net, kraxel@redhat.com, blauwirbel@gmail.com, lcapitulino@redhat.com, armbru@redhat.com, afaerber@suse.de, dmitry@daynix.com Date: Tue, 1 Mar 2016 12:57:31 -0300 Message-Id: <1456847859-4771-5-git-send-email-martin.galvan@tallertechnologies.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1456847859-4771-1-git-send-email-martin.galvan@tallertechnologies.com> References: <1456847650-4476-1-git-send-email-martin.galvan@tallertechnologies.com> <1456847859-4771-1-git-send-email-martin.galvan@tallertechnologies.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c04::234 Subject: [Qemu-devel] [PATCH v2 05/13] Use unsigned types for the 'len' argument of all memory read/write functions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP --- hw/arm/boot.c | 2 +- hw/arm/musicpal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- 2.7.1 diff --git a/hw/arm/boot.c b/hw/arm/boot.c index 0a56d34c..4dd18f6 100644 --- a/hw/arm/boot.c +++ b/hw/arm/boot.c @@ -290,7 +290,7 @@ static void set_kernel_args(const struct arm_boot_info *info) } if (info->atag_board) { /* ATAG_BOARD */ - int atag_board_len; + size_t atag_board_len; uint8_t atag_board_buf[0x1000]; atag_board_len = (info->atag_board(info, atag_board_buf) + 3) & ~3; diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c index 54548f3..5208e13 100644 --- a/hw/arm/musicpal.c +++ b/hw/arm/musicpal.c @@ -248,7 +248,7 @@ static void eth_send(mv88w8618_eth_state *s, int queue_index) mv88w8618_tx_desc desc; uint32_t next_desc; uint8_t buf[2048]; - int len; + size_t len; do { eth_tx_desc_get(desc_addr, &desc);