From patchwork Fri Jun 30 18:04:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 697977 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp597540wrs; Fri, 30 Jun 2023 11:15:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4T3tqrMih1ILSM3iZrWs+HL3MJ6VwxyBKI0njw/mHFQU2RbORmADMZOUykViZF7NhblUKI X-Received: by 2002:a05:620a:2a0b:b0:765:a23b:cc27 with SMTP id o11-20020a05620a2a0b00b00765a23bcc27mr4751313qkp.14.1688148948366; Fri, 30 Jun 2023 11:15:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688148948; cv=none; d=google.com; s=arc-20160816; b=mdPusK5EhfcaVy38RRDrrfwQtHUKpEk1V3JJykuvvmaZYpqA12GuZpvE6OcBO8fYju OJhxsut/mzFic4FOTBkaSiByoTc5YVt8n1qJoALYsPC5UVfLm7qhnrImMuJNtGxqcRbz 6EtBhclNUlYL3vWeNiI417l/qtfm0+Iz27U5PyhKUzwg0rRR4ZvATYe4HgAuFKPcmnhb 29AI8rB/2HhQWO5vbiJr3Wm/iHTZD0VOX8bjY+8Pg7io48a5ucYfP6nzItk+PtArBLJk KP6oZyHlY0nVpyz0F1loJdUoigPIvcE9llFJ4DVUZAu6VuRfmCX/lQkVTxmS1TzZ/0qc AdBw== 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=xR5/t5x9pG5u9j5MsPviyFWbyRXcbAYZ+kVu5BRUcF8=; fh=OltHerz+Vf7zZkebZbScoRT4WgVwJDskRS7DoEjx2Hw=; b=0p1fhp7X8ssB2JQjtEUT6eXTHIV+LBFAmC1qGPIojuOZ65tt2sEA0w6dsRUlZJofR9 TM9VNFEzCQzidy5V6eSZCtVpyELwn8KPvXatLqirgnEf5VZv1Z6R3HJjRcWL53B5n+U4 7fMy0fa4MAodXtCoumyXaTPflZRJc9Eh190D8Bw+e3mBDJLmN6vAvCwQs//Rpawmj4sk Zz6qsbkXbkPXeBQSoWhunb42gAHt1WpThkklklxA0vuBvIsFWBGMALCSwczKiyU903Gh ppQNQUtnoZReqCCGLucQQuAFxSQtNO0gdCiW/iD7B+VKZc7jp/vKm9go0XjhseGVDfSE iYRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CWYCfDjo; 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 ro24-20020a05620a399800b00766fd5908e1si6205305qkn.363.2023.06.30.11.15.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Jun 2023 11:15:48 -0700 (PDT) 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=CWYCfDjo; 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 1qFIci-0005Pb-9h; Fri, 30 Jun 2023 14:13:36 -0400 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 1qFIcg-0005Nb-Hd for qemu-devel@nongnu.org; Fri, 30 Jun 2023 14:13:34 -0400 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 1qFIcc-0003Vp-VE for qemu-devel@nongnu.org; Fri, 30 Jun 2023 14:13:34 -0400 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-3113da5260dso2418991f8f.2 for ; Fri, 30 Jun 2023 11:13:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688148809; x=1690740809; 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=xR5/t5x9pG5u9j5MsPviyFWbyRXcbAYZ+kVu5BRUcF8=; b=CWYCfDjoWFn5LOXEL4IUnzJeVYCxoZiFOY76PNqN2I2UXkVzC4FHqmb0fqXGa6lIC8 Ne/5/J6CWo+qZ3yLDneHii1wTtzRnohO8othGeND2rpzUc4l+AW7VbdZUY0wweXMCfT/ xwZDrftVNiB/hBgkByh05i4mHX8W0K3z3NQl75haDXECyOFJkvoOb89AFAdYBfB8KDmG ntNMsni79X+P0SYk1/7F4lX8yJycGL/6H+M/2m+lVxD82vBVuxk158e2qEcfUimDH+L/ qyirYwXKmcryN8SO4bttAphRD9yPihu5YSa73Mkyy/xNA8bi5hrQTv8AbSTGJOuVmqA2 6M7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688148809; x=1690740809; 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=xR5/t5x9pG5u9j5MsPviyFWbyRXcbAYZ+kVu5BRUcF8=; b=VUy1BZFhfvNUCc/dLynBjTh501iPXfgE5/LLyV9QSGGCh+CND0Ms6mbhi1nvWfN/6S nomfkwXSAg/LoahHmuJa+iAdyaBNp5p3oWBuLPyXRcaOZdx5C/ePc2DGZL3fZQOz5N1E qsRBzT86btGM+zLnA+GgRQZf516EpkgoUrKGdgr+oq+nkIXx73oP7F88EO8U5ztqUgkD so6GAK+PJC+bmb7ZT7rR9H3NV0Qxka6GhHafzKUne/iAkno5nS9VBT2ty88vKK3GP6mY 0ZbqOt+KcKm/yrZ/dMBRT7PL+hNas/izQ5wWzfQacUBUT9wb86yoCKGKtWhg+Agkoo2y kq6A== X-Gm-Message-State: ABy/qLYkztwq6m06nyiD25045Wy6K+0vMt55jKdG52aDfmaggrDuHp1Q DDyjD1QUKFxWeFs5Yp3/sLY6ag== X-Received: by 2002:a5d:6a49:0:b0:314:7c0:c406 with SMTP id t9-20020a5d6a49000000b0031407c0c406mr2771790wrw.40.1688148809452; Fri, 30 Jun 2023 11:13:29 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a16-20020adfdd10000000b00313ef2150dcsm15111904wrm.45.2023.06.30.11.13.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 11:13:28 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6C88B1FFCC; Fri, 30 Jun 2023 19:04:26 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Paolo Bonzini , Stefan Hajnoczi , Leonardo Bras , Laurent Vivier , Peter Xu , Juan Quintela , Beraldo Leal , Radoslaw Biernacki , Qiuhao Li , Peter Maydell , Yanan Wang , Riku Voipio , Wainer dos Santos Moschetta , Mahmoud Mandour , Alexandre Iooss , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Eduardo Habkost , Thomas Huth , Laurent Vivier , Bin Meng , Marcel Apfelbaum , Bandan Das , Cleber Rosa , Richard Henderson , Leif Lindholm , Marcin Juszkiewicz , qemu-arm@nongnu.org, Darren Kenny , Alexander Bulekov Subject: [PATCH v4 21/38] plugins: update lockstep to use g_memdup2 Date: Fri, 30 Jun 2023 19:04:06 +0100 Message-Id: <20230630180423.558337-22-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230630180423.558337-1-alex.bennee@linaro.org> References: <20230630180423.558337-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@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, T_SCC_BODY_TEXT_LINE=-0.01 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 The old g_memdup is deprecated, use the replacement. Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20230627160943.2956928-20-alex.bennee@linaro.org> Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée --- contrib/plugins/lockstep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/plugins/lockstep.c b/contrib/plugins/lockstep.c index e36f0b9562..3614c3564c 100644 --- a/contrib/plugins/lockstep.c +++ b/contrib/plugins/lockstep.c @@ -130,7 +130,7 @@ static void report_divergance(ExecState *us, ExecState *them) } } divergence_log = g_slist_prepend(divergence_log, - g_memdup(&divrec, sizeof(divrec))); + g_memdup2(&divrec, sizeof(divrec))); /* Output short log entry of going out of sync... */ if (verbose || divrec.distance == 1 || diverged) {