From patchwork Tue Apr 2 14:24:26 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: 785137 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp4964061wrt; Tue, 2 Apr 2024 07:29:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUWDIPjgWTkQhx+vnjf9x8WdxlLstnYSYK8TV79fgpp+O01nYXYSNfSsMPX/W5JzNXHvmNAIRbU6AoDVUQIF9ta X-Google-Smtp-Source: AGHT+IGWuSNVEmFbO2Szm1shWAXGJ3B1MEWUgxzJLwYLMICe1lWPPuayZEVQqDXrHqFgFoyI5WuR X-Received: by 2002:a05:620a:47f2:b0:78a:418e:a428 with SMTP id du50-20020a05620a47f200b0078a418ea428mr13119504qkb.23.1712068163532; Tue, 02 Apr 2024 07:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712068163; cv=none; d=google.com; s=arc-20160816; b=TnyYgSYAXlQwTMEB7XufnMigzeYWg4cKBp/NXb2/lC//YB2I46p2cE5BfBFQojphPj 8KnHeS3Z3URQlgeuDYo0RQwKxf6ruyCRkXTaAJ8xjsMbnXpxOjrFhraBNjWpVNgokc8b 4xb3dlATwJ5iQph95FWDDMdKPg7ejW6/pHI2NwS3/wJSF7MWSj0DzVBKMFp9XG8RRf50 qkduY6DKPqNdTutiVCBMejzYy1nhPFyURbrUprZ5VioLtAuqgXnF+WQuePJgZSSwbGy/ /Narb2iK+ZbHp+5IUDas2lKtpdwi1tGIctt/djug7KKchr33Nai5sd4aq0ftUMAeaFKY EPoQ== 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=OjdzjLmAnFvDVsex65dJCtrM54ZeLuGIMveMRxi+eG4=; fh=Un+SCElZnUFf3NvhGtaUxJylVcY8qPeExcRM1cRWzYQ=; b=kVKHsQ/F1dAFTK62TjzNTSXs9sDdGUD7eqErIQq+C6yTDHbAzs+OlNt1xydg1eX8tC EgMaIG0rIuThrZidixHk0gynYl3274ihyu6KlAgYAleykC/SyEttpHTObRqZX+3jkZzr AXkwx0uK8a/Q7AxQ4QBGqPHjrsgGlZeqnndgIn/IgeDvNmf+45IwtZCfu7a8hnOhgeyy o5YjS2gvncqvQp5od+FiFBc89AU19WP54ae6rEklMDl3FegRNbB/cs8As8Bd7/KeH6jr KDffpUTZDAh2I3Py0jCTTyH2bI54uM57ii/lQchQnrWUo0NjpyUoN5lmf9arjk3JPZPP OZ1Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BVKZ2FGU; 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 f26-20020a05620a15ba00b0078be7a979eesi3344935qkk.158.2024.04.02.07.29.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2024 07:29:23 -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=BVKZ2FGU; 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 1rrf5q-0002cT-Qu; Tue, 02 Apr 2024 10:26:30 -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 1rrf5G-000229-6y for qemu-devel@nongnu.org; Tue, 02 Apr 2024 10:26:00 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rrf5C-0000Et-BN for qemu-devel@nongnu.org; Tue, 02 Apr 2024 10:25:52 -0400 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-341c7c8adf3so3638553f8f.0 for ; Tue, 02 Apr 2024 07:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712067948; x=1712672748; 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=OjdzjLmAnFvDVsex65dJCtrM54ZeLuGIMveMRxi+eG4=; b=BVKZ2FGUPPvYTq2jCPV4KLtvC605Lsc2lPhk3LPf123LT0yE2xwSAOdFkdH1yUAYDA 7vXtkfuh/XEaqcenP/b1hDcPikJ8ACgxRc7zSrGrf+672J08MqmK+jMeJRF+WLfzdVRM qBXxSBResep8M9lQyQIPjAWKCgOSt3E411XDZH/PdHwq//CjWYX8/JCi2/EGmgYlGkfM z5rZUcaXTx2K61uePDhHLysCDhxNaQt9yF690jxGci3JKE7qH5kFzERYZ+Dcf0wfYymn nSz24LpWO2//jXNITt3jobVGF5pZEY58nn8sSE0qnWrvOH3fQya4mTjTYE0ejSUSxwUT vOEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712067948; x=1712672748; 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=OjdzjLmAnFvDVsex65dJCtrM54ZeLuGIMveMRxi+eG4=; b=X34kkgp592fC2tLoTfGA538QhzFErdNHkAEWv0SV09RrspLzjENlT71yIa8XFH/pXE p5WVN9ouJw0KOQdnacxpNj1Cxmb/Q5wGI9I6YIrmFDh1NTN3Bv6SA8KhHZaqxVmcXhn7 yuyF+TUitaRkWqiyY8e1sjs3C5zxeeQnS6vRA5lTNNuwhWItvNIC3mCjvb6yLiQXyYBf XIQcKu7sxzJNyRgDEfroQakvKVpip4lKNlTNgWjtFBVhm6bPdAIgmDVYNxNbOddZSV7n QUHa4YuTBRL9j0gas6MJflXB97oaFrxd7Sj1KNLBWuCCe5UKEvDW/cBesnpIpSRkMVtR 0HnA== X-Gm-Message-State: AOJu0YyCIdBcj1MNrG8InyiARH3yvDxQ0xfnakGajcDJvocUfkFR6D7z UyZDl4yoNNOUzUxeoVC4EKVuMB9cTcW94TVWdb8CsY4xCrdgVSkIHV6+4z5zJExU6FS5ZoBPWA8 6zXs= X-Received: by 2002:a05:6000:1a8a:b0:343:39a6:45a1 with SMTP id f10-20020a0560001a8a00b0034339a645a1mr9792770wry.59.1712067948073; Tue, 02 Apr 2024 07:25:48 -0700 (PDT) Received: from m1x-phil.lan ([176.187.202.91]) by smtp.gmail.com with ESMTPSA id h18-20020adff192000000b003433a379a51sm520722wro.101.2024.04.02.07.25.46 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 02 Apr 2024 07:25:47 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, qemu-block@nongnu.org, qemu-arm@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Pierrick Bouvier , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= , =?utf-8?q?Alex_Benn=C3=A9e?= , Alexandre Iooss , Mahmoud Mandour Subject: [PULL 11/15] plugins: fix -Werror=maybe-uninitialized false-positive Date: Tue, 2 Apr 2024 16:24:26 +0200 Message-ID: <20240402142431.70700-12-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240402142431.70700-1-philmd@linaro.org> References: <20240402142431.70700-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=philmd@linaro.org; helo=mail-wr1-x42f.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=unavailable 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 From: Marc-André Lureau ../plugins/loader.c:405:15: error: ‘ctx’ may be used uninitialized [-Werror=maybe-uninitialized] Signed-off-by: Marc-André Lureau Reviewed-by: Pierrick Bouvier Message-ID: <20240328102052.3499331-15-marcandre.lureau@redhat.com> Signed-off-by: Philippe Mathieu-Daudé --- plugins/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/loader.c b/plugins/loader.c index 9768b78eb6..513a429c57 100644 --- a/plugins/loader.c +++ b/plugins/loader.c @@ -390,7 +390,7 @@ void plugin_reset_uninstall(qemu_plugin_id_t id, bool reset) { struct qemu_plugin_reset_data *data; - struct qemu_plugin_ctx *ctx; + struct qemu_plugin_ctx *ctx = NULL; WITH_QEMU_LOCK_GUARD(&plugin.lock) { ctx = plugin_id_to_ctx_locked(id);