From nobody Mon Feb 9 11:51:16 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.zoho.com; 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 1487958147773735.3574448043393; Fri, 24 Feb 2017 09:42:27 -0800 (PST) Received: from localhost ([::1]:38895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chJst-0000Rr-3B for importer@patchew.org; Fri, 24 Feb 2017 12:42:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chJmQ-0003u5-Gj for qemu-devel@nongnu.org; Fri, 24 Feb 2017 12:35:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chJmP-00055K-Iw for qemu-devel@nongnu.org; Fri, 24 Feb 2017 12:35:42 -0500 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:48641) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1chJmP-0004Og-CH for qemu-devel@nongnu.org; Fri, 24 Feb 2017 12:35:41 -0500 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.84_2) (envelope-from ) id 1chJmF-0008Ll-TR; Fri, 24 Feb 2017 17:35:31 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Fri, 24 Feb 2017 17:35:24 +0000 Message-Id: <1487957728-8354-6-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1487957728-8354-1-git-send-email-peter.maydell@linaro.org> References: <1487957728-8354-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:8b0:1d0::2 Subject: [Qemu-devel] [PATCH risu 5/9] m68k: Drop unused ucontext_t* argument to reginfo_is_eq() 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: Laurent Vivier , Nikunj A Dadhania Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Drop the ucontext*t argument to reginfo_is_eq(); we don't use it. Signed-off-by: Peter Maydell --- risu_m68k.c | 4 ++-- risu_reginfo_m68k.c | 2 +- risu_reginfo_m68k.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/risu_m68k.c b/risu_m68k.c index 87776ab..e345b25 100644 --- a/risu_m68k.c +++ b/risu_m68k.c @@ -91,7 +91,7 @@ int recv_and_compare_register_info(int sock, void *uc) if (recv_data_pkt(sock, &apprentice_ri, sizeof(apprentice_ri))) { packet_mismatch =3D 1; resp =3D 2; - } else if (!reginfo_is_eq(&master_ri, &apprentice_ri, uc)) { + } else if (!reginfo_is_eq(&master_ri, &apprentice_ri)) { resp =3D 2; } else if (op =3D=3D OP_TESTEND) { @@ -137,7 +137,7 @@ int report_match_status(void) fprintf(stderr, "master reginfo:\n"); reginfo_dump(&master_ri, stderr); } - if (!reginfo_is_eq(&master_ri, &apprentice_ri, NULL)) { + if (!reginfo_is_eq(&master_ri, &apprentice_ri)) { fprintf(stderr, "mismatch on regs!\n"); resp =3D 1; } diff --git a/risu_reginfo_m68k.c b/risu_reginfo_m68k.c index 3988d71..45950b1 100644 --- a/risu_reginfo_m68k.c +++ b/risu_reginfo_m68k.c @@ -38,7 +38,7 @@ void reginfo_init(struct reginfo *ri, ucontext_t *uc) } =20 /* reginfo_is_eq: compare the reginfo structs, returns nonzero if equal */ -int reginfo_is_eq(struct reginfo *m, struct reginfo *a, ucontext_t *uc) +int reginfo_is_eq(struct reginfo *m, struct reginfo *a) { int i; =20 diff --git a/risu_reginfo_m68k.h b/risu_reginfo_m68k.h index 3922bf6..021939d 100644 --- a/risu_reginfo_m68k.h +++ b/risu_reginfo_m68k.h @@ -21,7 +21,7 @@ struct reginfo void reginfo_init(struct reginfo *ri, ucontext_t *uc); =20 /* return 1 if structs are equal, 0 otherwise. */ -int reginfo_is_eq(struct reginfo *r1, struct reginfo *r2, ucontext_t *uc); +int reginfo_is_eq(struct reginfo *r1, struct reginfo *r2); =20 /* print reginfo state to a stream, returns 1 on success, 0 on failure */ int reginfo_dump(struct reginfo *ri, FILE *f); --=20 2.7.4