From nobody Fri Oct 24 20:16:09 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of _spf.google.com designates 209.85.220.194 as permitted sender) client-ip=209.85.220.194; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-qk0-f194.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of _spf.google.com designates 209.85.220.194 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-qk0-f194.google.com (mail-qk0-f194.google.com [209.85.220.194]) by mx.zohomail.com with SMTPS id 151866896818435.10017102351662; Wed, 14 Feb 2018 20:29:28 -0800 (PST) Received: by mail-qk0-f194.google.com with SMTP id h129so9489220qke.8 for ; Wed, 14 Feb 2018 20:29:27 -0800 (PST) Return-Path: Return-Path: Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id t33sm10680312qtc.14.2018.02.14.20.29.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2018 20:29:26 -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=ocW3RQ0XQqPT2TMsNw4J4nFD9E9TT226lkZ5ok2pzNM=; b=DUxL/UV/WEP6Lu8agRxfyMYH9dlzkZXpnJvQte8UQC75lOQ0/y2KBpHOmcQwjGKbHD BRjmmsara/2vA5Q6a75wlz23IzqmdUUSoYQ6930Gs7gKqVw8vyp2v73kYb+tISX9fvrq ZqbrbVOqbQMZXEs3PhXxKDPj/Lpv+pEsEM46o+WACiLp9bBKNtTfinEOf0NcT/OwD/Vo uygYhu3dR3bOW+MlXawVMZxViWkwUBDhd3tfyLsouTQc3kUZrO0uhlYzTZrteYyRzDaF 9EgFZ2kRu4wpEgIRfHcwgh3BgIBNxgRbE/2ZVE11jTCx+fUgSbYFvBfPf7nfs9sIHDGb Dy1Q== 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=ocW3RQ0XQqPT2TMsNw4J4nFD9E9TT226lkZ5ok2pzNM=; b=SFWt1qxtJmpAf1aMwZhXlAIPjCaENxk1jfsAQfA93RwKbdTnHXt44wIahMuRT/oSH0 dlgSqFcliK7WVZkVm7xj0EWoLqABzV4Sg1FK/XVscCy0AkJAqZJFQzCSdBYC0ffXo1du l5AOZ0UsIZvc94h5uCM1k7MdMSnxlm91Hb0iIION9IbgKl1suibLeaYvZOT4CcnXuq2w uqTK9J3BBNmR91VnmFRB66mQgaPZgQGg93B9a+D3IH/BN30fKON/qGO//GnSguOwLWc7 fytUcEwc0d7e4VPzXZD2FBqzYC6WJohsFgvwJYG1eLl+mq7eYesuBY+bgn4YcLTfwZwG 2o8w== X-Gm-Message-State: APf1xPA6LbqIBYM8Yh4SaJVyHHJou+B3ZRHsswllkTcHcBGCM98AjU9R s8JkhQRZ8cWgt3PYXH97pQM= X-Google-Smtp-Source: AH8x227zwHnRnk7Puf5V2jqQDBd5ybxsFYsqi0yoAwNzym/JKMmpzkytCKkz8t8bktcoryBFR2LZ/w== X-Received: by 10.55.102.134 with SMTP id a128mr2253511qkc.122.1518668967375; Wed, 14 Feb 2018 20:29:27 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno , Yongbok Kim Subject: [PATCH 05/30] hw/mips/r4k: constify params_size Date: Thu, 15 Feb 2018 01:28:35 -0300 Message-Id: <20180215042900.16078-6-f4bug@amsat.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215042900.16078-1-f4bug@amsat.org> References: <20180215042900.16078-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZohoMail: RDKM_0 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/mips/mips_r4k.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/mips/mips_r4k.c b/hw/mips/mips_r4k.c index 830ee7732c..5a74c44b9a 100644 --- a/hw/mips/mips_r4k.c +++ b/hw/mips/mips_r4k.c @@ -79,8 +79,9 @@ typedef struct ResetData { =20 static int64_t load_kernel(void) { + const size_t params_size =3D 264; int64_t entry, kernel_high; - long kernel_size, initrd_size, params_size; + long kernel_size, initrd_size; ram_addr_t initrd_offset; uint32_t *params_buf; int big_endian; @@ -128,7 +129,6 @@ static int64_t load_kernel(void) } =20 /* Store command line. */ - params_size =3D 264; params_buf =3D g_malloc(params_size); =20 params_buf[0] =3D tswap32(ram_size); @@ -144,7 +144,6 @@ static int64_t load_kernel(void) =20 rom_add_blob_fixed("params", params_buf, params_size, (16 << 20) - 264); - g_free(params_buf); return entry; } --=20 2.16.1