From patchwork Tue Jan 10 16:43:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 640885 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp2876623pvb; Tue, 10 Jan 2023 11:15:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXuPBl2K0v+c2i1dMbvJi3Gi3cqUn2dn1xT7NOx05p8CKSW/4/JuElpbuct9KNSfWD9La3hy X-Received: by 2002:ac8:690d:0:b0:3a8:ef7:f29c with SMTP id bt13-20020ac8690d000000b003a80ef7f29cmr98707578qtb.46.1673378125956; Tue, 10 Jan 2023 11:15:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673378125; cv=none; d=google.com; s=arc-20160816; b=cYWqeku6gfw/YaaFoKaDg1LpD6WGojNaZ8CAVxrJJHyCY+9EvDsJzvit+I1saX8phk qrIQLB3Zm+LrafCj5lSFpVRgiUy7T9wFCFmtyISHppJ9H1+5LUHXngX+13U/j0DCnvR+ 8QtO7dUQ32+q9yUfOXyzFMF5GvEmSpNB1/Nu5TyMU5t3V7q7lfQgJHIdgfQ+RSGViNTx UKkLqwHowkk52z8npbxCABeeCShHsB5eWY04z1ZVn+LGH4AKExPnUkJUpkcpF8xLaBOn U8xGGshvsRRvWpBt3BqpWq6EPql7dHOMrgY7XCSWxcZIAJZbCiEvWyK0X+8E12gwdaEO KfDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4tBrKZ6IbVMGWAXp461rKXQbFtVaeFBCzeTvYCck8So=; b=tD60xL8yKBKxQ4ORrsHUAjwgprtgGyXjh1gRjR0Q04dR6bL6omB2wIFsvJFSrMK564 Qjgwntxo74KKJYpveLii2LJ7HmKCRQpiJaDlZPDKmzDJwDps+OvmaJ2MPJhQNCFth4jH 6Yes4jUUb6QsrPitj4VH1o5kj1OaPGeDbOnqOp0GFmTtEMjmQy4kvFPYWhY+unTi4V+F dK4rDPyPBuTOg35STrRldmdh43xf4X1zTYY1rDYtBq7GyMjJha5cBjFW2F2gk03mg0p3 7j0T+x36w3nTQw66MbbsxaP7K+JQG4sv4tMiUzfRRpcvGHCQNA6eZhl0oUFOKWV9eTaK aDFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tMNGBOep; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i22-20020ac860d6000000b0035cee3c2131si6693800qtm.334.2023.01.10.11.15.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Jan 2023 11:15:25 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tMNGBOep; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFHku-0004XV-0g; Tue, 10 Jan 2023 11:45:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFHkQ-0004CS-BY for qemu-devel@nongnu.org; Tue, 10 Jan 2023 11:45:18 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFHkO-0006Ru-3q for qemu-devel@nongnu.org; Tue, 10 Jan 2023 11:45:13 -0500 Received: by mail-wr1-x42a.google.com with SMTP id bs20so12432008wrb.3 for ; Tue, 10 Jan 2023 08:45:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4tBrKZ6IbVMGWAXp461rKXQbFtVaeFBCzeTvYCck8So=; b=tMNGBOepFtBHU/QxxjREv7FmcoA5ZHiUMhJCWI8WAFSYySpQVEykFCnN/OTjYvCYdX BL2yPpIrwl4ZYY+tulrF/pyVWNVfeQUuO8ufYRvovG0r1gnghnz4tHPe0l1irh/x//s8 hlL0enOreGDKm7kXHryNerX7AzU6D/dqp51k370hAWb6Sq2/sUeY9D0qkny2x2mC3Jrp UyMufEIYEXqb+5TKp0qj2TzkTnKBsZEF75gt/4WSfx+YN30arCAoD/LhLBNCFd3ZJE3I a2wLU3DxGzfjZPNuJvMGYlvDyA8A7rvRjllEV7KbNnSnh730eXHxIiOcwizf85SBb7Kf qaog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4tBrKZ6IbVMGWAXp461rKXQbFtVaeFBCzeTvYCck8So=; b=6/bB0cSaCl16otFWCUXy4BR7++WhS/BIHzu88P30IrzK6tNG9UtJCiF6rGfBYMJV4r /Zsm41zE1TsVLnkiH7UWkxZdnMOAbAv+JZc4dCx6pVcrMuzf6xCopSgKt2vqB3yU7T/n PnmVW+wBwqiF8vLkNs3md9dZtuUA3CWjQyMDzE+W49n0KKjRwHoh+sQLjmmqDFzNM2WI gMlTvvGgGECtvykmVP37dhaqSbIrXVapc+VyxTJssOilozmkGsunbAzn7R1Tj7Buja2U AU9hqd8LxZUQr+mQ6fUI2fyHDeIByUlqYqDechV9QB0mGHer60u4upEpeYuHsw31GkcF pQDA== X-Gm-Message-State: AFqh2kpg4tFb6zOKGCJV98/4pyPX7VvW1McO3OgBdzp1YpJ9WoiKA3f3 eLoTyUJVeRsOAcQeVxCIxnUNAfeE8UaMhOX0 X-Received: by 2002:a5d:5b18:0:b0:28d:f043:490f with SMTP id bx24-20020a5d5b18000000b0028df043490fmr31167448wrb.71.1673369110657; Tue, 10 Jan 2023 08:45:10 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id l13-20020adfe58d000000b00296730b5c3esm11708750wrm.102.2023.01.10.08.45.09 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 10 Jan 2023 08:45:10 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: ale@rev.ng, Andrey Smirnov , Thomas Huth , Peter Maydell , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Niek Linnenbank , Jean-Christophe Dubois , Antonio Caggiano , Rob Herring , Antony Pavlov , Jan Kiszka , Beniamino Galvani Subject: [PATCH 11/18] hw/arm/digic: Remove unnecessary target_long use Date: Tue, 10 Jan 2023 17:43:59 +0100 Message-Id: <20230110164406.94366-12-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230110164406.94366-1-philmd@linaro.org> References: <20230110164406.94366-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=philmd@linaro.org; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org load_image_targphys(), declared in "hw/loader.h", returns a ssize_t. Remove the 'target_long' type which size changes per target. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/arm/digic_boards.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/digic_boards.c b/hw/arm/digic_boards.c index 4093af09cb..529d44e4e7 100644 --- a/hw/arm/digic_boards.c +++ b/hw/arm/digic_boards.c @@ -80,7 +80,7 @@ static void digic4_board_init(MachineState *machine, DigicBoard *board) static void digic_load_rom(DigicState *s, hwaddr addr, hwaddr max_size, const char *filename) { - target_long rom_size; + ssize_t rom_size; if (qtest_enabled()) { /* qtest runs no code so don't attempt a ROM load which