From patchwork Wed Apr 24 23:02:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 791558 Delivered-To: patch@linaro.org Received: by 2002:a5d:4884:0:b0:346:15ad:a2a with SMTP id g4csp1095890wrq; Wed, 24 Apr 2024 16:03:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWIXihX/fbhOPUaGlOLAWZi3j6ztH+q3j2BjWcZbq/ffgimxRy7y93WN7NwyT6Ut7DedcI1gdijKup9snu34Q7c X-Google-Smtp-Source: AGHT+IFLpX4xKKx2NstgzmZFmVYq5Dof36emDBCQEwfPgRYTT+xbreuPzTkx605wL/a+lGoHibQI X-Received: by 2002:a25:2f4e:0:b0:de5:5ba5:4e5f with SMTP id v75-20020a252f4e000000b00de55ba54e5fmr4522590ybv.51.1713999813147; Wed, 24 Apr 2024 16:03:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713999813; cv=none; d=google.com; s=arc-20160816; b=Dl8nhDgZsbCRmLynVY7P/mMDGgDgls/CTjOfLfqyH+3MtZcGs/mdZf0B40H2Y8Rael G03hSX+EWAIpI++XZNuChGRk25YDTszKuDgpnKXzdLX0NVVerrC7XABz/eSNq1GWfiJ3 n2sCsqKSvFvkKRpQ4U/qZSnY7z17lPTATjZHjBm6r9NBIPGrLIyOeNFdk+C7uzebIxYQ M26VxbmOtgc0R3qSgtZlb8oEfRYxienf8rtJ/bB4gnzsO4BGTYNwt/ytGCuf9fW6zYux Ur06ceAvbShJOT2Dvx//dn/19wnfAjEjtipqq6G8RMrq/PfPi0cHkkiF7jqi0n6td0KE wPsA== 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=luXE4K25FW6HOCJ1kHOE0xkHZzSsFeoNOQtESvbBF/8=; fh=eu2DY09p+eeddYDiV+DalJS3Vr0kxK5BujclYkgWvDw=; b=hsMN0b3xOFAlivGzTfOzXVfjEjg9NOqAzY3uZ6ogmNnbFt/9wSxtjS7wfbjnx4HhAB /e32OBXOg69191NFg+0r4yfe5MPp+8Lx7Bk+6PtxykszsXFi4BYOiQc9JioRt9B3GiaT RkXcwisXqEttAG7V51MrehvpyTvEGdVqWWmKAzV69kAZqJuH1l7NYBacIEJb09iimAJx LiUAPesCSmOCN5Tiseleu2V+vtDRUVZI3OnCnal4En7NimO2Eg+lFBabRZg5hqbfhk3f aDjSLU5ZqYddemjJnDP4P/dFd2XuMrRGAQBeZ+QL1PYbMGvKkMUW3nKOdc9Yqqy8d+XX 17UQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kCWe/70P"; 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 ez23-20020a0561224a1700b004d408663eccsi2887475vkb.50.2024.04.24.16.03.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Apr 2024 16:03:33 -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="kCWe/70P"; 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 1rzldL-0003h8-IM; Wed, 24 Apr 2024 19:02:35 -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 1rzldJ-0003fz-JD for qemu-devel@nongnu.org; Wed, 24 Apr 2024 19:02:33 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rzldH-0002cZ-Q1 for qemu-devel@nongnu.org; Wed, 24 Apr 2024 19:02:32 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6ed2dc03df6so424223b3a.1 for ; Wed, 24 Apr 2024 16:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713999750; x=1714604550; darn=nongnu.org; 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=luXE4K25FW6HOCJ1kHOE0xkHZzSsFeoNOQtESvbBF/8=; b=kCWe/70P0yUgs4cU1sCjBT8ddpGJ4cuFGGRoTzqhObE/HXBOaRGH1YXvtU9l1CcVZR uxVULAE8JsBCgGPQW5ZfO2oSbd0vgRvDS8P9ZncG88U3jHNVMjngQcOQ/dheFuQMwo05 ySBRw6p81XH7zPLgqXT/40bcdXyrxk0QVSJl8jPk8c9m8NjedHzwvi1eIIlMJk7CwAXn Ssj3EvS+oZ3xgl8dzpLqsNKlItLgd6k29UM2ovSVTulu1E6psJ3JNssnO3GWcOfTx9B2 /C8oeqtgkMw1C/NBkCAWtwENXlmyZKSwvlRkgaS2Qv3EonFSDkybB2iXlQOy5YFhm/7f QPPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713999750; x=1714604550; 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=luXE4K25FW6HOCJ1kHOE0xkHZzSsFeoNOQtESvbBF/8=; b=sHIP2RjAxJf2BGpy6qTMNFntBKxWn/eSNOnHb9k5nGdao6DAarUGW3MRIhAhF51Ohr CmkBT0fBxND23DuZR0p7u4D73n5izDVRXAlpvOhL5yntdhELIo6w51ztqKdub53TkSCr d0qDxqi/PsTnSM2cEWhwRlfwExXxwny5J4dVgOHcoXKHuebPIaumPWbyzvwbJivBVnJ5 w36kNHw+WRgnu+yXGt5YTTSQAYJqriocH1aG0JYQRR5797VwlV6YExc8s/hzfFfQG3KF 2vubqqOqDTyHLtUCWhDgiOMlqOUSfFBAq3xPaOewbP3gE4RnLz1agQZEYruLvZYlDo2k RWxQ== X-Gm-Message-State: AOJu0YwNEeicrtqwMU8MitYOFcpwlnTJWbfu+Eqvj809PgHXD+xR/uxS Xl5iTSQ+PauiiEtATY/v/xn0wwSbw0fMqSP1hHBwmulba4uJZWGv/Mme/sM6o2MZHMNq/kBp6yE r X-Received: by 2002:a05:6a00:cd5:b0:6ea:e2d2:5e68 with SMTP id b21-20020a056a000cd500b006eae2d25e68mr5349618pfv.27.1713999749995; Wed, 24 Apr 2024 16:02:29 -0700 (PDT) Received: from stoup.. ([156.19.246.23]) by smtp.gmail.com with ESMTPSA id h5-20020a056a00000500b006ed4aa9d5c0sm11981405pfk.188.2024.04.24.16.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 16:02:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v3 03/20] plugins: Zero new qemu_plugin_dyn_cb entries Date: Wed, 24 Apr 2024 16:02:07 -0700 Message-Id: <20240424230224.941028-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240424230224.941028-1-richard.henderson@linaro.org> References: <20240424230224.941028-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42d.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 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 Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- plugins/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/core.c b/plugins/core.c index 11ca20e626..4487cb7c48 100644 --- a/plugins/core.c +++ b/plugins/core.c @@ -307,7 +307,7 @@ static struct qemu_plugin_dyn_cb *plugin_get_dyn_cb(GArray **arr) GArray *cbs = *arr; if (!cbs) { - cbs = g_array_sized_new(false, false, + cbs = g_array_sized_new(false, true, sizeof(struct qemu_plugin_dyn_cb), 1); *arr = cbs; }