From nobody Wed Feb 11 03:25:57 2026 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 1528680784478869.1610630752476; Sun, 10 Jun 2018 18:33:04 -0700 (PDT) Received: from localhost ([::1]:45780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSBhf-0001rN-NA for importer@patchew.org; Sun, 10 Jun 2018 21:33:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSBSF-0005uy-EU for qemu-devel@nongnu.org; Sun, 10 Jun 2018 21:17:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSBSD-0003RF-BU for qemu-devel@nongnu.org; Sun, 10 Jun 2018 21:17:07 -0400 Received: from mail-qt0-x22c.google.com ([2607:f8b0:400d:c0d::22c]:37918) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSBSD-0003Qa-7I; Sun, 10 Jun 2018 21:17:05 -0400 Received: by mail-qt0-x22c.google.com with SMTP id x34-v6so18852644qtk.5; Sun, 10 Jun 2018 18:17:05 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id o5-v6sm28237223qtm.60.2018.06.10.18.17.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 18:17:04 -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=DAm0KVW+bquvukwZTPf8szxRQqAt6KoNkZBAq9UiGRk=; b=d3p+sDws9qGdxwbjB5fLMNGOYol9I2FMMgIkt0eG4i6fXX/nJsRcaa0qEP6j9akHl4 13KRtOb507G1CZhVSvLXIv8f/nhP91D2ooHHiJ42wF7j/CCKDaqgyL+EKzc/1WUsIy+K P8ktgYFmGMzsu8LqrJaWHrYPEv+ZAmRxM4yd2B8FJ6bayPeXu5F4ITfrBL6mf2hsWhbR LfEhuLjPMK3sZFx4z+z4jvfOE5dbEWg8NYK4js5tfOUTH9q0u0E8zukeao02+pfmnfC4 KES9qYpfp+J1PXep7NW3bPgzpq7hbt22DvdkOg/lnOvs5ZneuS0Cslj4IhS1ZBeoUjea Sp/A== 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=DAm0KVW+bquvukwZTPf8szxRQqAt6KoNkZBAq9UiGRk=; b=kYecX8M6XKdrM2jvlXA7zQvupZduPScVJO+ZWJIzjNrYiz5/nPiyuO5YQWymKybO+q Ec3Awf2UD3NFqTRq21j6KCum319QVIRcLm+X+JVdZykXPalTO+lbNb3zAs1jvgo5J2ZT KCBi/IyWIDxIUJrdt/XHkmILQdyRremp72ovOwjpW0ET5ykVWN/1mUjPbaMJ/1tGJyqJ TuMYhdDRHmUKN1nHu8X3FCUdzqI8cboI9EgZvuSiWEuiGgRYhiZY0WMOOTxaqXrYzQPb afzEh+nLFzOOtodDBpbxDH6bjFYaQfPe48wYKvrmSfiBx7vl8k1J4CBPGTAweqJtX9M7 F/IA== X-Gm-Message-State: APt69E1jUqTPxaqDF2n4yWJQbLV9dYdG9WEKzRUpltYjLTuP5ad7LqIf 30qtEj1H1bHhMtk0GkDLW1Y= X-Google-Smtp-Source: ADUXVKLeMyHTScyDcX3iOLafM/EN953biwHAgPtOu78itM9NOjPBWGpRud8iBLC9C6XGTBta58Gcww== X-Received: by 2002:ac8:300e:: with SMTP id f14-v6mr13756939qte.89.1528679824776; Sun, 10 Jun 2018 18:17:04 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Thomas Huth , Stefan Weil Date: Sun, 10 Jun 2018 22:14:50 -0300 Message-Id: <20180611011501.10235-30-f4bug@amsat.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611011501.10235-1-f4bug@amsat.org> References: <20180611011501.10235-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: 2607:f8b0:400d:c0d::22c Subject: [Qemu-devel] [PATCH v4 29/40] hw/mips/r4k: Constify params_size 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: qemu-trivial@nongnu.org, Yongbok Kim , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-devel@nongnu.org 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/mips/mips_r4k.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/mips/mips_r4k.c b/hw/mips/mips_r4k.c index e5cf8ed1a3..fc38b4bf99 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); @@ -143,7 +143,7 @@ static int64_t load_kernel(void) } =20 rom_add_blob_fixed("params", params_buf, params_size, - (16 << 20) - 264); + (16 << 20) - params_size); =20 g_free(params_buf); return entry; --=20 2.17.1