From patchwork Fri May 19 17:04:49 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: 683906 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1052085wrt; Fri, 19 May 2023 10:05:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7AwMcr/cKFNfEnFJgejxAfspod8nUlRiMHZli8XZwD6S0BNKOIJxP3mas0M8vfdmQHniRv X-Received: by 2002:ad4:5de3:0:b0:61b:5faf:9a72 with SMTP id jn3-20020ad45de3000000b0061b5faf9a72mr7046076qvb.3.1684515930904; Fri, 19 May 2023 10:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684515930; cv=none; d=google.com; s=arc-20160816; b=qF+27t+23QBLfEEi8MOQelNBP0d3CqhITxlS/t5TKNMcmKKeMZIjxMBHcjjL8/HaSm KZjd8Fj2reIUyDRSCxhcD7jXjUO869vfXWeI0IGpQEnOfE9blksoLniclcT9n9zhvm5r HXxbEgTXrOT2jzvXPSXZLtf9ojQxro9sDCceTUtB5xJ0ifjDccYgz0br4lLKhEfvamFT ZuDj6haRdq6WWtHUi1/dVG32nLPh0kLBWPB5keugTtlt0nFfyeGi5+ZVeFdkDehMS900 Ub5R7b9qTEJROb+QKnzjMWi5gQwBT6rjoXCCd/mJn6QwBGK11TWc5yKGRiEAl9un/ZkA ju3w== 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=BBI1EKXYVa+WMuYu7l3ZX5976guHRdH5nUfqC+4pCho=; b=AXsdzEsTxlTKArJbWTT7ERPkNLpn/W6juUZ77pWivHTWH5qHUBdL1ZOWPApc/TyKBL gshGLrwaKYeRVkfY67/OWRUSltRGfcDqu0F1LTZegYl9YKOZDPWw/rU0NdSQijgImeZK 3BYFlLm9GzlvXZUznKbPRcin3DO4vSkT1vYKtho1s/7WefgVI9uxHqK+Rtu2ts4M0BAQ 6zgs9vU5t6BdK4ugG5UABEaSji1y/XpCRu6o0R0tDw7Kw7sQuwWHGkYfLyVTO4SVwTM7 GYzUZFhDD/lLdK3z3F96f8xPD33bAy1lXDLjRAHzsz3TCXj5LlOUP+PRfJ6Aa3eu7tak nhYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vSmseuVK; 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 jz10-20020a0562140e6a00b006218ca62ae3si2938998qvb.553.2023.05.19.10.05.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 May 2023 10:05:30 -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=vSmseuVK; 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 1q03XN-0002Au-Ef; Fri, 19 May 2023 13:05:05 -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 1q03XJ-00029v-7I for qemu-devel@nongnu.org; Fri, 19 May 2023 13:05:01 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q03XG-0005UH-Hp for qemu-devel@nongnu.org; Fri, 19 May 2023 13:05:00 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f42d937d61so33855725e9.3 for ; Fri, 19 May 2023 10:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684515897; x=1687107897; 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=BBI1EKXYVa+WMuYu7l3ZX5976guHRdH5nUfqC+4pCho=; b=vSmseuVKS6Pcki9dUs+hDKsDj5LH/PEe50J3O453cteuGX9FwoczU5sb9sAllS+CVy JdZjpW+/FxfM+LoDPc1MOOQSD6rBqcFC7pnG3Dzqyd7gl4pA/C2cGw33uTjhFYr5F8qa klZQP08Z18CMRNTFBmK/3W9aUVqqLm3jmBEb3Pe7tPSAsMXpV/dl9PRTMuImcpoVM/md EW+s8dsX3sOkJuVLlk/b2TgvjI0FM5n0/XpWZlBHGh7xiafdwMi/Z5Dpwr0vCMaeAIfH 148l2CdNleTx+Eis7VWN5wyEyE/IF/KgrVyVCvhd6yLAnetKivz1+NmTDAAIBNi6C0IM 6Jcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684515897; x=1687107897; 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=BBI1EKXYVa+WMuYu7l3ZX5976guHRdH5nUfqC+4pCho=; b=YfriuakDmig8IrkeZCmchVRUJC9LgB1x3TUxSnOkEs7CoOAgMNeVqcITTsJWWv1gAM wvLz1PpY5Hfa6J+v0nzZYPPQbzj35Y/ANVkC3EliztN7+MXS9yjCaGj73ylqudyxOtJA gefg3PRXZswXW0zwFfVH/l1YJQLB/bTgNqG8FJlSGk5+4/g4Wdb4aXizzhRYlFbijPN0 dfjlG2E272Rp6PFpPxzIOEEz3lkVPJOOIiR8zixvw/EGZqEFAtfHw2o7RiIaUTvLbGWa ZApxpsCchJFd3D9TGFzR4Ysft7VTY3yXG++rWBtRbZf2NwfStfi8jahVCGP072RuwxcH lljg== X-Gm-Message-State: AC+VfDwH5Q0k7/51xHLR7pZCNAXeBW7CA3oKDOkHZeqmh9n6qQ8GcdTQ sNP0Il4CMXcZDobtFt0Uzlb6fw== X-Received: by 2002:a05:600c:ad2:b0:3f4:294d:8529 with SMTP id c18-20020a05600c0ad200b003f4294d8529mr1919989wmr.19.1684515896798; Fri, 19 May 2023 10:04:56 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id h19-20020a05600c28d300b003f427cba193sm2930166wmd.41.2023.05.19.10.04.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 10:04:55 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 21BD71FFBE; Fri, 19 May 2023 18:04:55 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Yanan Wang , Riku Voipio , Laurent Vivier , Marcel Apfelbaum , Marco Liebel , Mark Burton , Thomas Huth , Peter Maydell , Richard Henderson , Eduardo Habkost , Paolo Bonzini , qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Alexandre Iooss , Mahmoud Mandour Subject: [PATCH 3/8] plugins: update lockstep to use g_memdup2 Date: Fri, 19 May 2023 18:04:49 +0100 Message-Id: <20230519170454.2353945-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230519170454.2353945-1-alex.bennee@linaro.org> References: <20230519170454.2353945-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.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. 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) {