From patchwork Tue Jun 27 16:09:26 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: 696892 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3868461wrm; Tue, 27 Jun 2023 09:18:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6U91+SwT+pbK0KTOpuJqqkuNycJATkpy7tGo2s/M1ooEYptbPQHwH/UOhWIEzOHbTfxgYF X-Received: by 2002:a05:6214:e6f:b0:631:f1fa:8c04 with SMTP id jz15-20020a0562140e6f00b00631f1fa8c04mr27833438qvb.38.1687882683076; Tue, 27 Jun 2023 09:18:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687882683; cv=none; d=google.com; s=arc-20160816; b=IqGhVSZkfBfqnVqfF44MtdDeOVADFVUSUYG5aJrwn19L9lENUgn3L+Zl6wxM1ieD7W zcehyz4x+UiVzvBCRCpoCflTOycq2Zq34WvFtkvejdcJ24Xv3okRR3m/IGpWSkhrUuVp LV7XA+LQJkd6HgkRBDvY3ZRiDYmol3PxI4pHXZNA7qG6DXs714qMQ0fmeGOpQu0M3I4M R36KtjHUQy5OnZEYlvRs9ILqsYYReXJYj2XI7MaCLM4CRo4a9PQcYG+wnRPz7/zIrVCR i82cwm5zGLjJAq/fekg8/i/SuDjAd/GvCrhUKomJDRZa9zDtzxtmXj7VjasFc7ft0vsg h0BQ== 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=1/YdtjXXo0e3CzVmNtcCXnVaZZ7ekw+aGjDVemCbNnQ=; fh=ArV5Yx1z9lg+jufSSsiXTUg87d1rJ5PmrQDHLSB2i58=; b=dQuAH4JvTCv0aswVh8aI3YUq9fUVEO+vAboSH0PmSy+HRd9IKtpINxjN7r7qLJ+yhC yUzNZ3hS+RkxJx3dO2Mr2MYq8PX4R97ELbiiLs3yDSOmjIqOLCrYGcJjTWIT2ucBDBM4 07X0OHyZBvQ0YSpV+NOVB1s0YdwlNXaf6kpbMEzJ5GRBN/jJXrPefii8RFtFLwPX3lRD EsGqW+BBEerI5KTQEIxUxsWYRm+M5+7TTKRiswBqoSzSUFq4a0+EA9RNIhHZkhZy9MaG PtaSKYGdnrBerV4/YwsLonkKvdR0ezB7BrBxuWDNsPkvCY1Jgd0L48QBbyQtjAmml77I +RdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NMBk7ziG; 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 jx6-20020a0562142b0600b006262e2d2081si3516171qvb.519.2023.06.27.09.18.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Jun 2023 09:18:03 -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=NMBk7ziG; 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 1qEBMG-0000zx-6p; Tue, 27 Jun 2023 12:16:00 -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 1qEBME-0000y9-1I for qemu-devel@nongnu.org; Tue, 27 Jun 2023 12:15:58 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEBM8-00087M-Tk for qemu-devel@nongnu.org; Tue, 27 Jun 2023 12:15:57 -0400 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4f973035d60so6282343e87.3 for ; Tue, 27 Jun 2023 09:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687882549; x=1690474549; 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=1/YdtjXXo0e3CzVmNtcCXnVaZZ7ekw+aGjDVemCbNnQ=; b=NMBk7ziGTqFekAol9iS/ZfDQgdosHXTAj5emIIWYF6BkCrWy282cAY/StBSGAtNcRI w2TpYbbA66jFvWkMHeI8JcsP4iDy+yi7QKnhILoVcDEdqaoZ4GTOmUHwh4rd06165+PX BwE695mYIq07uU8oP6tTfaeVw9TSGh/OSfRXp1YrIFD2M2sA4FM0T+Sb3D95V9pNeIYv wYUV7AgyaAnW5N94fG+r577zQXGk7ufWd9iMcUspKkFLQV58o2DHXLVacBf7Z5dFfBkd 8Ce8g3+w8LduqDxhRbFWQzMHmGcsRpEOfvFhgh+OH3eNej5azu4/xrMN0+HeUZROxU7f /sKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687882549; x=1690474549; 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=1/YdtjXXo0e3CzVmNtcCXnVaZZ7ekw+aGjDVemCbNnQ=; b=J09s2hI3Ao7w3ZjZVywIqehUfLuxTIah/6TdwICSIAdFi1SxBu9W+XCWqN9SbVz9vg U4j6lZqmd6Zf/utY9eoL/kL3fv3lCitJvlE2i0OxONQGKmZM0XKrqYomtKmWpikTWGfX aPGrWW17fb3EYWHOR49p+voKvj8DoZdnk5G2WjbdwtsyU1ZHP6t/HYysUjvbEg30/h6r BOB0nuQuGTURAE9noDRb8+/fOuOh+5B2cwXbrVHuk3HGlQQEgb7CLBn4mledbwwVn+ZB nMYu2nagMhSfoVPUDPsPswtj6z5FI5FLuQhBa82r2IT8yXxCcgkxxxBmtwP9cPcOQrEv hSDQ== X-Gm-Message-State: AC+VfDxMRhqfv+omq+jx5277u7cfdUvmGrcNdTCsgfvDugtHF2HWIK9z OAOvpXprZosXYjPBpFJQZTq2Qg== X-Received: by 2002:a05:6512:3b0b:b0:4fb:81f2:4228 with SMTP id f11-20020a0565123b0b00b004fb81f24228mr2704299lfv.31.1687882549560; Tue, 27 Jun 2023 09:15:49 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a10-20020a05600c224a00b003faef96ee78sm5067377wmm.33.2023.06.27.09.15.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 09:15:49 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 3A7141FFCD; Tue, 27 Jun 2023 17:09:46 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Wainer dos Santos Moschetta , Juan Quintela , Thomas Huth , Cleber Rosa , Leonardo Bras , Beraldo Leal , Peter Maydell , Bin Meng , Yanan Wang , Darren Kenny , Alexander Bulekov , Marcel Apfelbaum , Peter Xu , Radoslaw Biernacki , Laurent Vivier , Paolo Bonzini , Eduardo Habkost , qemu-arm@nongnu.org, Stefan Hajnoczi , Richard Henderson , Bandan Das , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Dani?= =?utf-8?q?el_P=2E_Berrang=C3=A9?= , Alexandre Iooss , Marcin Juszkiewicz , Leif Lindholm , Laurent Vivier , Qiuhao Li , Mahmoud Mandour , Riku Voipio , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v3 19/36] plugins: update lockstep to use g_memdup2 Date: Tue, 27 Jun 2023 17:09:26 +0100 Message-Id: <20230627160943.2956928-20-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230627160943.2956928-1-alex.bennee@linaro.org> References: <20230627160943.2956928-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=alex.bennee@linaro.org; helo=mail-lf1-x12d.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. Message-Id: <20230623122100.1640995-21-alex.bennee@linaro.org> Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé --- 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) {