From patchwork Fri Jun 21 07:03:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 806316 Delivered-To: patch@linaro.org Received: by 2002:a5d:508d:0:b0:362:4979:7f74 with SMTP id a13csp636157wrt; Fri, 21 Jun 2024 00:05:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUdByaqFfcOo0hf0ZNqDRi4yQ1R2yIkTgf6xb3JVybsXBrImG2pjowHE1zljgtIBivp8bjVtwQ6P3CPIg8ms/dG X-Google-Smtp-Source: AGHT+IEmrPjnb4OjtRpVz5LJoIrLEsEDGB490LLV+eUkCeGYTicMDuFJOc7fdfol0fJuKT7HlQj4 X-Received: by 2002:a05:6214:84b:b0:6b4:fd02:1daa with SMTP id 6a1803df08f44-6b501ea5588mr87899036d6.44.1718953545370; Fri, 21 Jun 2024 00:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718953545; cv=none; d=google.com; s=arc-20160816; b=GRrAgm6tZgvA7cvC0o8cTkbO5cL06TYjlwm9SaFRVxMjaWauCtcEd8ABKiMczRf9Bj ZCu1kRcD4NcYG3QWqSw7vLGgBy6SAfhS2hJiOrsd6KezG9BoxY0J6bZvB3sasJv6fRgJ /x+8FUFsFw0xDWLM9lc8cTSpUy2z19Vy/eyo3uD2kM6dCfBI6X5xeRRrjBC0ntq04gs6 IHgCi3mrQA/4k3nLAyV4ZpzrfR/BzfjKLy+anxm6rJs0gwyvF/LPdUM+hS4HgdzARgT2 stgtvCnddbI0nPov/0jXXEaNoizYV3Fh0tqEDFRD0R0IuekUtCFTe/JVPqvPf+liSyaP Nx0Q== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=G147CzmBVRTe44+2guDyikKNInZHpzZll0uolwq//h8=; fh=/2roaNOrE54VD8AB72HOK9CICZj3UaJ56VCg4RD5Od0=; b=eEmeOrSKsNZStBBwMOq7uX55B6gVcYKKf8hy4B9epuChx6fmJqT78xEqtRlZ3kWsw6 ZKoKV2Q19EwVzpm8SeaRJ/lf57CZtQNeTFCkvR8JxTtyts1CarnoWs5B+WME+MQ7XkpX /61lLgXlWYBl8UErWirPVdOesfPLYbHD+M+muFmpVqle8oR6SpzM7KLdLXI4YKNHXZvR tA4kHLVKR9BJjTrqH5owDmrG1Z0GhoUTh2Q0jCqL1sEgB/J5hAgs0nvCwPfP2/e/hZ/e OVVKGKtxHWb88xSvtmPjRFFHsCkEaWJLDyEOUN1htieP2AEDvTelr3nfWJe7cn7wtCdl R0pw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KHlF20oU; 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 6a1803df08f44-6b51ef42ad1si8069516d6.509.2024.06.21.00.05.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Jun 2024 00:05:45 -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=KHlF20oU; 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 1sKYKJ-0003nm-4q; Fri, 21 Jun 2024 03:04:51 -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 1sKYKI-0003nE-1i for qemu-devel@nongnu.org; Fri, 21 Jun 2024 03:04:50 -0400 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sKYKG-0005ES-Cp for qemu-devel@nongnu.org; Fri, 21 Jun 2024 03:04:49 -0400 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2ec408c6d94so19968361fa.3 for ; Fri, 21 Jun 2024 00:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718953486; x=1719558286; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=G147CzmBVRTe44+2guDyikKNInZHpzZll0uolwq//h8=; b=KHlF20oUsOlFG6SsUmduhO5Mi2ZNaqdMltumpo0F18W2VE8t9oD877LcJLY4decogl 8W7BE1F1x+N/CDCXsXZPVrO6fkypMgXwNmcVveizCDH9xqDLDCOAneALAzJUmHKHpxPV fPu7dD4FbsycKnvUm25BP34/kP40kW1+HFdW5nMnKef4QKspUark41piZ9yYhFO0Gd7k FVpMAxMyN+vKtjR2pn+wEmZ6yryRbcVCXkQkYildPQfNFlTwtc8gIwMSSugLOLg5Nkdr Wr3aNhyPZXhGf4j5qhKowx7NsFHKxz2VRJxQ8hIAhCmeRtw5hFnCeijzDIi+pJX1OODj t9dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718953486; x=1719558286; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G147CzmBVRTe44+2guDyikKNInZHpzZll0uolwq//h8=; b=m/FRFStfEUcak+rzFsaP5oRZ8n8+QmtqMhmSqybBTyucpiB0rjwGRTF63ujv9Mli27 ZNy2dHKHcwLPhHjQDgYzfURrqLupQT7t8MWgI7arUYsSYeAobEWh4D8aCSPHnXxmh6SN tlF+FJ+kPElZKw+bZcl1ucCSfXtZ6OwP1ECXCdu+oOwgM8u518SefKjeQVyPmMUCSZBO zOJiNiJj70oc0Vy3Qmb6aF6HV7Xp0SmWN0EmBntuNIgLrI63E0YYVL9yj8z/WxuvJ+K9 EvwOnWqPFkvqXruJnGvlu5/2y+PIcKLdcHNyyNBna+c4m1YuRzRK0agTZO218WpLtpSS krMQ== X-Gm-Message-State: AOJu0Yw/g4oMmsYPwVbK/PEnQ4NiuAvMPRSGPl8SaU4Gj+N1AVONAmol 6EVy4aiesudsRoWmHAZimMT3DhWTPfLjWsAIhXXFsZRNi7DaAXLKoZeJKsdAkKLlJdAMB7VZ4jP k X-Received: by 2002:a2e:2c1a:0:b0:2ec:1a1c:75f with SMTP id 38308e7fff4ca-2ec3cffc87emr45736111fa.51.1718953485871; Fri, 21 Jun 2024 00:04:45 -0700 (PDT) Received: from m1x-phil.lan ([176.176.128.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42481921f16sm15084975e9.41.2024.06.21.00.04.07 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 21 Jun 2024 00:04:45 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Fabiano Rosas , Peter Xu , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH] migration: Remove unused VMSTATE_ARRAY_TEST() macro Date: Fri, 21 Jun 2024 09:03:17 +0200 Message-ID: <20240621070317.9670-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=philmd@linaro.org; helo=mail-lj1-x22e.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 Last use of VMSTATE_ARRAY_TEST() was removed in commit 46baa9007f ("migration/i386: Remove old non-softfloat 64bit FP support"), we can safely get rid of it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Li Zhijian Reviewed-by: Peter Xu --- include/migration/vmstate.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 294d2d8486..f313f2f408 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -388,16 +388,6 @@ extern const VMStateInfo vmstate_info_qlist; .offset = vmstate_offset_varray(_state, _field, _type), \ } -#define VMSTATE_ARRAY_TEST(_field, _state, _num, _test, _info, _type) {\ - .name = (stringify(_field)), \ - .field_exists = (_test), \ - .num = (_num), \ - .info = &(_info), \ - .size = sizeof(_type), \ - .flags = VMS_ARRAY, \ - .offset = vmstate_offset_array(_state, _field, _type, _num),\ -} - #define VMSTATE_SUB_ARRAY(_field, _state, _start, _num, _version, _info, _type) { \ .name = (stringify(_field)), \ .version_id = (_version), \