From patchwork Tue Sep 10 22:15:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799386 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBC331ABEA5 for ; Tue, 10 Sep 2024 22:16:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006611; cv=none; b=M7+2v40zBlJxf9qElz/D44ppMRmymd0C51+Odm5j7moSb5piO7q3XRRtUrSbMA1obnQ90unor4c7oT16bnIzvmgDEh1VavK0FzZ1K1M07C8iOk9ziX+Noh2X9vs6FVTW8g94dHQ+0HXMfROa51wCDXxVVrbmHnu2FoJ3zS1Z4FQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006611; c=relaxed/simple; bh=un8fAKZDF05rRHJyUVrncbirtSi7CKHRrjczF7x2BcE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sI8D1EaBJpWbn7V1AksZSOM2xdl0QQAqM80EuTJog9PhUSofpAuT4Kgz8YiUpaCh0hNCtqNuADTqWNiS9Twdi9asY4Vu1ImAl8BH8Cdq5DMKKpf4cAMWfha7+E/rV9zGqrAsJIbLxPgv90UqGF2rkYBKHMLxzF2MVDE5JXoutz4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MTxY9RLV; arc=none smtp.client-ip=209.85.210.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MTxY9RLV" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-717849c0dcaso5608628b3a.3 for ; Tue, 10 Sep 2024 15:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006609; x=1726611409; darn=vger.kernel.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=wo4Kwhe0+9wossg0r5F+dnO1+KIF5dbmiqLxu6TdKHE=; b=MTxY9RLVpV7u8e7bRJHhSnb7u0zoDSJLcdMOIZXA1Dgtv4Ev9oIyQpyuSNCoIcekkh P/QPcYHkx6Yt3nxCHJOPAzqqacSQmc9dl3TVtiWD2/sxAbblqcFkfhUOS2qFfyTUs7OO GqGi6pDOnhBwJj1i3SpRE+sGJVFDj+TF3GdzxOEI8S52ApgLRBwlPj8nOaJWNcIlki5H Ju6V8hc5HTmwbyNfGwBVmiW7vlo+jcIFcwaTHVsClp9tZzreAn4MYExyc/gtXcMp4ZLB t24xXAYG8BkMFk5q4q0v9j9NLb19tdmPznQ6bfANfyus47gPMdeYsaYWr0OzlwDrCqqL X9+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006609; x=1726611409; 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=wo4Kwhe0+9wossg0r5F+dnO1+KIF5dbmiqLxu6TdKHE=; b=T3Tbep0sC288kh9CpHTivvdqsjrD9BYn7MdzLL77+Vf8J1y2RkUBtQZebSPMnuO8n8 BDX4hAXMOzRn4QzMits7uQaL8tZCbquR3hSOvhLJjBibCW2IXCMWYS/9IKqc6TrZhTp2 /gLLz0Jb7tceI9mfwjt5TG1WqbevwmN+OBEkqr6FgciMcv5SLsgt1tsP7/TNx9CGda9w DWpnbbj2Oti2cb6zgqcxv1FoA4Umk5okpdv/u6IQJtYjBUZ0A20PZNqasEzJ6spSPBn4 ZUd5q1IPI8JmFcbCDGrnM+0a8sAVUp1YlfYEY9OT4Mrv9idyhuyFHUv3trSS02XJ3cE+ u1jw== X-Forwarded-Encrypted: i=1; AJvYcCVN5TygtRYGThaJ1dGWsFFrW1lL9CYDYDRVwMOkFHABh/nkdQtizVSE2QrdRysfbbh06LY=@vger.kernel.org X-Gm-Message-State: AOJu0YxrldzXq/YNcTJmPVgker/ffCC9fMTTO30rUk5nxyOFl0nZsAnA Wpanf/xpYIZUxLvU09QtdeewMwaYn8SBkDsPnRlXcTDVDJvc3QmkpZSbA4lQYME= X-Google-Smtp-Source: AGHT+IFtMirXMv4Fe5jm8EjT5naiSbZE3xCYCvlUGLPtdk4/tytoT9EI8pJfvAZvF8ck1TGbfKyzfw== X-Received: by 2002:a05:6a20:ac43:b0:1cf:374f:40c9 with SMTP id adf61e73a8af0-1cf5e1b7fe7mr3167936637.38.1726006609032; Tue, 10 Sep 2024 15:16:49 -0700 (PDT) Received: from linaro.vn.shawcable.net ([2604:3d08:9384:1d00::9633]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71909003d0esm1884055b3a.93.2024.09.10.15.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:48 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Zhao Liu , "Richard W.M. Jones" , Joel Stanley , Kevin Wolf , Paolo Bonzini , qemu-arm@nongnu.org, Corey Minyard , Eric Farman , Thomas Huth , Keith Busch , WANG Xuerui , Hyman Huang , Stefan Berger , Michael Rolnik , Alistair Francis , =?utf-8?q?Marc-Andr=C3=A9_Lure?= =?utf-8?q?au?= , Markus Armbruster , Sriram Yagnaraman , Palmer Dabbelt , qemu-riscv@nongnu.org, Ani Sinha , Halil Pasic , Jesper Devantier , Laurent Vivier , Peter Maydell , Igor Mammedov , kvm@vger.kernel.org, =?utf-8?q?Alex_Be?= =?utf-8?q?nn=C3=A9e?= , Richard Henderson , Fam Zheng , qemu-s390x@nongnu.org, Hanna Reitz , Nicholas Piggin , Eduardo Habkost , Laurent Vivier , Rob Herring , Marcel Apfelbaum , qemu-block@nongnu.org, "Maciej S. Szmigiero" , qemu-ppc@nongnu.org, Daniel Henrique Barboza , Christian Borntraeger , Harsh Prateek Bora , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Nina Schoetterl-Glausch , "Michael S. Tsirkin" , Fabiano Rosas , Helge Deller , Dmitry Fleytman , Daniel Henrique Barboza , Akihiko Odaki , Marcelo Tosatti , David Gibson , Aurelien Jarno , Liu Zhiwei , Yanan Wang , Peter Xu , Bin Meng , Weiwei Li , Klaus Jensen , Jean-Christophe Dubois , Jason Wang , Pierrick Bouvier Subject: [PATCH 16/39] hw/hyperv: replace assert(false) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:43 -0700 Message-Id: <20240910221606.1817478-17-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240910221606.1817478-1-pierrick.bouvier@linaro.org> References: <20240910221606.1817478-1-pierrick.bouvier@linaro.org> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Signed-off-by: Pierrick Bouvier Reviewed-by: Maciej S. Szmigiero --- hw/hyperv/hyperv_testdev.c | 6 +++--- hw/hyperv/vmbus.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hw/hyperv/hyperv_testdev.c b/hw/hyperv/hyperv_testdev.c index 9a56ddf83fe..ef50e490c4e 100644 --- a/hw/hyperv/hyperv_testdev.c +++ b/hw/hyperv/hyperv_testdev.c @@ -88,7 +88,7 @@ static TestSintRoute *sint_route_find(HypervTestDev *dev, return sint_route; } } - assert(false); + g_assert_not_reached(); return NULL; } @@ -187,7 +187,7 @@ static void msg_conn_destroy(HypervTestDev *dev, uint8_t conn_id) return; } } - assert(false); + g_assert_not_reached(); } static void evt_conn_handler(EventNotifier *notifier) @@ -237,7 +237,7 @@ static void evt_conn_destroy(HypervTestDev *dev, uint8_t conn_id) return; } } - assert(false); + g_assert_not_reached(); } static uint64_t hv_test_dev_read(void *opaque, hwaddr addr, unsigned size) diff --git a/hw/hyperv/vmbus.c b/hw/hyperv/vmbus.c index 490d805d298..df47aae72b8 100644 --- a/hw/hyperv/vmbus.c +++ b/hw/hyperv/vmbus.c @@ -1874,7 +1874,7 @@ static void send_create_gpadl(VMBus *vmbus) } } - assert(false); + g_assert_not_reached(); } static bool complete_create_gpadl(VMBus *vmbus) @@ -1889,7 +1889,7 @@ static bool complete_create_gpadl(VMBus *vmbus) } } - assert(false); + g_assert_not_reached(); return false; } @@ -1931,7 +1931,7 @@ static void send_teardown_gpadl(VMBus *vmbus) } } - assert(false); + g_assert_not_reached(); } static bool complete_teardown_gpadl(VMBus *vmbus) @@ -1946,7 +1946,7 @@ static bool complete_teardown_gpadl(VMBus *vmbus) } } - assert(false); + g_assert_not_reached(); return false; } @@ -1996,7 +1996,7 @@ static void send_open_channel(VMBus *vmbus) } } - assert(false); + g_assert_not_reached(); } static bool complete_open_channel(VMBus *vmbus) @@ -2020,7 +2020,7 @@ static bool complete_open_channel(VMBus *vmbus) } } - assert(false); + g_assert_not_reached(); return false; }