From patchwork Tue Sep 10 22:15:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799371 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 8C02D1AB518 for ; Tue, 10 Sep 2024 22:16:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006575; cv=none; b=CX7btZqpb4AJy7D5/ktMz+foxq0DRQiE4+bIeNlL1SVttka53LiV9UhIb4SfyUEDXMZqrqeIuhgWI/THO9VhyTR1xu2xa3Rr152azCVa++CeYwCQiX/gEnoPNFNYrv1LzoW+xK0093f2nuedmad8RWLm4TWsHWP3Y2VKDcrxwtc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006575; c=relaxed/simple; bh=WVxhqW/nn5PajwY5XrDqoqMFLfwU8BPACvrNIjaN9C0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Qonf+S2oSnJM4sKsw1iJbawayrBoFN67t5lgn/XPgNAnhQaOamaXZMgGjb6Bkh7SqwKjii4cbU3wZ9BnoaBLgq902IqViZJJg+RUjWWnTSOYKoxN5aLHAa7dhqOycbyZ6gyHGrsglKSPRmsO3Yh8bqJYjvUAQiuTyWTqTv4YilE= 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=ZzNV99pw; arc=none smtp.client-ip=209.85.210.176 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="ZzNV99pw" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-7179802b8fcso4380335b3a.1 for ; Tue, 10 Sep 2024 15:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006573; x=1726611373; 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=CeSGQFthD+JPD1wVuC9PwgsK3RUFyGiI0SGu9xd9Ivo=; b=ZzNV99pwG8XqTIFy1henZPCUSDIvwywD4jA97Cafiln7e5W8s4oGU2X/6Sp1FKTLYV 3V2hIgELY521YwTlOesSeX4noaA87yXq00QJBmh595B16yivDI8SxQZzoGz8USK+30qm /iSjrLKEiYkkrAxQYZ63WMRxOaTs36Enpi2OolbylNU2jmfAipavhntqpOfkN4D/vX5H T84f38oh7jEX4wH6LQSk0wwZgbCFbAcI2Phu3KxbQExxVg2VDsThiCtFEZ1M+v11suc2 A0PVrhDRvUeLJr/ipRkNRCsH4+VXW6RaSYnLnEK97+kOF680XTaoBNSM0p+rXDvpjCTd 0bWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006573; x=1726611373; 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=CeSGQFthD+JPD1wVuC9PwgsK3RUFyGiI0SGu9xd9Ivo=; b=K9xtJSPAMmzyL35zqe/ltJJbTwg8cOAxemUjXB42SUVFruEd0duqcAFdUwh4Bwg5oM 0LryhNB6UFKUlbEU8aOvTcI/aN201iZD8nrilW+pGCwpnLVTbLUZpVgwDVdt1vA0ghui PyMEtBwJa231ptgpjEzhBaPY02LjoJEg1k7kHpjE1mSnYyDVxUItpXXkH3h9tIkV+b8L XYFHbLJ/AJRaZUfsaFdjtNqajKLqj1q9JB2kA5rrCdhaF7sw86ra9KRUmvYjWigyD+G9 23Y7+DoKneEE0LcKtToK/Ct3gtlh4Tplc8MJ+rjRy8m4fw6uY+1wCwOS8h8s4BG2hiKB Q+MA== X-Forwarded-Encrypted: i=1; AJvYcCXhr4EQ1XcyZwdSI45egkIwT95Ov3SdwgBFhO3NcOxRUuAmsgufwG+WNXp9eFNRL1MfeKc=@vger.kernel.org X-Gm-Message-State: AOJu0YxgVf2u7UMlpXiHetAMze0wdEH95Zqmnuvaae0fzM/0Xrc5d3M1 F1hA4xGCssHj1HAiFPxCz61GAShwTyRH/RRg7IOj/TTwc8Ct0ixNSjltXW/FwwY= X-Google-Smtp-Source: AGHT+IE7453ZnoDagMTvxw086SwFz1gaHnvHw1jrau87eetjbI39fjMwGBgCRYADVfAcbJ/ECITkzQ== X-Received: by 2002:a05:6a20:c703:b0:1cf:590f:ddbc with SMTP id adf61e73a8af0-1cf5e0b7845mr3064462637.18.1726006572754; Tue, 10 Sep 2024 15:16:12 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:12 -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 01/39] docs/spin: replace assert(0) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:28 -0700 Message-Id: <20240910221606.1817478-2-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 --- docs/spin/aio_notify_accept.promela | 6 +++--- docs/spin/aio_notify_bug.promela | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/spin/aio_notify_accept.promela b/docs/spin/aio_notify_accept.promela index 9cef2c955dd..f929d303281 100644 --- a/docs/spin/aio_notify_accept.promela +++ b/docs/spin/aio_notify_accept.promela @@ -118,7 +118,7 @@ accept_if_req_not_eventually_false: if :: req -> goto accept_if_req_not_eventually_false; fi; - assert(0); + g_assert_not_reached(); } #else @@ -141,12 +141,12 @@ accept_if_event_not_eventually_true: :: !event && notifier_done -> do :: true -> skip; od; :: !event && !notifier_done -> goto accept_if_event_not_eventually_true; fi; - assert(0); + g_assert_not_reached(); accept_if_event_not_eventually_false: if :: event -> goto accept_if_event_not_eventually_false; fi; - assert(0); + g_assert_not_reached(); } #endif diff --git a/docs/spin/aio_notify_bug.promela b/docs/spin/aio_notify_bug.promela index b3bfca1ca4f..ce6f5177ed5 100644 --- a/docs/spin/aio_notify_bug.promela +++ b/docs/spin/aio_notify_bug.promela @@ -106,7 +106,7 @@ accept_if_req_not_eventually_false: if :: req -> goto accept_if_req_not_eventually_false; fi; - assert(0); + g_assert_not_reached(); } #else @@ -129,12 +129,12 @@ accept_if_event_not_eventually_true: :: !event && notifier_done -> do :: true -> skip; od; :: !event && !notifier_done -> goto accept_if_event_not_eventually_true; fi; - assert(0); + g_assert_not_reached(); accept_if_event_not_eventually_false: if :: event -> goto accept_if_event_not_eventually_false; fi; - assert(0); + g_assert_not_reached(); } #endif From patchwork Tue Sep 10 22:15:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799372 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 B2D201917E3 for ; Tue, 10 Sep 2024 22:16:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006578; cv=none; b=Sk7LBjiLT8uPJDcKizYigWVOSmo4Vsl4z2X0fOO/IB7WgdjNWZKI7w0bq6P81xb+Epy2HwoIExTS54Pi6L8GNu1V+j8V/yioRxbvGNJbKlGujRcwuo4awG++SqpYnrKxpl6ii7PRSKOhsyRyp5tY835j1ahcyi6jVyqnts3MsPg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006578; c=relaxed/simple; bh=ZkDsuG85OWuOdALFG2Ls+wju070k61pXQlQqoNPYM+I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tGpMaAlVZ0jwkg+VIb5lL5WEomBmmt/vM8Xf2CBh5jxhsOlyQ6BlNouJdVF5UlT1HxICsAzOq15eTdodZyWK0ulLWlhWlB1XX1C7Ii4xDwqAOaVSyaY4klDK9SC0ll0wx/pZ0cAA182Ut6QiGsVAGpCUen1vDK8BzrSaDl+C8E0= 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=Fs6RKG45; arc=none smtp.client-ip=209.85.210.182 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="Fs6RKG45" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-718a3b8a2dcso3687334b3a.2 for ; Tue, 10 Sep 2024 15:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006576; x=1726611376; 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=BIrX6LSYcWKQ7NWgVt5fl+kpf/h4MdU5BhontmNSP2g=; b=Fs6RKG45tzHC4QTivJRTMS3wQyqc8wUaRqnej1CCAl9rCFNzC+mPR7dmD7sbgytI34 MIFBMc3T4NeOehikDXiZpqJxNTqUxDGpuRNaQqMpWGo28Ioh6yIwHLiMsVOr1x3nFYAu 0oMrd+GiRhbBT6R5F5blv8vJnMmgWraU0iMWbBKi9THa2Ef9NGACZs5FjCQuGowSs3XV Z+E+r5k2F6fqOV2hYBc2rQd2QJV9mBOmc15hI3ulHnVN+dU6eseFPRBJ/j/Gk3gGwNbB kASPoRFL5i/+k/qf+U+jr+XK1Pqah595IN1dMHnF6MrV3+B/1Q4lA3vuzCCcjOhb1E+i JI7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006576; x=1726611376; 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=BIrX6LSYcWKQ7NWgVt5fl+kpf/h4MdU5BhontmNSP2g=; b=JeIsow1IZkRucGTEYnN83ivsk0roinxizZQIGs2HbtBFDNQ3qLToonwnUc4yWnjGuk uhtuRMy1AUIHBmyvw94etBkReFoQNSY1tC0Vzw2KivWJMs1XATAmrRXtQvDmVsixwUOj rwU10kiOYKp/oJXxC82jyswX70QSJ/l+R5ravhHoGrjMObxNLjZMBF8tFMPJw9XuZ0hA nPzGBMlWLF+n0F/viyGeTOvWAmsbUzNwSyBo8FjehuuepYvF8LFVeIi6hWJIv1+pW3ju BFZkS/5Fvr8mNZjrFb3dZSQHfqOBiw1L+0b3N+hR+bExGvUEKZj9nUoqj2wosO2pUKlr PB7w== X-Forwarded-Encrypted: i=1; AJvYcCX7RuVLZfxbbz7H4Nol/rT+woMfi0t6SmF8CcCJ1jvVuzihPkJ7QxFVK2gTJw0fygOzAeI=@vger.kernel.org X-Gm-Message-State: AOJu0YzV39eiD4tiriB7LHgiaGp1w0yFgGOPzs7lNNcLxHXMs51cGOtK NlK/SySbIJSydW6dZj5jpLE5YlCxoJCB+k7YKpmGdkPmG2olHcnYUFVS8whJDXA= X-Google-Smtp-Source: AGHT+IEi6PPXSaCo/MzwCiwcFBkPDWeKr8hyR+jrhEtygwmYUnxCgU5X+xKQ+1rCwoEBFzE8VZ/xcQ== X-Received: by 2002:aa7:8883:0:b0:714:2069:d917 with SMTP id d2e1a72fcca58-718d5f0fcccmr19299081b3a.25.1726006575824; Tue, 10 Sep 2024 15:16:15 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:15 -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 02/39] hw/acpi: replace assert(0) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:29 -0700 Message-Id: <20240910221606.1817478-3-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 --- hw/acpi/aml-build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 6d4517cfbe3..006c506a375 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -534,7 +534,7 @@ void aml_append(Aml *parent_ctx, Aml *child) case AML_NO_OPCODE: break; default: - assert(0); + g_assert_not_reached(); break; } build_append_array(parent_ctx->buf, buf); From patchwork Tue Sep 10 22:15:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799373 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (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 DB2BE1AC430 for ; Tue, 10 Sep 2024 22:16:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006580; cv=none; b=eatqY48zIx1dwmcundHYoaRTRpJDs0mnfYBMpeoxAF8kjRYHwxjPdnZaK8M2jB7cVC/de+k7Dy8aZGYpnW9/K7Q+Vbz8qWqfHEwK5TgnNGDOhjiDgkJeSGeI+1ZgyuxfT0nmBSPftst9+EfaeX2Him4PffuXHFduPYbkPV5qoc8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006580; c=relaxed/simple; bh=vQXtdy01NMoA4JiKiRK6sCArFYeqcIuud9ukQpFEfcM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gzZtfwyibGMGh4B0F+nKBxa5qI846FiKsPQND+MLdrVfZqUDtJKJaUPOPVDAfuOCixHJEEUnL6Ys8RhTJlT3GSEet0LT3oQB98gD6HC4AhJamSlmXQcUT6A/Pg+hA/Qw2HW8Mx5DfPj9LW8PicHVUGeasYH2rEH2sc1k+hHsRVM= 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=bjNqxyHZ; arc=none smtp.client-ip=209.85.210.171 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="bjNqxyHZ" Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-7191901abd6so124454b3a.3 for ; Tue, 10 Sep 2024 15:16:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006578; x=1726611378; 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=rtg/fsM266byh2SMTyHSqLuDJEbiLWNPpLD5jMD37ko=; b=bjNqxyHZuV/IGPj+1i8nkiKzPNtqTymZq0DTqj9w0Ev4qFlGKtdY0IJraiGNO69OJV GwtPYATRuMFMJ1DSWWaCn+mQZIQRbMnY+fnOrZMODeBKMBJjnSWu9/jtZIljL2E6ZpY9 nCukBDFdf4WzbHTV0yogLNMZ5eDELogdlbHfg7EpueriDYf5HxoqM0qPKfS9Ra83E88h f2ctl4Jjd168wQKufB5f2Jpm0b/QBAB4Nc+EQliBAc0pUQuwnD/dYdTysdLV5597cljh Zi3HOs2osIJ1yzgQlgK94kLLswPIpzYlDmV/+qofYntUVGuMEjsW1X1Z/B0dQd1VLY+q BHXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006578; x=1726611378; 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=rtg/fsM266byh2SMTyHSqLuDJEbiLWNPpLD5jMD37ko=; b=aEEPXwx0gLqkno5XossOKc294AuNnXIGSzpkAWoVzxvEg5nKHZg+vOIAyIhmoFAuCQ 6x+f5hEowQx1AKO3wn8aZYs4R88vZVbCTd32mBkK3Dpe+JQ6p/D76AIz4HNKRhl/Wx02 UDKCY2IMnht36bfM7wQL4o7tqisRJmEQdHhC0O/EQBLEtp/x/4EUqBt8IOfU+oTHoSl+ V6MECOT/HfB2geFAG0r60phGa+LIZvwZURQRHLZLeWNv/MHYQW6z0obywKtAaQLrUxfx AOwJwCY8DPlKOuDMxyez5OHiXwrWXW6n1QeyqA8WSCorjjhFW0JPIRjTGqSHPYIHt2JL AFKg== X-Forwarded-Encrypted: i=1; AJvYcCVuSXAGRcclLllzH8FSaOnKG27rsw0VCwhazbJBRAjzgvJbjUO3ZmfcHYEfIP0PDlPhlSs=@vger.kernel.org X-Gm-Message-State: AOJu0YyzDmQ8u9zx+e2gspsr6IxlkHWlxhYX3DvjdCDn/g9H8bBouV5V E8cJCcNcbMxK10SAp63rgjnuhsW5Z0DbfRIpNlIQA3qDA404GW1Zv5k99rdJHjM= X-Google-Smtp-Source: AGHT+IHWOSynm87dcJ/e3spTuAWJklvasOkQ7Uz80yLy824x7t0cXJiqR3CMOljYmSMNtVZtD8XWTA== X-Received: by 2002:a05:6a21:b8b:b0:1cf:51a1:8e89 with SMTP id adf61e73a8af0-1cf5e1c5ef2mr2725772637.47.1726006578083; Tue, 10 Sep 2024 15:16:18 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:17 -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 03/39] hw/arm: replace assert(0) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:30 -0700 Message-Id: <20240910221606.1817478-4-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 --- hw/arm/highbank.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c index c71b1a8db32..72c4cbff39d 100644 --- a/hw/arm/highbank.c +++ b/hw/arm/highbank.c @@ -199,7 +199,7 @@ static void calxeda_init(MachineState *machine, enum cxmachines machine_id) machine->cpu_type = ARM_CPU_TYPE_NAME("cortex-a15"); break; default: - assert(0); + g_assert_not_reached(); } for (n = 0; n < smp_cpus; n++) { From patchwork Tue Sep 10 22:15:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799374 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 2A5B61AC450 for ; Tue, 10 Sep 2024 22:16:20 +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=1726006582; cv=none; b=aphOr0Ul+yh1nIczqhY2lnETAM42bDPUU67gYPVxaryrw4UB8Jptu94PWMmMyrr8f4cdLHKnjk5pdWH0uoTno+A9F8vGYNBG0YCCg8sA9JFYrIqbD/UNkGhXVYGCBPCto4yOpYpLEql8eAF5pgqofACGzta+2MWfKsbNNwKcKDg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006582; c=relaxed/simple; bh=EUOtKks6ZVWI73P5MJPZ+0UG3U4gHSXjeFlJw5Kc3oY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=T9gaF0fRtbWnTChn4RWCcqKWRZkvP/NpEtBLq8N14FCMKAQwbKPm911lg6Cp5kWwG6NLXUSUqRMiAvsKslQt2+gPFVktscVICMGEWkj7PYTvkRYhfcevBAO/e02MKrjk2tBEn8wFPrPj1oMCZMoKGFrc8XkkrCgbLYkVOT3tH/8= 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=AhhTXGGN; 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="AhhTXGGN" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-718f4fd89e5so1253069b3a.0 for ; Tue, 10 Sep 2024 15:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006580; x=1726611380; 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=4bb0fjpC/uXLETkc56Hcik4SHlsgHHXUYkY/bpvbVpc=; b=AhhTXGGN1O8umOEpK7dthwO5m9ShlrMdo7I9JeTCmNHN00fXw/JZesREGq+l9l8BM6 c68WogWG073k6n0zhsco2Beiy5tjF/g64Ba+hya5XonWFzkRSM6xNcM2g2CtrJJw7axb 3+Fv+SZsIrJAGVsGiQPBUyP4buasDVLuVMoo5l9UEEac82cISjy9phyVEqrwEyRkxHGF AXAvzl+xDPEbSGHd9krjPX2SOEo5ZQivx/sByJKSt4eGEAPg8xmBS7bcoAUPXSBZS/Bf +nwJPOpR7PT1HmJABrJnn5mxPsURj1fTUU1nIImgM7tzFIov+bxV/4AZhkkQdL7CHZ4x y/pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006580; x=1726611380; 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=4bb0fjpC/uXLETkc56Hcik4SHlsgHHXUYkY/bpvbVpc=; b=LN1fULFlIR+MC5sR7HLgzpC5+wWnyXVswox2Lgg1ygz8rLGJ3cRkm04Yxzdw0z9/oJ uGkkN7Cgx6mDzwUmddT3aCOVNd7rEJ3aKJOvRotgo5fa3iWDa17ZlvA5bi0dOY3EW7bz lYsDe9+gbWb1Hco0ppCL4t8vVlZP951nd4Ys74UTYjRBrAhWDmg6bafBO1ydgs48Sl1J kW8kK6WZxEwkz0I/+vR41jbFYeJEsVlS4CJaeUnDunrVTCoXAKSR7BCk64IAqQLUNdXA gZ38XGzlJ2hDX8zzO8VclHYk+tFwJX8mCeG8ti2E2KeEAmPgW8px24LtDrJg4JPhQp9N 8CMg== X-Forwarded-Encrypted: i=1; AJvYcCXalQkZQAQxl2gCuEsIIxheLkRWvTw3/KOsAgIoaz1dR8AThls067nJPtkeQ9tUIYJm/uc=@vger.kernel.org X-Gm-Message-State: AOJu0YzmP/YEFaiyroAafC+qFM7GINqteyLi80gB2fn5jH7/pJYYC/Pp sJXo3szSlWoQv96y1jTYTaShA91hoduVUYs1RK7JiP9V9YS9jg2JBSjP+5EjNcg= X-Google-Smtp-Source: AGHT+IFM7yoNH8xDo/vMJeUSRp0S9a/uDDcAvMhTSJpgsleZma8JtumByGI1crPqNwfnaO/FhIWNLQ== X-Received: by 2002:a05:6a00:928c:b0:714:28c7:2455 with SMTP id d2e1a72fcca58-71916d950a2mr1273190b3a.6.1726006580270; Tue, 10 Sep 2024 15:16:20 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:19 -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 04/39] hw/char: replace assert(0) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:31 -0700 Message-Id: <20240910221606.1817478-5-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: Philippe Mathieu-Daudé --- hw/char/avr_usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/char/avr_usart.c b/hw/char/avr_usart.c index 5bcf9db0b78..e738a2ca97e 100644 --- a/hw/char/avr_usart.c +++ b/hw/char/avr_usart.c @@ -86,7 +86,7 @@ static void update_char_mask(AVRUsartState *usart) usart->char_mask = 0b11111111; break; default: - assert(0); + g_assert_not_reached(); } } From patchwork Tue Sep 10 22:15:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799375 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 36B351ABEB3 for ; Tue, 10 Sep 2024 22:16:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006584; cv=none; b=gJkoO8uiKJEs4AA7S8BIw7Q53f2pX56F+qQsCw6QBVNLopM1DDBDYVszjpZ/sScEawbAXE2xmQC/danwXQKJQe7bXp5qXU1k8u+skiHtP2+Jz6IkGO6UP/fUVEMedNHBmWxDP++4w9UqsMB2Qcjc0LZthInTKsy8u13g6wuzJDU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006584; c=relaxed/simple; bh=MRe9PQTAv9qPdjpNLZJUkYhfIrlDNC+Nd4rxUtgNywo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DMeayDXBuoc0kR39WKhY49pXKYy9qEmD/0nisEGbJ6mdwPNTkZ4XGOCqd1IV5xrP+mrGd3dc/ciHu8QtlXYoCJbw/2zKqQrm9c5q7uQrTVgLU2PaxuDyVIQmvr3+FIHNcxGbSkICYZBetPd9blHhUFXyECbOsyLBK5DI/QuvGsU= 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=nkDpA4oL; arc=none smtp.client-ip=209.85.210.181 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="nkDpA4oL" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-718e1ce7e84so3015519b3a.1 for ; Tue, 10 Sep 2024 15:16:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006582; x=1726611382; 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=8E41vvCuzFfFnWNVteAbOukx+NZntvmSmJeEnMZhnio=; b=nkDpA4oL1g4Dd5iRyEk7fNTXg94d5WGfSXNxjhm5aIPjVgdY9W/AjeVkTkWUCpzWLh SM1jj4aRLq+gYH0kQF/CD1wYopEZ5F2174i9o1NuY6Db+yMCX6gXBNjlm/VnzIucLUr4 zlY/i0tCdWzJOMnJfgySmOxPwsyMcFUrV4iwQ6k30Y7l7hCZ4L6QEILK2Y8h1BzfRP05 q9N9yjjLzIgKVajuWbfkfsIF+D8pyc/jok3saqmkC67v4bT1cV7+cshRxY0w2Tbn/p1T UJcp/IEvxS83mzuK0XtsQ++iufcKxWfCMjwVHmFEJ4spLYdAHLJ1Z5bvwGdwCEOiXfXc gBeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006582; x=1726611382; 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=8E41vvCuzFfFnWNVteAbOukx+NZntvmSmJeEnMZhnio=; b=IHW9bzUi5yN62XtauttF8ep3sWn57J8q1Fc5PgQn71jEnvB+OYNZKpOGTOwwsCPJuU 2+iRa5lMJ2g2+uxGqBDlJtOvmY6H0GGPwLYBV6OD/OPgmUCVU1AAVyuzSt/OELgDllJX Bbf7EImj2+Yi0pb83363PqsAHTs2kbqgLHYTOlO+MwSlOQtiQ6D4ulEcmOX1TlAJgOct HtHIL1ub4pSUn8SrQlg1brjhOpApeDrBOm6HcADqifI/b4aq+YEIUiJcfk9DNiwzRTLn KidLzorILxfvOp+OKkeKHYmycm8sc4PNPrOceN1H/k7FCLSdTZVLofgDc1UkqUeBy1FB Wb7Q== X-Forwarded-Encrypted: i=1; AJvYcCWXtPC3dEiHh9IZ3ia14OS/LIjXyyyuElvDxhvPNKKhMFM6SLaQ5EYrs4ZxUvXJnWk1Qws=@vger.kernel.org X-Gm-Message-State: AOJu0Yxi6WX5O9tsmmtT0+pQRdQC2qwDWdCPxOYsDhM2mRDi+J5wDlfP nIpPC+Iam2aB5l9l2UM6zkt+Tdy0Bz5C3qVOtpk7FU7J5X6mo3cdre+dJ2aHZfE= X-Google-Smtp-Source: AGHT+IEpm92TEZ7l/i72e03p8S1n7AWDI6NeOOFfrUtGzNn7Eo7pwNzB53KVkJOarI+xWw/0AjoAnw== X-Received: by 2002:a05:6a00:218e:b0:717:9768:a4e7 with SMTP id d2e1a72fcca58-718d5ded0acmr15822990b3a.2.1726006582456; Tue, 10 Sep 2024 15:16:22 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:22 -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 05/39] hw/core: replace assert(0) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:32 -0700 Message-Id: <20240910221606.1817478-6-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: Philippe Mathieu-Daudé --- hw/core/numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/core/numa.c b/hw/core/numa.c index f8ce332cfe9..14283293b42 100644 --- a/hw/core/numa.c +++ b/hw/core/numa.c @@ -380,7 +380,7 @@ void parse_numa_hmat_lb(NumaState *numa_state, NumaHmatLBOptions *node, } lb_data.data = node->bandwidth; } else { - assert(0); + g_assert_not_reached(); } g_array_append_val(hmat_lb->list, lb_data); From patchwork Tue Sep 10 22:15:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799376 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 957D21ABECE for ; Tue, 10 Sep 2024 22:16:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006587; cv=none; b=b7Vx3lZywO432AoYSHVFzmsPdg8mifPOy6DPi0SmnF9ekjx6oUNjWk13yZzZJ+F1KsZXRA8zV3XsZQofz8XjY3N0YwxwcZcaPao3FOszL/0nmoatWBSdNYxPQC5/QlxNKtpwrIM2Q1X/NjAtutLfOZdlIbWAcqVtbahCVNFHQFc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006587; c=relaxed/simple; bh=dG5ignWIfxWAaS30drG6W4hSlvXV0DyVuyVMpWP5HbE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FftwOTEGOQvazH28Qv3fbZpRkwVuuy6eru+whcteOsFpYtiJcmwZ9hdf6ArjEHuRpbV7DUWLjVYbWcwS1VQFwNuymq1BVHNf4ec29O7bcgp7jh9A5v2Mfn91FopugGBNysS/LHDH76Py/twhOS93m96bhVw7UZtzj7Fl6+F6618= 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=U4L4bK+R; arc=none smtp.client-ip=209.85.210.174 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="U4L4bK+R" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-718e11e4186so1244153b3a.2 for ; Tue, 10 Sep 2024 15:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006585; x=1726611385; 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=puqvVpFKVlVCK3CqflCQnP9TK7q5f0hM5PCb/iix3yg=; b=U4L4bK+RTpnj/o2R4sV/dk7mTqSLUNjSn8hqWm0fy7wtnTsJPutukjsD7X8QyOmmit XchnElwgKQDPKd/zdpk8s89NSmaE96XXv/f1rjzRIa/j9rbRlj7fKK5Zt/H5SGUjz4sD aAERYQRtEDLz9MoVm5ThVlyOlkw7zeaSwnFSDV+dMgRy8/D8tFWR23d/XL/pbN8rLLCq q+dLQlQt5x0zQfomihPnJ+k+JON59LCGdVRzXIZp4LpEFXIPRQKUYo6lZ8imVtDWkmSJ hgGgN4oji0bnScD1vK4g4xRnqeB6Apzpt0xKUwBfsBXGGHzjdB+cBpEUtnpQqoF0DgUF xzRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006585; x=1726611385; 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=puqvVpFKVlVCK3CqflCQnP9TK7q5f0hM5PCb/iix3yg=; b=pdKqdHwNXs3X709SwG/DDGn94KPEpHslyA1GJ6CNaD8opE/pDS1wCw9TVX3xnKMWND izXHBlsf73gTmVF/SQql1IB3k20h1T4opeLvVb3E0I1Emswg7NK37kkZAAjjFX4CJpo9 SElnIgpEakipWUDIblgAL5XB0I1JToNK+8RVOEQ/CDTxOu4aNo5t/AM9bL9/k45dQ4yN jKu92ySnnpB7dmzV2U5qCuzMIgTCS5O4oAV4+omDF/tmmNGtigrmemRAxcmfn1MKGhff L4Ed0sGD/3Pww970Pd18/af01DYfvYGLl2juiH6vgnrUVCfY/VED2Gp4gDdtVeLiDg37 mzew== X-Forwarded-Encrypted: i=1; AJvYcCWovvnjGOX0U32CoG2fPyPPNg/82S1D9fIk+5g98jbr3a9vV1kvVsW3Sjc/44/KBm0SQLc=@vger.kernel.org X-Gm-Message-State: AOJu0Yz7sn07sd3vup6UEDKizA6ZXE9smVDCTTqI0IjsfxkFLfIhcIfO yS+UPDnz3ZwXATwbCLiuH92Acby3eqUPh0CWTmYy2XCEw3jbLKwypv/KAvdzHC8= X-Google-Smtp-Source: AGHT+IHIvrzvH/+9jVryyqHImeYb4fOhg81YBUc0CfmQo7SIWh/8KSDCX9LvH03UUnVz/fF8OPBLeg== X-Received: by 2002:a05:6a00:8586:b0:717:8aaf:43be with SMTP id d2e1a72fcca58-71916baea16mr1226278b3a.0.1726006584757; Tue, 10 Sep 2024 15:16:24 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:24 -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 06/39] hw/net: replace assert(0) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:33 -0700 Message-Id: <20240910221606.1817478-7-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 --- hw/net/i82596.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/i82596.c b/hw/net/i82596.c index 6cc8292a65a..cd416a00ffa 100644 --- a/hw/net/i82596.c +++ b/hw/net/i82596.c @@ -282,7 +282,7 @@ static void command_loop(I82596State *s) case CmdDump: case CmdDiagnose: printf("FIXME Command %d !!\n", cmd & 7); - assert(0); + g_assert_not_reached(); } /* update status */ From patchwork Tue Sep 10 22:15:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799377 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 DBC8C1AC8A0 for ; Tue, 10 Sep 2024 22:16:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006589; cv=none; b=GMGm4DuzqMDoBz0BiZXiDUTc0UhjldCIrsSjCCRYqU3QlRHDXEC6Kv0OslpmU4Y2BBTDqQubrL4QEPto+Chfi5LxYLIWgAj4MIg4RhfByxKy0v5lrZjbKlkLxcerSLCPSbfYEGhXA9QiNKui+eWeXyx9z5FXw1BJjGktG1Ss4/k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006589; c=relaxed/simple; bh=RXu8MkbgMXpefN3GL83r1g6q5hFCtAzQ5sTuQ8gTpO4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Pv5uQK5Hss5M8EUyH2D4izijJVbWAH9GWzLfWaoUJonTRMOilYv6gqu2E5fpqG9QNUxVD093c4tlUCPTCpp4OBDwGraEtJfil790y56mFKTYl80f8WwsO+BX2azEt9I3ZeWqIPECtqI5DgKuRDyjIT+dOfLplz50i27x64jw2ms= 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=zuLxXrIn; arc=none smtp.client-ip=209.85.210.181 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="zuLxXrIn" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-718f4fd89e5so1253181b3a.0 for ; Tue, 10 Sep 2024 15:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006587; x=1726611387; 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=evr5nxnDoGKUr/y5uq9IdG4R5sIImXVpCjqkjM7zT2c=; b=zuLxXrInkNv389lRPi4XCeGHSUENhGfST0b0Lm8FXRaX9QtlywxfK+qMRIpxdyBrx2 2Kh9vFrnF0vJ3xPu6EjJYih8JlsqKmH5uuTyiAmjGFD87eaIw246PyBtFt9bYG5amGIv zYEZdgM0kcWlY/oIaONOgRGyYvX64GCnbviC82Xbe8OEuqLsog39Nho+Fq0fGLLEyEby ujrXqbIuwNtBrk+i3X1LFf8I2qmuLfIJcs864uI5U0/UVEsbdOyCJaXQ++LX6I55t8ZQ Gg2qoLxjRyBMjma/XdG93Pbfimnep27huqnUdV4SAj16Ugcogz4LJb2U+31cMCYnaW+P hl4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006587; x=1726611387; 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=evr5nxnDoGKUr/y5uq9IdG4R5sIImXVpCjqkjM7zT2c=; b=QXL3ElTMV7wi51A6RTM+GgOZR9ZXXSNW+SQl1h2W8Gp3Agqxh+CITZshyUkGayxV7m v7uEAfNXADcVgyJ72IVHjqjYe6xTOsC2OQ/3vE3kgTE5oyJaVYTaPbmbXK0YLUDCFOBC i46c9lRZ0oDKbUSdUVsOVrUXyreKHbNzSywfPIeKBt7sYYmTrkGiqlXK3vbeVgC9qBgh tRiJ6tF7PfvMJ+DajR8UcHk7YQ7DNP3X9uF+o4cmOhqVlc0+3QgVLStykDbZWjogJ6Aa wG/QCzj2SKPQkrAL/JC/t70nVxsD0D+lBbQWgxfA4ycSj/ucK2W+d3L6jBb/VW04bBbc /51Q== X-Forwarded-Encrypted: i=1; AJvYcCWDKkjh4ZmsXdiKbSVW4mvhqwpU61BB64rtbbZHBCr7dE0AGHRSL6icEepHQpd9QYhJ1RM=@vger.kernel.org X-Gm-Message-State: AOJu0Yy19wfovcY0qDOZKRuwAT8kOeyzApPpX+2mFfP7UwMTRqq7pKKw i9TPE42njOzZ2IifF1VCf8mzXdMhkxcWpIvGQALinsCvvsiVLXrF1w8zvIxVY7w= X-Google-Smtp-Source: AGHT+IGXKqllEsnkUm0CvfCkcCDSr1DZ+m3eTy1QQa0XwW6UoPGELkeBde/1LfDNQnnnco07gvAb6A== X-Received: by 2002:a05:6a20:214a:b0:1cf:6625:f08 with SMTP id adf61e73a8af0-1cf662514d3mr560108637.45.1726006587131; Tue, 10 Sep 2024 15:16:27 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:26 -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 07/39] hw/watchdog: replace assert(0) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:34 -0700 Message-Id: <20240910221606.1817478-8-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: Philippe Mathieu-Daudé Reviewed-by: Richard W.M. Jones --- hw/watchdog/watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/watchdog/watchdog.c b/hw/watchdog/watchdog.c index 955046161bf..d0ce3c4ac55 100644 --- a/hw/watchdog/watchdog.c +++ b/hw/watchdog/watchdog.c @@ -85,7 +85,7 @@ void watchdog_perform_action(void) break; default: - assert(0); + g_assert_not_reached(); } } From patchwork Tue Sep 10 22:15:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799378 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 BF6721AD3E3 for ; Tue, 10 Sep 2024 22:16:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006593; cv=none; b=VFdafIO0OplWf7lFhcrjZxZzqSxaWaqmIPbi+Y6ZjfS28QADJ5nT3STtZAKIW2jelnO+68oUZAIDklckW7omsw+xd9DLfZ6BSQ+EL1aCB9QNYh25vgmfLEOWd2G0x/KAIALHM/xOLfVWQ/OljZOrjbX577hskXZ2XnL/Rk8sc0I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006593; c=relaxed/simple; bh=fxB8igKl8nhtRXlHFp3cVXLJH563WLUoIrhcnU/BJrU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oxmsu9zoCliz8i0af/1lGZv4qO5/FbCulDF4YkpVjtczZS1hd3g13S1KsBX1GcPxk+FRIyG6JVHO7zYU99o90Z/h5QFU/hUly/aLIxrauo5PYwE1SC6j/ss7N2i2umkt+IHKzK3BTA7Yr3cvu8/NpfozlyEIMtQNlcscjiWmWsQ= 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=yEOspHnk; arc=none smtp.client-ip=209.85.210.169 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="yEOspHnk" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-718e11e4186so1244253b3a.2 for ; Tue, 10 Sep 2024 15:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006589; x=1726611389; 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=gSYhajPs2VsIZSUZF9nxgEDV+zkDqTYhjuMBxS8/VrA=; b=yEOspHnkdNwcpJdJOI56fkBIoWQiebJy+mEK+NkAa2cla2NqejOMj5UKLMrjL3NkGA EnXpFfupDB5ej43OWVzrhp4sgEPHmJEDghCIQKR+1O/LHTNeFqFYXNoKnJp2gGZombir piAMXC01NmRY6GUnlglnmHAJcDfo92XnwlTSxBJYfkm6PrIoEnvS7R0c8GidcjEooksS 1Kg3G2aLSeb7Bz4hWxbXm3nnAdh4Z+6t6hYN+9Bx+MDnhnCSkFiBBhgurCS2+vv6DMHp xE8xI1vVxwSwj0wh4kTcA/V3KP6+qs3VYHMaEt40mfE3cPRPBYZ09Hm0NEnMiT3xobIN reyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006589; x=1726611389; 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=gSYhajPs2VsIZSUZF9nxgEDV+zkDqTYhjuMBxS8/VrA=; b=ru/fWra9rWS2Gn+tooO/yWlmsToKGMqZo8/Je5p6wCodIsm2xveC8L7yei3oyZ22Lq IoeNkpF+ZOQ0mZeW9GREZCdZUEw4F7nQhEy+B2QbmxeZqgiQHb5YfWN+SuPUYVnQRhGn pvW5B8Y7W/MsUd64BNnpv5/1DZJdF8PuTzsLsx3exf9+2oDZHeUtq5NPCj0Eoa+hgKUy FHmCDM1nL1bvFFfF/cNvg8Pi50sCryODGK1KnAMVcVJxdQkAQNvy8ef/L4dm1n6zhvMw 4wDkDEAT1TdC2bqdc4xEob/7lkoQsTB52ohHpLDZmEY+8jWgwl/U9Pf6jQzwD649VVTr GOEg== X-Forwarded-Encrypted: i=1; AJvYcCXt3ZaHR/kUmOHfIdC9pWNy/HXUSg1/fLvDZCariQkIsyra4XIWT3h8ux9qt5BYvIlG7L8=@vger.kernel.org X-Gm-Message-State: AOJu0YzyNTYx80887n0sPi7tVrft/xPAi0SUodOU7Gd9t+jTRca+lyxT RYqZVaPcME8JqM+/gaCxxigoRtw3TSDYTIvF3jhUqPjlEt8mcnwKWMv1fHg2GiU= X-Google-Smtp-Source: AGHT+IGxt2HyeKoY0zj4rIpopJhEdomsqdPT1qYCGNgIZHRgnvsI9GfeO84x5fyCboG/E3PILzkmEw== X-Received: by 2002:a05:6a20:c703:b0:1cf:2357:df1a with SMTP id adf61e73a8af0-1cf62c8d808mr1658573637.10.1726006589396; Tue, 10 Sep 2024 15:16:29 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:28 -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 08/39] migration: replace assert(0) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:35 -0700 Message-Id: <20240910221606.1817478-9-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: Fabiano Rosas Reviewed-by: Peter Xu --- migration/migration-hmp-cmds.c | 2 +- migration/postcopy-ram.c | 14 +++++++------- migration/ram.c | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/migration/migration-hmp-cmds.c b/migration/migration-hmp-cmds.c index 7d608d26e19..e6e96aa6288 100644 --- a/migration/migration-hmp-cmds.c +++ b/migration/migration-hmp-cmds.c @@ -636,7 +636,7 @@ void hmp_migrate_set_parameter(Monitor *mon, const QDict *qdict) visit_type_bool(v, param, &p->direct_io, &err); break; default: - assert(0); + g_assert_not_reached(); } if (err) { diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c index 1c374b7ea1e..f431bbc0d4f 100644 --- a/migration/postcopy-ram.c +++ b/migration/postcopy-ram.c @@ -1411,40 +1411,40 @@ int postcopy_ram_incoming_init(MigrationIncomingState *mis) int postcopy_ram_incoming_cleanup(MigrationIncomingState *mis) { - assert(0); + g_assert_not_reached(); return -1; } int postcopy_ram_prepare_discard(MigrationIncomingState *mis) { - assert(0); + g_assert_not_reached(); return -1; } int postcopy_request_shared_page(struct PostCopyFD *pcfd, RAMBlock *rb, uint64_t client_addr, uint64_t rb_offset) { - assert(0); + g_assert_not_reached(); return -1; } int postcopy_ram_incoming_setup(MigrationIncomingState *mis) { - assert(0); + g_assert_not_reached(); return -1; } int postcopy_place_page(MigrationIncomingState *mis, void *host, void *from, RAMBlock *rb) { - assert(0); + g_assert_not_reached(); return -1; } int postcopy_place_page_zero(MigrationIncomingState *mis, void *host, RAMBlock *rb) { - assert(0); + g_assert_not_reached(); return -1; } @@ -1452,7 +1452,7 @@ int postcopy_wake_shared(struct PostCopyFD *pcfd, uint64_t client_addr, RAMBlock *rb) { - assert(0); + g_assert_not_reached(); return -1; } #endif diff --git a/migration/ram.c b/migration/ram.c index 67ca3d5d51a..0aa5d347439 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1765,19 +1765,19 @@ bool ram_write_tracking_available(void) bool ram_write_tracking_compatible(void) { - assert(0); + g_assert_not_reached(); return false; } int ram_write_tracking_start(void) { - assert(0); + g_assert_not_reached(); return -1; } void ram_write_tracking_stop(void) { - assert(0); + g_assert_not_reached(); } #endif /* defined(__linux__) */ From patchwork Tue Sep 10 22:15:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799379 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 BCE961AD9CB for ; Tue, 10 Sep 2024 22:16:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006594; cv=none; b=l8jRBlKmgfxzRPp2b9P5yAGVcxyXxzbAaKUGM8Sgrk3NWlqN9Ja1H+bnrhACKcBQMVTAALN0EpPw4OtBtZSp3r+CCj6zYYO3wiSxzDCxgELnEIXABpmkEDiu/vLEzpI+2GX0AkAByJFipcnCZS/DIxbRJnlZQCYsQfClbNZf044= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006594; c=relaxed/simple; bh=qMFk2adhkTggouNUpDnZWkQKvWmYLwBxzhoxE/RqVzA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CqrA9O5Pg+m22D7Y/gWv64mGRMg/zKo2Tyu8rE0QOr5EZluaeO5iy4e7gOZzs8O4H1YuxyiOGVn6rKepMIstmhYFWSuumgeMZQX/i+zr6wba3wKk8lqE/kKv10YnQy8LPDDfTenuJ4ZZG2MHVOJEm4fx4kzRQm5LHVf9H5kTso0= 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=Zc9x6teH; arc=none smtp.client-ip=209.85.210.177 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="Zc9x6teH" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-718d91eef2eso193002b3a.1 for ; Tue, 10 Sep 2024 15:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006592; x=1726611392; 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=W5hvV7fm4k2lFXirrgZp/rTlQTvUf+N/hoDJJrlREps=; b=Zc9x6teH+cc32v+L2jzu7bgy5waRFHiXZErrGSGDS8DqJ8bWzDLw3ah6CxUgZcevuq C4zDWh72jJB4vi2p1qEwbOW2mXEKjwIOtmEQzISoKhnoTEndnNlRL2oP0PnywY3d3+WG fU9JSV9yGoF57wFJssm9xNhDf2yZps38hvjOlkUFIDUPLAQwGaoKmcBxVJF73ie6u15I 9/H3z1v4l/iinV/pjqqJu9AtD3ru4FnozAxvOoFopGWB/EFtyEwUwhKObS6+4oYbt4xC sO3c0Lo4x77PC33JZn4jM2YewGDmWV9JkF5CqDQnQ+gqPnSQIVL9A9R6eA5Hn4ZNd6xh qxkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006592; x=1726611392; 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=W5hvV7fm4k2lFXirrgZp/rTlQTvUf+N/hoDJJrlREps=; b=TA+EWCaouCVpq7UmaufRdYNhEGERxzgwWieQgytIG+5ZjJaAIsmxNfFoKxOYxMKm0c LWZXMjdROge++0TyvbgfEFSaOjd86/KjnYbmATfRBeJ/8pqgy20qmKDAj4XVjsJFqBxt Q4V652AKFAtBtN2nDmrRodA3tGy4PR/29WKtSawgmC9fotxeJvFgaQTB8kckdifxI8BA 5SbpiU5iqKg/jmj5bCv1oKjXfMJqabocDjFcyqxNsCNKuKFAlMoJo9tbmelKEcffeT9N b/SSiqyANUI4Q8s3dvslf6uX5/Ea7zzlAxqENFyQbnRmlI5fLAP0MLd7XqBK0TsPTool 3VAw== X-Forwarded-Encrypted: i=1; AJvYcCX+ryoZKEGT/zyBYZa/qV5bX8Ke8IXTWN9vf4zQxSoYPOe3zaWrOdJtHJsR401obHlSICE=@vger.kernel.org X-Gm-Message-State: AOJu0Yx920Co2cmzdyevo7UtJPPIgVZPfhsWpXx49zVH/U54+E89eW9l l32hdphNtk6bc3KbGDLl9Wm7+d84uKiYljFkvLxOFfkrVxbTwgGYOnTT9uWUns0= X-Google-Smtp-Source: AGHT+IHrtwn2gYefVYx/2/5eCHyu9r4kicYal1I+8TgQBE4ci3czTkRyYRsTQrsB0YAMlykwKK3uTQ== X-Received: by 2002:a05:6a00:2d28:b0:704:151d:dcce with SMTP id d2e1a72fcca58-71907eb69b2mr7001325b3a.5.1726006591899; Tue, 10 Sep 2024 15:16:31 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:31 -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 09/39] qobject: replace assert(0) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:36 -0700 Message-Id: <20240910221606.1817478-10-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: Kevin Wolf --- qobject/qlit.c | 2 +- qobject/qnum.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qobject/qlit.c b/qobject/qlit.c index be8332136c2..a62865b6423 100644 --- a/qobject/qlit.c +++ b/qobject/qlit.c @@ -118,7 +118,7 @@ QObject *qobject_from_qlit(const QLitObject *qlit) case QTYPE_QBOOL: return QOBJECT(qbool_from_bool(qlit->value.qbool)); default: - assert(0); + g_assert_not_reached(); } return NULL; diff --git a/qobject/qnum.c b/qobject/qnum.c index 2bbeaedc7b4..2138b563a9f 100644 --- a/qobject/qnum.c +++ b/qobject/qnum.c @@ -85,7 +85,7 @@ bool qnum_get_try_int(const QNum *qn, int64_t *val) return false; } - assert(0); + g_assert_not_reached(); return false; } @@ -123,7 +123,7 @@ bool qnum_get_try_uint(const QNum *qn, uint64_t *val) return false; } - assert(0); + g_assert_not_reached(); return false; } @@ -156,7 +156,7 @@ double qnum_get_double(QNum *qn) return qn->u.dbl; } - assert(0); + g_assert_not_reached(); return 0.0; } @@ -172,7 +172,7 @@ char *qnum_to_string(QNum *qn) return g_strdup_printf("%.17g", qn->u.dbl); } - assert(0); + g_assert_not_reached(); return NULL; } From patchwork Tue Sep 10 22:15:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799380 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 E14981AD3F6 for ; Tue, 10 Sep 2024 22:16:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006596; cv=none; b=Ts9hrFB0yFDHuB55GfD2l21chKD3MiUM8z6Bug6OKkNb6+ysGqP3AlzuNqgJMCgJQEubwHpwIyMX9c/tje/J5mA7EdXVPjLk5FmFZ1gXXG1a07EzGGnNJmx8UG1gsMNdJkkV6NTjQFYpZ8kEft8m/urH0IFubYrJc0OKzlisTJU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006596; c=relaxed/simple; bh=nCOqM6efIUQGTp06w9U1vJnc3wBf1chvTf8ttPlrj04=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qmimwbuJnWfyVUJQVc6RcapYg1wpOC26LTEePYJ+qZ2r0p+g+Avk8ljx2ocb1bXYu5Ba/60QQfj4bYHn84+DkUeMDSJpBTWnGlUTdPOEbLWXc/f4mPI7TcbZfySdRqp/pmGQVnhXs6tJK0k3//e7GK9d/O8qRAmtJncruYSL2S4= 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=XNZLwZS/; arc=none smtp.client-ip=209.85.210.172 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="XNZLwZS/" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-717929b671eso1162707b3a.0 for ; Tue, 10 Sep 2024 15:16:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006594; x=1726611394; 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=kX/5mXkAZg/T7UoQ7ZiM27KDnvioZeAa7JGin+VRbgw=; b=XNZLwZS/CjIna1C48nZ6jUFsq18fSDW4gsrV2+xj3dRSMHi6gmzq1ZluM/sQrivUCI tB9tXBWeYwReMNgHajtr+ssnn5PCCPgEOe1UxaqlC81DUTzFj5flZo135WLkLFQwYMT9 rxJkCTuw6wV82VVNRiluSyP+JhG8iIEFYAZvUqXp64oyRXUyRG2l9k5MLfdSHEgcWvcG qvb0sXdK+0S0UY+xYP7PI1cGAeaLnzfI9HaxsCUAF4uaSdgpjld9XBBYOrCAfMGR45Vd V0AsC2pntqOF72LX20hz4pmglhgnTWOULXoSE2DyvXbdn9PNyavlTf8OOHYx9KJbGbiV uMzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006594; x=1726611394; 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=kX/5mXkAZg/T7UoQ7ZiM27KDnvioZeAa7JGin+VRbgw=; b=FxSaLiTYSuuK4SgsxUNG/TkEsRhdOhcOpll9Caj8hxQLCF52ep/WekuU7Uuccwuezi Q8Bhji96qQ8hPxYCTP/OTccG0yR30gs0Cz5ItQ9Wk91X2PxqGmQxg03Z4/2OD4zaNQhy 3y2KWyHw+Caf+wdHf5446vJRh5NDu4wgsudcShxrK4yfslHBb4kZFMyzjBSD0eol7qRw jKp/RCiMOSW3q9LlXEavozrKzGrK2Tqb+RkpFYgyxD0DvdX4vYlL+x0FxJcvPUCGyEOw Y2VZbMpQnlNoq4TpZJDltuoPZBP7Gz9gZxLZo/h+etyr6R7Ssh5a8Dgkl7YlDxAVGCKK PeWQ== X-Forwarded-Encrypted: i=1; AJvYcCU+lQ64qFqbaIjxk19X1AufkO2gWaumYPENI7OaCzXWdHFDouow8ZpvUbFFlTd/AgP7H3Y=@vger.kernel.org X-Gm-Message-State: AOJu0Yxq8nKtZLFE/Yg6wzMBj6BT3kxlP5TacXAPhwxg45hBQ+VwpYiR jmyVRFpnrVsjjZbrRcHc1Ca6IC9218IjorciCOlmWz+MJAFLo63LpqPKc1DmHZA= X-Google-Smtp-Source: AGHT+IFH48rM5zeGac+OC8ccWI5NmVtaDHDVn5dEo6JbJqidSyB3SpDh1xyjFSfF49d06KaSKXm8oQ== X-Received: by 2002:a05:6a21:458b:b0:1c8:a5ba:d2ba with SMTP id adf61e73a8af0-1cf62cdaf9cmr1582093637.22.1726006594141; Tue, 10 Sep 2024 15:16:34 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:33 -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 10/39] system: replace assert(0) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:37 -0700 Message-Id: <20240910221606.1817478-11-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: Philippe Mathieu-Daudé --- system/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/rtc.c b/system/rtc.c index dc44576686e..216d2aee3ae 100644 --- a/system/rtc.c +++ b/system/rtc.c @@ -62,7 +62,7 @@ static time_t qemu_ref_timedate(QEMUClockType clock) } break; default: - assert(0); + g_assert_not_reached(); } return value; } From patchwork Tue Sep 10 22:15:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799381 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 6008A1AE865 for ; Tue, 10 Sep 2024 22:16:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006598; cv=none; b=aq98Si+PFZInrW6YApcV3FqAFXtuLTqZQHqWKwUhXd8BnEmp6RA2tkPX2ZIr/Q0Saj85H1CNVoscA9PNM9Zh9eio4p8EU38200TJwXUaKVP5xOSXaOKFYFH9hzG2s/vL+TbfitetakZMQFf5Glq4T9V/JPoQiCExcFHXi6AzKUM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006598; c=relaxed/simple; bh=OTXvuxRxic13QAFdym8Vi9DC9LBg1CiJHj/XKfZdLcA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=R9XM0VXEZuh8vkS8LEq408SwtfRzc7Rpl/b+XWaTfkmN3Tbij4tK/nGndo/R+xfI1JbNmSSzG7yErrBgpdA4qdVaJhbzuD0UnaZhjR2TbAKhUxRNCguWrniEl6RdwnFt9hDeJ9Fbd0YiUEPsWcnDrps+92d8pJffHa3hterBzyU= 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=GugwfLe7; arc=none smtp.client-ip=209.85.210.170 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="GugwfLe7" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-7178df70f28so1002162b3a.2 for ; Tue, 10 Sep 2024 15:16:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006596; x=1726611396; 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=YnSUA+ALMkkUgp2nZaPD+gGHE2tL17OL5Bsrx2xXh8A=; b=GugwfLe7XqcT1eUrUm5kLZvJESbgR/Di8lXvt+X0TsIXg5lquVbX6j6CD7JQADWRGY wJADpoKoRUcAbJRijKGPoqilZFSV10BgXCv3LtzbS8OHJVJOUetadE6vKKNMn0SGkXBL VoX00heeEIe5RgSdsiHFvmtNYrJicDUnI7Pnz4HDVtcjYl849kPPFJR/oNZPru+3Ocd6 wTv6dyHPvAyiSqgun3i7+wXmdyybjFJjY0001HSL4/knusBcE7lC0wSQz5wF0olZB/3F DPVrLTs417pql0O0vBhhk4km1rHP6GWlJiycLI0m8E2Gy/fqCCYjjjWrgVLshWSIF2qh F13Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006596; x=1726611396; 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=YnSUA+ALMkkUgp2nZaPD+gGHE2tL17OL5Bsrx2xXh8A=; b=efFmIx+1iFuNmAgwmQahgyKvKJNsP0nazJIRx2Y6xQcnIdNWiaL5Mx4rZLYKAgSFbm RB4r8LPtDJ1AwFBnIyoxsyjsOv7N0cLDvELW4xs0lzdn8Nxwk6/yMGNvJQeKGPSnjZkd eI0Z6HgCog7oqjhaqtLuWdFM40Og/ah/v7DQ0q7kvyygw3Cc+VTy0NjgzhPrhSwu1LBW s/z7Vf1vHB4LE/ppbyaEarSblMPH0+33saWxzqyEmyRoDgHLAec+MSkUTdqe9wkHymnJ EsWWYFcjEwGvuIgjlrP2a0brWwkHHO66+tU/IRoP5CENvWeJadZaU2MyABU8xnC+1al5 e73Q== X-Forwarded-Encrypted: i=1; AJvYcCVFUqekSsG+t/Gk+rhhsSh7TCVguWTcsPPb9PbgjGHZ+wgCfZqOtMGlIrJqcIGG/DKlLqg=@vger.kernel.org X-Gm-Message-State: AOJu0YzofvY/EuZ7vtYoZj+NZj7Pf8CEu3U8a35HdNutrUi+0z4LfGAR R7Vm4Y8m21dl0UqO7sLakzT3MXRirStlbO2SOGkyxx9/V12Hy2pkBPewxfqYreE= X-Google-Smtp-Source: AGHT+IFDzIZM3DP/M5OgAw1eZ3RYHrodZQmKcteQvXWpEmdrDFT50vvYruksRMQadCg93cKWdz6IHg== X-Received: by 2002:a05:6a00:4b46:b0:70d:2725:ebe4 with SMTP id d2e1a72fcca58-71916e7a2a1mr1263422b3a.13.1726006596413; Tue, 10 Sep 2024 15:16:36 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:35 -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 11/39] target/ppc: replace assert(0) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:38 -0700 Message-Id: <20240910221606.1817478-12-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: Daniel Henrique Barboza --- target/ppc/dfp_helper.c | 8 ++++---- target/ppc/mmu_helper.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/target/ppc/dfp_helper.c b/target/ppc/dfp_helper.c index 5967ea07a92..6ef31a480b7 100644 --- a/target/ppc/dfp_helper.c +++ b/target/ppc/dfp_helper.c @@ -249,7 +249,7 @@ static void dfp_set_FPRF_from_FRT_with_context(struct PPC_DFP *dfp, fprf = 0x05; break; default: - assert(0); /* should never get here */ + g_assert_not_reached(); /* should never get here */ } dfp->env->fpscr &= ~FP_FPRF; dfp->env->fpscr |= (fprf << FPSCR_FPRF); @@ -1243,7 +1243,7 @@ void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) \ } else if (decNumberIsQNaN(&dfp.b)) { \ vt.VsrD(1) = -2; \ } else { \ - assert(0); \ + g_assert_not_reached(); \ } \ set_dfp64(t, &vt); \ } else { \ @@ -1252,7 +1252,7 @@ void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) \ } else if ((size) == 128) { \ vt.VsrD(1) = dfp.b.exponent + 6176; \ } else { \ - assert(0); \ + g_assert_not_reached(); \ } \ set_dfp64(t, &vt); \ } \ @@ -1300,7 +1300,7 @@ void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \ raw_inf = 0x1e000; \ bias = 6176; \ } else { \ - assert(0); \ + g_assert_not_reached(); \ } \ \ if (unlikely((exp < 0) || (exp > max_exp))) { \ diff --git a/target/ppc/mmu_helper.c b/target/ppc/mmu_helper.c index b0a0676beba..b167b37e0ab 100644 --- a/target/ppc/mmu_helper.c +++ b/target/ppc/mmu_helper.c @@ -316,7 +316,7 @@ void ppc_tlb_invalidate_one(CPUPPCState *env, target_ulong addr) break; default: /* Should never reach here with other MMU models */ - assert(0); + g_assert_not_reached(); } #else ppc_tlb_invalidate_all(env); From patchwork Tue Sep 10 22:15:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799382 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 639041AE862 for ; Tue, 10 Sep 2024 22:16:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006600; cv=none; b=dy0l0tv3YW+THIYQPAwL/Wi5r3q5DuYVRH0QkQj2/HwMKkWt+1CCyVLY9FysEUHDNLRop1TTqRt7Qqmwenoj4TNtUW6CpOe7UIDbxs/z+xRhd3Jvw6p8B9browSGLtiwjvqGEj67x1XmyphXtuJLX3inuIp6DlJ2i9yDDTB1m5o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006600; c=relaxed/simple; bh=vgIVOOQZwlXrDwhev8td9BK4bnD3X5cqSFsOwLrK8iM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WcO4h6/ZxKns/d6dauYPRo7AN57Wa8jEv8W5wPclO8kdLss9JWkzK4IFKJ/vHxQLM3rndu4ni0aFF20Gq8gPTZVaZfpWTdmTTVklB2Ath9eDlFeUCsA/6boB/nfCUl80JjMI+f7hZVabH2nqFaKGJKD647M4y4b/08l+/LdWVBI= 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=ANNQLJOy; arc=none smtp.client-ip=209.85.210.176 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="ANNQLJOy" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-718e285544fso2749266b3a.1 for ; Tue, 10 Sep 2024 15:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006599; x=1726611399; 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=5e7jM2SGiugZIDj7hvcHvckpF7J0ao6gx5zsDNU5OmE=; b=ANNQLJOyCiEbS8Uy3RRQUvLG8J1gbvU7eddI13UYzVhDsXxogoRDv7ckkkoaehdcV3 ABJgtKsUL46rSjfox5K7ChlM4djiFmoenKQA+Et6q4Y2AsIE6ot1g65UI9EWowdqV86l LQ9CImQKyi5VJX69hMRZx9LGxY2deKw0KGeL5fXD6zQ5uCoFXB4Go9woxlsLvYykvPCB 09p/YGuENbDaT1srrMpSsEyTKTsNyQVSNM8CAZB/zk+PmlkRHZjD6GcKg3apIjWz1R4k ASPibHPoyrseh/crvQ3AADdBTDG92o2ADiKamAe9LGTEf5/KRyj+NFSBQjr9CETqhVMd AXyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006599; x=1726611399; 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=5e7jM2SGiugZIDj7hvcHvckpF7J0ao6gx5zsDNU5OmE=; b=t6OefMaY1i8/FpC/hfrEZrgbWWlXowtr7LYeikUICUdydGEhvmNlmU7VhmkJUiwR+q JbQU6+Qo0z8F+qaKz4xzLAxpKU1lbDNBISnxFXB6N3w04KIr1um8gv7zgAEwEtIMAzQR Fuqr+YPXVDmd0joGt/uBGGnebvqPWDUkbqjc/473D4Eibn2A6Lf6mROyAAq8CiHIXn5I SordLhy+3FO6rDk7sipZ2+Dgb3gGxXfxYxP3C4LJGf5stEBqx1nKpKHNyZIoFyevYD67 VN8XDsBN+a658yY0o9y0ivaWLPyeZQ/f9+lFd/opzcJUKyEE9I7vDHojTC4lHZST7T/L AwRw== X-Forwarded-Encrypted: i=1; AJvYcCUARDrP+Ebd8azMO6Mazlkf5LWFlRrnOFZ+2IybwMPzyiK9fZ1SOQUEsVx40NmqQdaf5V8=@vger.kernel.org X-Gm-Message-State: AOJu0Ywv80nZ8ur+NDYcnlnPAq6rzvncioL9oGHujhh1WxHlVcjBsliG IeH5tMeFynA5pp4cz3en5soWyl1liUYx1FbRi7Pr4xttpJfEmf2+FC9Wa9JZkao= X-Google-Smtp-Source: AGHT+IGmTWAlHqohfvDcmF4lhCn4e0s9xwSiGMy/9LUB1RgrtDOx1fMalziLV42CXKlDan+123/d1Q== X-Received: by 2002:a05:6a20:289e:b0:1cf:4348:d5c8 with SMTP id adf61e73a8af0-1cf5e157922mr2270616637.39.1726006598631; Tue, 10 Sep 2024 15:16:38 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:38 -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 12/39] tests/qtest: replace assert(0) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:39 -0700 Message-Id: <20240910221606.1817478-13-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: Thomas Huth --- tests/qtest/ipmi-bt-test.c | 2 +- tests/qtest/ipmi-kcs-test.c | 4 ++-- tests/qtest/rtl8139-test.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/qtest/ipmi-bt-test.c b/tests/qtest/ipmi-bt-test.c index 383239bcd48..13f7c841f59 100644 --- a/tests/qtest/ipmi-bt-test.c +++ b/tests/qtest/ipmi-bt-test.c @@ -251,7 +251,7 @@ static void emu_msg_handler(void) msg[msg_len++] = 0xa0; write_emu_msg(msg, msg_len); } else { - g_assert(0); + g_assert_not_reached(); } } diff --git a/tests/qtest/ipmi-kcs-test.c b/tests/qtest/ipmi-kcs-test.c index afc24dd3e46..3186c6ad64b 100644 --- a/tests/qtest/ipmi-kcs-test.c +++ b/tests/qtest/ipmi-kcs-test.c @@ -145,7 +145,7 @@ static void kcs_cmd(uint8_t *cmd, unsigned int cmd_len, break; default: - g_assert(0); + g_assert_not_reached(); } *rsp_len = j; } @@ -184,7 +184,7 @@ static void kcs_abort(uint8_t *cmd, unsigned int cmd_len, break; default: - g_assert(0); + g_assert_not_reached(); } /* Start the abort here */ diff --git a/tests/qtest/rtl8139-test.c b/tests/qtest/rtl8139-test.c index eedf90f65af..55f671f2f59 100644 --- a/tests/qtest/rtl8139-test.c +++ b/tests/qtest/rtl8139-test.c @@ -65,7 +65,7 @@ PORT(IntrMask, w, 0x3c) PORT(IntrStatus, w, 0x3E) PORT(TimerInt, l, 0x54) -#define fatal(...) do { g_test_message(__VA_ARGS__); g_assert(0); } while (0) +#define fatal(...) do { g_test_message(__VA_ARGS__); g_assert_not_reached(); } while (0) static void test_timer(void) { From patchwork Tue Sep 10 22:15:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799383 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 CD0E01AE871 for ; Tue, 10 Sep 2024 22:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006603; cv=none; b=qbN9eqQ+0fYeyfWN63j/3QIRQoeTL6HHAYSk3y6r045OvOvAy68mxWbjHDw84RGsBlBYyr1mpajwpMtjinCOXAbTPyTsX2SW9/9VtqPOh2hlrT4amEAQzxWS6bSaV965SB/Mwh+a3Mtpfq2QUm64GgZawzAVstY75+PW/lEXZhs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006603; c=relaxed/simple; bh=92BhXZRoeGkzfqg5qeTFXvYRSY4g14ftt70be96+95o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hUdHE/kTX8HnQfm7bMJENot9kn/TZxzaQZ1hylq9n+ZOh7+921TGXXSqG+4VLruGgyozeehizDSsj9TG1C6OUiWM7RYEKTw8Gwf6U3Al6e45qvql0O5/gPe5/HHKyixQxdyNan5PWc/y44SUa3ZnAbx9f1xPnNsDcA5GqWSY9rM= 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=KpXQyR9G; arc=none smtp.client-ip=209.85.210.180 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="KpXQyR9G" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-71798a15ce5so220954b3a.0 for ; Tue, 10 Sep 2024 15:16:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006601; x=1726611401; 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=tK8yXM1iDeE54P3xeT7FLI43fZ41GyYVDWl++WFS7uI=; b=KpXQyR9GLFQs66jxu6/kvO695S+IO3DJR4MzBvi8ZW1Ytt6GmSxOtfxsCjXtPONmQA MCQm4Mag60dNHzJN4y0RcoL/GU9BIpsVhMQ1Du31B08pc0qerWQwq21Sx53RBnm5I6ws 14f440gh47qnHi7d/SDxj1tI6iZt+J9OsUteONrxWUDQx1zQb92LqCbt17DE5jizwa1y yfh2j6e/+ZDrMxMkjrRa2Sry7baDw8XiJxwH/zkOgDlAU14omVpTTtWDVFmgs0SK/1hO 44JgxmALjoo4g4RiNUBo8V0D6gD3vYWgyey0cD2MU87OawKdbkDTZ2T+UXajNboCsCty A8Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006601; x=1726611401; 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=tK8yXM1iDeE54P3xeT7FLI43fZ41GyYVDWl++WFS7uI=; b=OmcxmX9ySY3VopJeUdCDGKBWDRzhhoI50JuHNkKt84bSMyCY+mWpaCLsDGZLO73YS4 DnLBD2b+021nYpeiRGsLBEeirs4HijRoTVYvQx7qflM5XRppuTJ3sk03LB0bk+nAc+e6 vG6dQ7hlC6V7DOaqJ8esM/mEmOt8GsRVjeD4mcwqsEGWYDO1xvhjllSGjN6d1hAPTq3K oqMAMX7VU44oxpBRHwqGul04uMQOQZNMCCqK0ze/Q4VYN1xx6hbMbMkEzn4nMzjm11Sb +LjFbInPQ8dWb1qj2Y1jqOjEFD0Yx0RllHkJxzGKwG6gJtEqlf08Ptzo4c7E5peStfGO iUFQ== X-Forwarded-Encrypted: i=1; AJvYcCVsu9x4IiaABDFhWHKnnFBKPsPcey85DFxnkx40dPPIuCIhTSh4TtUnStcI2EavY/ZHq6E=@vger.kernel.org X-Gm-Message-State: AOJu0YxiektiLT2nAAHm2vU+nZJrPPev2XZbN6gjIxAeY6tXC4y1aFzi M13O1YYb/8Tonj+WHiqERRjtlm9Yg+idQe9nsdVfLS1ondG/YxtlUgRAmiyDCLA= X-Google-Smtp-Source: AGHT+IHBeJSCPLVgyC868IAgFwwRmLEKo/giNhof2aXBBMvErXgNAwTCgjauJtLdTsaN9WD8c9bHhg== X-Received: by 2002:a05:6a21:398d:b0:1cf:3816:d104 with SMTP id adf61e73a8af0-1cf5e3cf5d6mr4003930637.3.1726006600863; Tue, 10 Sep 2024 15:16:40 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:40 -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 13/39] tests/unit: replace assert(0) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:40 -0700 Message-Id: <20240910221606.1817478-14-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 --- tests/unit/test-xs-node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test-xs-node.c b/tests/unit/test-xs-node.c index ac94e7ed6c2..2f447a73fb8 100644 --- a/tests/unit/test-xs-node.c +++ b/tests/unit/test-xs-node.c @@ -212,7 +212,7 @@ static void compare_tx(gpointer key, gpointer val, gpointer opaque) printf("Comparison failure in TX %u after serdes:\n", tx_id); dump_ref("Original", t1->root, 0); dump_ref("Deserialised", t2->root, 0); - g_assert(0); + g_assert_not_reached(); } g_assert(t1->nr_nodes == t2->nr_nodes); } @@ -257,7 +257,7 @@ static void check_serdes(XenstoreImplState *s) printf("Comparison failure in main tree after serdes:\n"); dump_ref("Original", s->root, 0); dump_ref("Deserialised", s2->root, 0); - g_assert(0); + g_assert_not_reached(); } nr_transactions1 = g_hash_table_size(s->transactions); From patchwork Tue Sep 10 22:15:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799384 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (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 CF5591AE87A for ; Tue, 10 Sep 2024 22:16:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006605; cv=none; b=QrGR2DbIN3B4TgFnDXHut1vDZAJwAj88FInXaWsA8Mge2un7udVmxsBWwjMloJXVgO/xcTDLHnuWxVYPRWuCMDAebJI5x/vP3WOAIBnuks5RdKVqsVhxz7rSLXIertAt+jDOMAA5UI0WsOveKVskHlvohBKV8nb3LvFz4gNY+qM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006605; c=relaxed/simple; bh=zQsvt4n4V9EW0EOzDeA+30dv9n5pC1zHFw/Nv6RfpbA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pL2pnt8jKZ9fdUuhN/vw4q9bfI7/KHCbWEcKgguJPjbyGzA3ubZBOOI85WFxuwtFai8XhkgcVfdIm2VUu5pHxutP8m17dJ7l2yMLgK20rVmIf5GD37h19ZrlUTv48VrO8wc/G+mGjafy6UPwY5EL7Xii1RGv4S8Xqdh1tNBuOic= 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=FazGGGC8; arc=none smtp.client-ip=209.85.215.182 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="FazGGGC8" Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-6bce380eb96so3759282a12.0 for ; Tue, 10 Sep 2024 15:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006603; x=1726611403; 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=iYkzieYJP14CnD0ztJrOrrQh8wNVhd37zVufqRq95Wk=; b=FazGGGC8hyY55fi16EtKYSX0x65vyctlrjR7zx/jnZdcA7kcXgEe8ZIDw1RXFfWv6e 8AlolfLKGVHm2G/ny8R9dR6/oKVyBU82rANJlRMKYpAGbi3llaT+cUwH25wFG46E0IfA CXqhfIvDP6ZOBC3NvXG8LY54Krbp21F0T/UHGVbp2bgxdkiq1os2RZGnIdydeHj5kEWu ZgvD1N4fpCb6+Z285520NlgYloLsr77uoGjzP+qoZ9fMx1nudKVKAfUP7MTCRiWltz4r x2n4hgc89FUJFL0ZifkCDdbbl5L6HQmAuD1JuNBi6/Ugl09CBPsIqsKs/3R6kWlu7xV4 YtNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006603; x=1726611403; 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=iYkzieYJP14CnD0ztJrOrrQh8wNVhd37zVufqRq95Wk=; b=euCKrjYXut33w5u0ZGiyAYaz2InrTMsXReppjxyaCs2Z7aQUYQjq1/bga641wkZfwt uULY0QWE9urp6pZYIRPNyhKzs90JKKqPQJaecreNvdOPxOL8MltCQsu3hKEvItNn2cxw yJXkdd6i37SumbMH1tNQ1HVfvNRWuXjrKbcmo804UCO0z9+qyDZBumqZrkLpwfcDOPdB 3mE0WW7FezEGrj14qXpug6WLi2OYEQJagwQXOM6+xyDcas/MeA7RWAOQwnYSzqjFpAnT QQPpU735zERFyn29stuajkpU4ZEpvQROg/zON6x8GaYabspPhV8Wm/yOr1+Ix2LvFbHw s85w== X-Forwarded-Encrypted: i=1; AJvYcCXyNfarLIBwJG61xKpKAIGVpqlNaMtluz2t64Y2GeuUc/UW6hAtxdRsUltOKop7oBG7f5w=@vger.kernel.org X-Gm-Message-State: AOJu0YzWqKqlte5+5ZoOxz/kV5Q41gfeE/NSH0n4ij5xA7ImBBzPPAn9 5qVFWNBD0cYe/v2zMs/Ue2Kj1vGk8JYLVtMqVFOulo0eGr6KAs9oNyVx/bdw3vw= X-Google-Smtp-Source: AGHT+IHKXs1YiNP1OusG1gOCeK6/p++op+cHmYKzQLej9YXDjOXxCcnGSzx+XKVm5NrT1vtmlbfLhg== X-Received: by 2002:a05:6a20:d525:b0:1cf:58e3:2d1 with SMTP id adf61e73a8af0-1cf5e197fecmr2959596637.47.1726006603120; Tue, 10 Sep 2024 15:16:43 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:42 -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 14/39] include/hw/s390x: replace assert(false) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:41 -0700 Message-Id: <20240910221606.1817478-15-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: Thomas Huth --- include/hw/s390x/cpu-topology.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/s390x/cpu-topology.h b/include/hw/s390x/cpu-topology.h index c064f427e94..dcb25956a64 100644 --- a/include/hw/s390x/cpu-topology.h +++ b/include/hw/s390x/cpu-topology.h @@ -57,7 +57,7 @@ static inline void s390_topology_setup_cpu(MachineState *ms, static inline void s390_topology_reset(void) { /* Unreachable, CPU topology not implemented for TCG */ - assert(false); + g_assert_not_reached(); } #endif From patchwork Tue Sep 10 22:15:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799385 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 3CE531AED2B for ; Tue, 10 Sep 2024 22:16:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006607; cv=none; b=Atl3qoOGan/wspgiJle58L5AKGxQQrANv6y7bbQToWM/S9v5jX9Zq6tVPnVfcLKtSHZVhpeV5duNnoOswDecfrcDH5pzRnPBwlQTsGs0Jui1pr9P389EHPM7rqmltBfz88lFHeeHe+NZ7tHKH4JbEMdDC4VfjFw/Utj4H6/xt3Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006607; c=relaxed/simple; bh=+eUwWAgQrej9bl/Z/TDNwK8W+NkrBeALG9GwKc/FEos=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sReZkgMuSXJTwxB9Iln+8kWt7MGVAXRg2sAgVhpaUMf6Fz04HRzusH+A+AujidcdUOUTsi2kHLAEq6lJpOi5OoS5txrQ2Bx+TypuEYqMraMYTifr4zrdUl33IR1o2UF8j5LIStxxTJeYdEm/BmqaPNkXYLoZ7r4GZU7k06d9m/I= 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=aPSui43B; arc=none smtp.client-ip=209.85.210.177 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="aPSui43B" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-718d962ad64so4416079b3a.0 for ; Tue, 10 Sep 2024 15:16:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006605; x=1726611405; 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=zaOeMd8XzZwIKO+BVAeDQHacTyR7MUVICUu2Groumoc=; b=aPSui43B+DkSRBsl5wkNLsZ/U3cTrJiJdzv8Mr9RC4zfmLqJS3htsDS4chuBVnVoDY FpN2yI1GQMN4TpzXIwv8p0igY5Lfo8mA6lzi2Sw4EmGjMgnghnyDZD5xqSWWMAJeLh9X HTQ2zTYNLmfKfzgAyf032sqc6UP+dMFXQHT1AIuEkBas3f65jhYC+Nc8yjnGNmSWxMl3 cukEy8Cr2Yq3vmOVXWMi/wqKzPV8RfPsp46kcQlX9SvQlqH5KQgKE0zIGc/CIZnANrKU 4NPfnB0ZsjBlnMDIPVHe8pDPvMEVLXvz3X8XoCFuvmbN+pOO+jJvrdbstOMgRbGVYUsn bklw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006605; x=1726611405; 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=zaOeMd8XzZwIKO+BVAeDQHacTyR7MUVICUu2Groumoc=; b=rLZeCPQq/YT7kkAab50+MH3LWEwP+TQ6iTK01wdT0kakGp7n2m+xxuWbp08AfPYG7C bs1ir0YWDjAmiFPbXocGY0cLJXx/xcOrkxtas39o0aucZ15vSCSB9CTeKmMgQFtBONll nD64QTeTJyRX2KyrR9yhEuzuFvMSnAAeOUtT1w++63ERHV9jJQk8wkrimq8Rv4YqM1Jd VnaaUzD04eURfwYorBpHUUpCgQ0UK5DNrL5c3o0DI73lvp+x9gIIPbI4u+FaDL9WC7du V2p+svKg31q74HCWj0AnkmWkn/XrerSsP1CvqM5eNu5mWWwq0xUj3NZRJSTjlwxHT5Wk gy7w== X-Forwarded-Encrypted: i=1; AJvYcCXLbbC7F4Yd4+KvS1T5IlLK5peYGJAHwbms+Rr95Q+l4QYppDDjKd8k1MP4U1/Hf9eDQ/c=@vger.kernel.org X-Gm-Message-State: AOJu0YzSPHw3g/MwsaqYM+lDbCJX9lnppRHygN3+kIYWPxoxL+s2IMy3 mz+c0jY3VTQIK9ZOejJHESoq3s5LaDDSaL8sk8Bv/Kh+cAEG8puMLsdHK6qxpF4= X-Google-Smtp-Source: AGHT+IGXdkrxhCzNyeQ+oPHQ9x0IFNSkeXfls9xHWi0Sicojf8vp5qG1xhcR8cFIxRHQi1oprvgqcw== X-Received: by 2002:a05:6a00:390e:b0:714:1ca1:7134 with SMTP id d2e1a72fcca58-718d5ee3ed9mr21940217b3a.18.1726006605401; Tue, 10 Sep 2024 15:16:45 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:44 -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 15/39] block: replace assert(false) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:42 -0700 Message-Id: <20240910221606.1817478-16-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: Kevin Wolf --- block/qcow2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/qcow2.c b/block/qcow2.c index 70b19730a39..bdc6337826f 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -5299,7 +5299,7 @@ qcow2_get_specific_info(BlockDriverState *bs, Error **errp) } else { /* if this assertion fails, this probably means a new version was * added without having it covered here */ - assert(false); + g_assert_not_reached(); } if (encrypt_info) { 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; } From patchwork Tue Sep 10 22:15:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799387 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 19BAE1AED43 for ; Tue, 10 Sep 2024 22:16:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006613; cv=none; b=p+zfb1qa5EPBL9EWlMDXR3cmS16ryVZEWHfqeAudABhmw7b3t0OKjGTSn/z8qmsGk/T6GG2z78z9T4EDetXDeW8SEFY+LgB3IU7yLrTRdL3buBSplOoOhQupfSho+hKkxPOJp51SgoMZ+0gQc4lkyZ0V80dOdnAosHdhB8bXta4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006613; c=relaxed/simple; bh=csBwLVLP2WeK1qWgpBtuKra8nHbvrPXygBdSa4OM2/g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jdAKo5PNL1y2oiTiCRzC2cTE8E5It5q/eJpHt9J5XAs7O5ey7kosZQc/iItrd1i8qC64BasT/0iRwO7COiI9gmoZ3ZfqAI8a2oees6yP6TYM8eBa4hEM/e9W/sOATSEY0I+TtrNaI9OaZzkTiAmYfzcMbG9pmzG9zLfsMydBrWE= 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=Uhycxb37; arc=none smtp.client-ip=209.85.210.177 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="Uhycxb37" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-718d91eef2eso193177b3a.1 for ; Tue, 10 Sep 2024 15:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006611; x=1726611411; 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=agjxPNPZhkjhF3pYgx+4YrvSC0QezaRTWh5rzAMbA6c=; b=Uhycxb37ZCqg4gUV554yewDyDG/ch3KTiTTILmvpunO7/w2Gh6HfRY6eDsXaic/aO7 RA/8PFnHlib52fJe4tDm4jtT91CO0Evlcb93am5B9XXYxpr7IBZTF1GdQiMU/z7K325T bEfyCLaJpj7/Y1ku6vjvI0V8MwZamo0ctydcqKrnGsXGuxSES6RvNRjOiKcxX0RQFamA z6v76wbcJfQLZSrj3K+XzcSBXCRK28WWzEPN9Ts4TPwO+1rSiSiukicNK5wLcW8ZbEao 9SEOLMXdhtX7K11jp4ix3E+eRLApA7i5Mw4s4dY1HJPcAnHwmeICVif1OzEwbiHtXPmB lt1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006611; x=1726611411; 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=agjxPNPZhkjhF3pYgx+4YrvSC0QezaRTWh5rzAMbA6c=; b=QbqMZLkqYV2i1As3Y28azhkPQMk3lqotBzWB72yYguo7Df96J7CGbmCH/DgViyArM1 F+qfJBHIV2CSuKsiZQFQGNddW3Qe9tlyjr45eg0kwGf/b9ow3eDy4CFzmrdCPLVVghT6 1NWE3187alCMZSTYro9YZ/3CsdEh0MJ9iCLaReIe1MUjJbEsDHWzaK7wCsp3Li4q1FGP 9QMRA5uYqvfD4CEnRAb/yMu7GrlELzt7CScRluJZVDjnGbjY9otGD5SwnRMRxJ76AbNQ b4/XuXlsxleIaCkrD/pbMm7xnFsI/SmoSk7m/S4HsjT0URDqhfTeR2ZEcX8WbwuwxtHx MD7w== X-Forwarded-Encrypted: i=1; AJvYcCXhO4P5iWubJXRYLmh4uirb2QPXwEaNyID7vlq95RyV6Qsxbc6XrHd/gC8AvjCeeXX3gcw=@vger.kernel.org X-Gm-Message-State: AOJu0YzdKVwR0hWZnXoeHwl/pOb9hAWq2l7rULTnnT1/8SlUZJRRtHnT IMV063Zv9sixTEjs6WPfsHGulLbJalg8kc/o4WG6D3Py/msvCM6TIrhond5YEn8= X-Google-Smtp-Source: AGHT+IE1NeVPxPuTLt1hWZFnlbeldnxIM0Z4VwcI8eWqQlrC+NfwnNfuoOxOt9dZvUfA9IM8krjmMw== X-Received: by 2002:a05:6a00:6f4d:b0:718:eeab:97ca with SMTP id d2e1a72fcca58-71907d98483mr7997533b3a.2.1726006611406; Tue, 10 Sep 2024 15:16:51 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:50 -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 17/39] hw/net: replace assert(false) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:44 -0700 Message-Id: <20240910221606.1817478-18-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 --- hw/net/e1000e_core.c | 2 +- hw/net/igb_core.c | 2 +- hw/net/net_rx_pkt.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/net/e1000e_core.c b/hw/net/e1000e_core.c index 3ae2a184d5d..248381f9766 100644 --- a/hw/net/e1000e_core.c +++ b/hw/net/e1000e_core.c @@ -561,7 +561,7 @@ e1000e_rss_calc_hash(E1000ECore *core, type = NetPktRssIpV6Ex; break; default: - assert(false); + g_assert_not_reached(); return 0; } diff --git a/hw/net/igb_core.c b/hw/net/igb_core.c index bcd5f6cd9cd..6be61407715 100644 --- a/hw/net/igb_core.c +++ b/hw/net/igb_core.c @@ -397,7 +397,7 @@ igb_rss_calc_hash(IGBCore *core, struct NetRxPkt *pkt, E1000E_RSSInfo *info) type = NetPktRssIpV6Udp; break; default: - assert(false); + g_assert_not_reached(); return 0; } diff --git a/hw/net/net_rx_pkt.c b/hw/net/net_rx_pkt.c index 32e5f3f9cf7..6b9c4c9559d 100644 --- a/hw/net/net_rx_pkt.c +++ b/hw/net/net_rx_pkt.c @@ -375,7 +375,7 @@ net_rx_pkt_calc_rss_hash(struct NetRxPkt *pkt, _net_rx_rss_prepare_udp(&rss_input[0], pkt, &rss_length); break; default: - assert(false); + g_assert_not_reached(); break; } From patchwork Tue Sep 10 22:15:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799388 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 7E9631B013F for ; Tue, 10 Sep 2024 22:16:54 +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=1726006616; cv=none; b=tyX+pGBzqWDEZV8RpZ0jmsxv1mvF6wabuQonc7ED79jg54F+WWbrfCIyP0Q/hM90f4e0IAaR+T02NnBBcaY0UOikG+KP9YVihWNVSP6T1GGwb6AVsZqof2l19TL40g0HW1mFby4L8zd52fXZ18nzhiPgDL5j1STi7oABUOVUS+U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006616; c=relaxed/simple; bh=zZHblByLQumGTFty+KN7J0PDXXlIzFYijZu7SzODD4I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=s67l80zqGsFTTiMUSXaz4RfrOipJZI7os1TGrqdS9odMXUVxlf+1n81B42CjD33TiHiCOKvQu1iEsMArzutj/hkGIasX+rjxPkTClfi/ZD2ptBCKnhmne7oHK1U52pYIvdwcpsopiupDuP1VGFo84AeXpyo56ngC7KWDvG8DcDg= 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=C+ajDqPD; 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="C+ajDqPD" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-71788bfe60eso980520b3a.1 for ; Tue, 10 Sep 2024 15:16:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006614; x=1726611414; 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=g94oM2AdOrkhIM0zmQXs6BZslT0T+3A9bvoVuc5szJw=; b=C+ajDqPDV1qqoKnKlhwKDPetpVF92pJxRwAT6FXAdvqt2+BZ2DiMtbh3cQ9s7ZxPJK /1gNyj+hPhhEn/p2ewGnodD8Ks1ByP1XHD2Soy4gF1TmOleOCWKSY2WwrLFxgpCyDLIa SQWrzvadZwllFUR9Sm2aEYEvuxIymK5M7kckQA5S7qdp8iOb+diqTjRHL589XbOULGLM EeNGg5W+v32pOFeT3WasCyTrb/oR6K7azvcKsYiD5dpsJ3MpvuOuYUIk+9oGT/5JfWcB /pYkrg6WVP7LiSNymHvZbn8W6GK/g0SmRFnaTaXzbFbYeUqPQQBHGdrIJh2wjBmJi1/I dtXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006614; x=1726611414; 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=g94oM2AdOrkhIM0zmQXs6BZslT0T+3A9bvoVuc5szJw=; b=lALp74snQO8tcl27nAn1A+ZJ/q5iW0l8+cRowbiGzWiaEfTOTr1NbJyxfTW4Zbst6k +gSiTWEWuAVsm4UzcsypfKu+0WpV5DVGCi74by+3ul8HTjEmmw3u/MfUDtF3o07neqXt /oOgAcTgtsUX0s6Qi/rH2PYw7hTYIWjqc+SbeAaVvScUvTijWFNJ2fSupdmTirNP6c60 SFja7Dwh1YtGu7sTm9wB3o1gf5Tl9Uom80iTxQ+lpElihciwB6j89XuuIarzBOODeq0/ l4XVjwTjslVKtbHav/tCzAUlEF/uFk1H/RGnWuSX09OBoXZXhrw7+gaxni8pG/jULIG4 W0QA== X-Forwarded-Encrypted: i=1; AJvYcCWa0ipwbtHo9W+bAuHpq7IK7Bh9hvnTV2wVwOePUCpxp88jXf0pIN7Qw95BPPk/6IrhKrI=@vger.kernel.org X-Gm-Message-State: AOJu0Yy6mNbaYEqwjA2gyIZ4zLI4XtdDdE2x75bbKNECPMWh+3giB6MS YUJZg2L0roSIDyOztOllKAeMkFGw6CvH5wwJdW7qHhW02h3Lp7UbK53g9lq7+js= X-Google-Smtp-Source: AGHT+IHL2ZH6nUBIcX/D81YvSHijd2PVp9cRI7IyORN5V83dLkzGAu93AwGsK5Tkm+BoWZtfm/pR4A== X-Received: by 2002:a05:6a00:1803:b0:714:2cea:1473 with SMTP id d2e1a72fcca58-7191723a295mr1055728b3a.23.1726006613650; Tue, 10 Sep 2024 15:16:53 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:53 -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 18/39] hw/nvme: replace assert(false) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:45 -0700 Message-Id: <20240910221606.1817478-19-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 --- hw/nvme/ctrl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c index 9f277b81d83..fc3b27c031e 100644 --- a/hw/nvme/ctrl.c +++ b/hw/nvme/ctrl.c @@ -1816,7 +1816,7 @@ static uint16_t nvme_check_zone_state_for_write(NvmeZone *zone) trace_pci_nvme_err_zone_is_read_only(zslba); return NVME_ZONE_READ_ONLY; default: - assert(false); + g_assert_not_reached(); } return NVME_INTERNAL_DEV_ERROR; @@ -1870,7 +1870,7 @@ static uint16_t nvme_check_zone_state_for_read(NvmeZone *zone) trace_pci_nvme_err_zone_is_offline(zone->d.zslba); return NVME_ZONE_OFFLINE; default: - assert(false); + g_assert_not_reached(); } return NVME_INTERNAL_DEV_ERROR; @@ -4654,7 +4654,7 @@ static uint16_t nvme_io_cmd(NvmeCtrl *n, NvmeRequest *req) case NVME_CMD_IO_MGMT_SEND: return nvme_io_mgmt_send(n, req); default: - assert(false); + g_assert_not_reached(); } return NVME_INVALID_OPCODE | NVME_DNR; @@ -7205,7 +7205,7 @@ static uint16_t nvme_admin_cmd(NvmeCtrl *n, NvmeRequest *req) case NVME_ADM_CMD_DIRECTIVE_RECV: return nvme_directive_receive(n, req); default: - assert(false); + g_assert_not_reached(); } return NVME_INVALID_OPCODE | NVME_DNR; From patchwork Tue Sep 10 22:15:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799389 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 899C91B14EB for ; Tue, 10 Sep 2024 22:16:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006617; cv=none; b=nJfzW9fJLb6+MS7yjHHsgM5ptDWp7uC7+FjhG8gxa6K84KrmfoUuFUqrQEFu/+i7aj+QZHEjPb6DpUfNFuVmmYs9dgI5bximnlSa7BCo7bqR5lZ7txRg42q6fK0eXzdes3Xxga1R+bfJZfAhLU9YJYtqZmNFlQ3U0wsikXoIvY0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006617; c=relaxed/simple; bh=l4HKBfFYF4Pe0rUEUEAwk0cR6NocD/ZjQRKhB1UJ1lI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VKpIoW0ugP171sAHKrIcwsT/sUhO0EH6XhPyVgJQqhoJkBxR6T4vWpHXdIsrpqwsk+oZeVs4AbLb3AwCiKpxNwHKxKL8nckoKWgBsbOif51GzXBwM9Tq31I9Md7X7Cc/YR5NZlfR6oR5dA7Hm3bXtJGgl5E6Kb40TevudzRRhyM= 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=bFPSJdo0; arc=none smtp.client-ip=209.85.215.176 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="bFPSJdo0" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-7c6b4222fe3so4052611a12.3 for ; Tue, 10 Sep 2024 15:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006616; x=1726611416; 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=cAvzQslJtfBcWM7NZQthMrKt0WkAdMSo8X/GFMOx7xk=; b=bFPSJdo00IAgsv3GxwppA2dScPfdEESteVKbLkruK88NO4vvAGr+DD0FVXXd1VH95q I3wwaDSCJs/n0FjrWQUi2iip1ZnPibBDx6HrGuSehumsUVSvbHmFoEha6iWQIA4XKkSJ zZck21JDLsV/UY/UWwBbLDShrL2Sbmj6NViFTqBm+pIMT20O1leFb0CPH0E5YuiSJ5E6 YGOqPNr2PhZUEfbP28mdeK64nsKrdUI9NJx+HC+96Jm/7XVZpHFyz39TTafFycxKU6oG Hjn/5aqoRNanbySnmBm5xaqsIfB+W2GF8JBHRWD7LAccjX58Gr2rrBLtpvWDisYRPYEJ rk7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006616; x=1726611416; 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=cAvzQslJtfBcWM7NZQthMrKt0WkAdMSo8X/GFMOx7xk=; b=re0y1OQM+xLQfWfk8CPSwM2ufG0CdAG8SC/FQ/GL0QZM2SbO1nyLT/I8sRCF0DcdbL L/T80xjmJXnzJrmrRU5LIkbD01U6Xpj2BLK9y5hfjUeNRcLgVeAjkDbLO9jU9faTdO2q cekWbtibCATx+6uUUOTF8J+fdni0/szHOiNqkdDnmFDXuBCY2zwXt6lM/CHJjjO6qUcj /YLQD/8FB99IM0lSQAS09ec8eOpNCkwVwPAFvJ39orE8aDwijt1Qcp+4rOn3tSycOf6S 8sRgR8TqPfvez8KuxW8Bt/9H0/DRdiUO3uhA18YQYJd4rZJVTpfktsgH9tvXJzyC6PL9 YZfA== X-Forwarded-Encrypted: i=1; AJvYcCVLVcPV23/d9awSvy1X6giFQIfyKFRAHkcIjKJjnIWcgwtCFWQ2SB0IWnxn/0h+3zny7yQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyzO6DgnNa5EWZz/Uiba3zJkC6ojPWLnl158+Db2hRTw1a4bhe8 ITqKYqf3/YLs3CCc9XbSxl013Q6E6hDIuONuh+9/CSmHiTTtBptcXzhEEjwlSMs= X-Google-Smtp-Source: AGHT+IE5hbdWS6CdkvBpTkLF73V6YsXkK3hpqDmltB7qoc29jRaoBm1Er3LHFhYvvN88E1vHLvAbAQ== X-Received: by 2002:a05:6a20:cf8c:b0:1cf:3a0a:ae45 with SMTP id adf61e73a8af0-1cf5e156d0fmr3746837637.35.1726006615860; Tue, 10 Sep 2024 15:16:55 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:55 -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 19/39] hw/pci: replace assert(false) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:46 -0700 Message-Id: <20240910221606.1817478-20-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 --- hw/pci/pci-stub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pci/pci-stub.c b/hw/pci/pci-stub.c index f0508682d2b..c6950e21bd4 100644 --- a/hw/pci/pci-stub.c +++ b/hw/pci/pci-stub.c @@ -46,13 +46,13 @@ void hmp_pcie_aer_inject_error(Monitor *mon, const QDict *qdict) /* kvm-all wants this */ MSIMessage pci_get_msi_message(PCIDevice *dev, int vector) { - g_assert(false); + g_assert_not_reached(); return (MSIMessage){}; } uint16_t pci_requester_id(PCIDevice *dev) { - g_assert(false); + g_assert_not_reached(); return 0; } From patchwork Tue Sep 10 22:15:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799390 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 C37BD1B1D6E for ; Tue, 10 Sep 2024 22:16:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006620; cv=none; b=TNr2dowRiFx3yqtwRSrZvZTgn8kQFQpRgMFlPMX/K7/ndw7vUmGmsWLiX6kLEymchNz8jsODV8JbwRggDYv7AYA8QW6r2v6HaKA/qoU7nWsmoARPkqXWTb/XqpTfzzakpP8pUPFd2vfjuwxoNkZl0noerbSTUcTb6N2/8n4SxuQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006620; c=relaxed/simple; bh=7LqFEY2QfoGxyVYwZS6fAzF+2VVFA03Wck9rcu1wO1M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=P+XO4RBYTDuITE5Q9IntO//wTAkbT0dQW5r+DasMeXFOj/SWfyy/sSbxSU7QAYbVcKTMCEXZPvAY2NA2370UMXZYxV3nk1eQzWhFRQag7bOlui+k5tlVG9OSblvn00a4HX3S7axBLcAdGCEizUkQfqGYrLKPAg8ESWT6Zmjo4Wc= 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=xQ2qv6PI; arc=none smtp.client-ip=209.85.215.176 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="xQ2qv6PI" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-7c3e1081804so736972a12.3 for ; Tue, 10 Sep 2024 15:16:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006618; x=1726611418; 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=qcrIg2qAf6uELGwQ4F3jw2Dk1PoiMNeAX8XN3cIVz0A=; b=xQ2qv6PIY/zvRlCXB+ejcB+sGEA9/t8I5pzbvzUfNOBD6j7Kp8vYIwdbuhA8es4hK6 NpD4VlLf0laUS26NFmk9Ovvizb0QWo9Ng6YVUR1RbnAA6S8oemGteoUls6wfhhCfphMM UNjXG++nqx+UYzS6UmjRxMiJAf5YlRlMo38Qkl85FftKM0dBcUs0uzd5wLi29xv1zbL2 rHKrjzxTtIB7UWKb3BEyvh8qXl/41p/YzsGlYp/QFdL56gQjO6fcji9lAk44s0mBkEI8 7YffJuVHKCv73tIKtRG1PCPB3oHwwC6MCecl1JPIe6kB/g4gIfk7BVYGfwQZAgA3xtMX eCDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006618; x=1726611418; 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=qcrIg2qAf6uELGwQ4F3jw2Dk1PoiMNeAX8XN3cIVz0A=; b=JYAPqdS6cJiNERXuyEzkUw+VZaLtVBj1j2h9wDG/gwAHTX0z2OtJN0qt4EwPfsRoHd ALcKbg0JtL/Mcpb1gHu2+6RbXkXqUu80JvkdA8ePfP2jM7QlhkSQxnn8vL/L1bVdZXMh vlcCN+34uLnkzc8qy5EVL9LArgM2VLjbrGsU2SdhJhVYPgGyj37QDLwGLei8QBQe9adz 8d+NeAKBTftqLOberFJZ+6hNR6gEyZF3spveUvUOA9Aa4ODee5bGhA+Z3qaars0anhts 2kIvcx4tiFFeSfIPDQ/a/EmXlIf5ycxuuD2uEyJHa4E8/Am+A6FcRQM9blXt1tt6sQ/A h12g== X-Forwarded-Encrypted: i=1; AJvYcCWO46hnpW4inhrmOVXA5TJhCsA2zOE/JW2k5O7LdYOf5VK7co0XgndUU/1UvCNtN6rmhK8=@vger.kernel.org X-Gm-Message-State: AOJu0YwaXW5Yjgd3m/pPffJg2yBg2AUUvOeFw/aAZUZfkEx4p47rZcG1 iaoFFHGU/R/g00aR86QXPFz/jyEoG0vyAD3LZNhMASsnWhagqsiyKJmD0Q/0Qiw= X-Google-Smtp-Source: AGHT+IHlXcViJ7Uqavmm9h0Agv/EoGh3ujOBi2hWwTsBLR4Ow1eipycn2U7OZZTHFj/uG0XH/qrB2Q== X-Received: by 2002:a05:6a21:70cb:b0:1c4:9f31:ac9e with SMTP id adf61e73a8af0-1cf62d7bea5mr1368837637.42.1726006618086; Tue, 10 Sep 2024 15:16:58 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:57 -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 20/39] hw/ppc: replace assert(false) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:47 -0700 Message-Id: <20240910221606.1817478-21-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: Daniel Henrique Barboza --- hw/ppc/spapr_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr_events.c b/hw/ppc/spapr_events.c index cb0eeee5874..38ac1cb7866 100644 --- a/hw/ppc/spapr_events.c +++ b/hw/ppc/spapr_events.c @@ -645,7 +645,7 @@ static void spapr_hotplug_req_event(uint8_t hp_id, uint8_t hp_action, /* we shouldn't be signaling hotplug events for resources * that don't support them */ - g_assert(false); + g_assert_not_reached(); return; } From patchwork Tue Sep 10 22:15:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799391 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 04D141ABED0 for ; Tue, 10 Sep 2024 22:17:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006622; cv=none; b=oKq+as9ERoVcAIC3ZNlF4E53iF7vyC4dfO7SQrefq0qe8dd/cbJrGhTpfCho/L2vZCexC0ryDmbnNlgkE83I/zMp0pqndG6ietUEPGmmPJ1QuhwOY5JmUcVY2Cv92gXAS9t7bJqmfHJdSR4oGOp7wGVWRLjrnGhZ3oVXH/kbazE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006622; c=relaxed/simple; bh=BHiveNNh/+ZUzo2p1aHpWD6DvNiQeilcG4h9ygwW7Wo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OFZzzcHdLqnWGQxfmGSbrIgHFrTMVEI/rg4MqstAgpvMZRF9qf03S8QWEBO5C4jJUp6y/mqJ54OnehsPUcpusQQH4lCI9+vpUsd9l0P8S4xwAgOuf0NjwZrAU8rabl9N4GKLuozgv0967HF2pjDCWYIEvZIGWYmjEjQ9TNkhsyI= 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=xZF6u/FH; arc=none smtp.client-ip=209.85.210.180 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="xZF6u/FH" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-718e11e4186so1244593b3a.2 for ; Tue, 10 Sep 2024 15:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006620; x=1726611420; 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=KGbjDOKJ1fKYY1uGWKFY9+QMWL7t/3O1ImqR91k5f0Q=; b=xZF6u/FHxobbeaFgdOXiS+odSqPZRnvdfTxoqbyT/wu0+jT6qWYEut5haPnincjet1 02Gx31gguE+Ucm9b0WwvWFo06oXYaaBtoUQ1tUVOKFFdPan182AKdXZhcEWVEN76+Et2 OyB9IGOTf9D+dv9YPu8CYzZEL6ZjfaoUI2MR7TMwqWDxbpjX2RzOj5bVmQiw+t6xD7eH +3Il2cYNJk90+d7BMpS2BQos+X7Rd5mWqDjdnD2lmfuSkf87uKK/3E9dNO6iIzjN1q6J O/fmEUZ7XmFB4v/dHvPbUTH7MwA5btuiGFKTgWsh2Mukh2e5nSW2Wm6rsPw0WZnOT2Kk OcMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006620; x=1726611420; 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=KGbjDOKJ1fKYY1uGWKFY9+QMWL7t/3O1ImqR91k5f0Q=; b=LNrOLHkKqHNkqelFiLrYOT3M3i8KAmpAFqg25e6AKCAMjnWaw4iW0ixOx/+9mL9HO4 oxT8TK/YeH+4nTjFMfZpKngu/s1zoqpvTQwOrhtR4xq4OvQGDs78MJf20/Xs4PMOCbzB wO5ExeOXF/icN9TyTbcwDn1ZSjBnYBwcPl6H+gbdz43izB1X1YJXWm3jjtRIHT/TMEZF lwjTsOsG35BG5C86bM8H8LlAqei1sx3iCuBwxfeQp2Lt/WcELOMUZXogkFvpzrCEqCaA DLTU19tyJ4dLFWQEPLpo821nqha4sPD0lUDZy7ohAyoDYMdykqXO6BD18w/FBoh8fwr5 /qig== X-Forwarded-Encrypted: i=1; AJvYcCXCg8n0KGoRDrmuxSq8c8dvmoxCnNcuqWFoAq3ayZf17A7llAru2jDkgLYXXDLH9DoS1eY=@vger.kernel.org X-Gm-Message-State: AOJu0YzVzvmof9pp3BSPq4DVPEbvArVgB31cVHwNn/ZnlChq2iJofjFh jgEHeRcHwlKK3i+77aRfC3t+si4GGAjDihWl3ISPl03ExJ0y4+vB/A486ihyBSw= X-Google-Smtp-Source: AGHT+IEmi5bmB0qNS+mpiVKXRllZgpf/ZuOjLIu6c1N2HyHg/D6mILGOlbKUYizy2HbzFdbDzqq34Q== X-Received: by 2002:a05:6a21:38a:b0:1cf:397f:b69 with SMTP id adf61e73a8af0-1cf62cc1d32mr1586618637.13.1726006620331; Tue, 10 Sep 2024 15:17:00 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:16:59 -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 21/39] migration: replace assert(false) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:48 -0700 Message-Id: <20240910221606.1817478-22-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: Fabiano Rosas Reviewed-by: Peter Xu --- migration/dirtyrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c index 1d9db812990..a28c07327e8 100644 --- a/migration/dirtyrate.c +++ b/migration/dirtyrate.c @@ -228,7 +228,7 @@ static int time_unit_to_power(TimeUnit time_unit) case TIME_UNIT_MILLISECOND: return -3; default: - assert(false); /* unreachable */ + g_assert_not_reached(); /* unreachable */ return 0; } } From patchwork Tue Sep 10 22:15:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799392 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 48A041B29C1 for ; Tue, 10 Sep 2024 22:17:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006624; cv=none; b=Q3XJ0jpZMCmakdDooc2Glk+U6HWJLBNC3xkfxkOrgNQV5fc+p2FZo4qKXvh06cV5eBcL4koWdUU405iqOrJerlEUVfcBnzvvp8Z4kLOkUjFtlXmuA8M3Jq3/T7lI8uLs2cc6Frr/NkviSXzCCXk1s2esnR8Ou3/rKqUSy4ML3u8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006624; c=relaxed/simple; bh=3XPwV5dfQ8tYmIvWh071uuZZZ93mupregg6Mns04HnU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QfvCBqfh22H5IfLVmx7c1d/F2qAfNT2zJgRb07KC9q0HqAuzX2jdOWiSDIWt6/mFg4z4G8pdQyX2LDMlhqPAIooMjJSSvzJBWazWkuphK5NcI0YvJdPyJ5gXUg82Dejys++rBrDdrnKQtsrvUaBBp7kYlbNC3LkA2NVoc5wjOW0= 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=hZ6o7hvP; arc=none smtp.client-ip=209.85.210.180 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="hZ6o7hvP" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-718e6299191so2047157b3a.2 for ; Tue, 10 Sep 2024 15:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006623; x=1726611423; 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=7oh25CxvFbaGetIeF8ZGKIaTcgg654mKr0Hk3ECIvo8=; b=hZ6o7hvPsqCh73kRmi9bUx84Lm0jQ548V3FIYU/VbrEy+UNBfwnQPcgwo1vC1j3nzu lQRKzHMb5VtGssywViOexb3P2oCOliu39SvptykF6LyIQAfDIc0eM3wLHKYbggHcVUXL U1J0stYlA1NHJRXOE/uPZy5etCmNRJTCtQvC5sj1lEbjzl73Jju0oTxMvQdMIL7iXEIV bAIOxKw/MMKUtwF0QLDDfZWwpQP4APm7AfEvK0AviEYIUkUi4DC9URd3q2yOadMLgv6i TvJAnxvj3NFa3ekFWcE66KRzPFulP97NTDKKNf9/OfKuKbIuq+wUWR3WPXKRrombs4xk Z+8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006623; x=1726611423; 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=7oh25CxvFbaGetIeF8ZGKIaTcgg654mKr0Hk3ECIvo8=; b=DEES3K7jmjE/naWSIJ5C+rhVpFfO7krSjJ+lE/3yNYOvRrCPhCUi/5Gent2Xo4yTyT 6MCAEe7bqjIjLHaFcNn2sSPWRKNkfh9h7hc8EfxsTDXi2GRh1P7xl/e5oQ0AQArm4ThU CUmsbToIiCzCITVVjcQrXyPjN7VsVlfHbTAcofYTp4CNCfXdsDwhQEDdTWUZA8j6SEkN QiI2nKcl/G2IzThVisHtsBISZ3iS5fKrGmn+cvKzHjyrcbGvy3iuxJ/T1UK8ASYBIKTr MtfBw5F4dJ8R3Mh2xCc341BHx3DTyBYIEIpxEvOOoYjg4ecMgyM0Yp08HlT1DmSyL4W9 sN2w== X-Forwarded-Encrypted: i=1; AJvYcCU3aipaFgYgbdm6K6raIrj07I3dfe4xGMzrCNiix5uNMf6Wa/UdUnveM1jni0QsZCM2z4k=@vger.kernel.org X-Gm-Message-State: AOJu0YxbTmWzRuE4hXs7wRkenIWGag77kgvpgPfrLjSu5AWh4xl+eX8e T5izJPfOoLeOZh4D8K6BfkJtllXWrQ5DLAbOMtyRWp7ZdYb2FQfzxQtem1bFEWs= X-Google-Smtp-Source: AGHT+IENKO5MwL+nWqP2QL7ZggohAMhCWhPKSiwX+PHvrBh02mVemU/5A9wLas0m1Pzm50xYKxp9XA== X-Received: by 2002:a05:6a00:66e1:b0:714:3acb:9d4b with SMTP id d2e1a72fcca58-718d5ee03c7mr14772194b3a.18.1726006622546; Tue, 10 Sep 2024 15:17:02 -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.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:17:02 -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 22/39] target/i386/kvm: replace assert(false) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:49 -0700 Message-Id: <20240910221606.1817478-23-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 --- target/i386/kvm/kvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c index 2fa88ef1e37..308b0e1cb37 100644 --- a/target/i386/kvm/kvm.c +++ b/target/i386/kvm/kvm.c @@ -5770,7 +5770,7 @@ static int kvm_handle_rdmsr(X86CPU *cpu, struct kvm_run *run) } } - assert(false); + g_assert_not_reached(); } static int kvm_handle_wrmsr(X86CPU *cpu, struct kvm_run *run) @@ -5789,7 +5789,7 @@ static int kvm_handle_wrmsr(X86CPU *cpu, struct kvm_run *run) } } - assert(false); + g_assert_not_reached(); } static bool has_sgx_provisioning; From patchwork Tue Sep 10 22:15:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799393 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 ADEC31B29DD for ; Tue, 10 Sep 2024 22:17:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006627; cv=none; b=j74XzTNp+K0qlLFn5iduOP9xT4jLZZVRrR4+JnVQ8NWSvsGuPUhLCyaeY8rggh1RAHcAFzmlFkZwoA8dXWf3aBbUoWEJr5U2VoZTiJEfFTKztKfRyUPDKnMypE32Acc3EptN99s6XCoi0jIngqQsBvvHLkanN/AVSV9uarFENco= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006627; c=relaxed/simple; bh=3b/VWaODMpRWYjHbxk9DixghmJPHnvULK5x5nT1gld4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=s4FmSChy0vQH10607CzS/azXA/r3qUk0PNhSyzb9YAYzoC0cndD3BSWnY3Y7mcZZircmV/CyM/0OPnK8IDkqd9jmjtXqz1lYi+VirgqsUgUqIW2+29R3W+n9nvj8IHNGY1Ea70k+OjKGXwhd1FDjOkivja9r9ZNxA++Fn57TUSo= 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=EuegN64v; arc=none smtp.client-ip=209.85.210.169 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="EuegN64v" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-7184a7c8a45so3839168b3a.0 for ; Tue, 10 Sep 2024 15:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006625; x=1726611425; 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=KD2LlUR5NpZlDvwnn9zLAQK2DmzjwDVkQP9qh6fOE8I=; b=EuegN64vjyfV2xXS3eKfFj9QMAwwnxPF0lOU2GGrou8Fq3Q+J2OpiGwRlpWD8MvRLU AZUJrU+Jpai1DCpPsnbvGVOln+bkseOD8iHgZ8DBbI/nhMWjQmK/ENv+VCr9jRucn/F1 n/Vy0ldsWaoen0pysGRdN2ImonbtA0Vlef4EB3o8F6t16Plk5XqjtBOQy/4NvE5F4M7D 9Mgk9vCPZpN2gg/S4jFkI3xgph1jvHcdqL8J/lV/akR8UkQMf2oZog+WA2EoYkb/6FsS LpmMYE/5MeFfT8TMlAUHi7AiE3VTwBg76b/pOwQUcDP0LYN97d9x3vfc1SUKAOMw8TuC uTYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006625; x=1726611425; 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=KD2LlUR5NpZlDvwnn9zLAQK2DmzjwDVkQP9qh6fOE8I=; b=UCzbj94VVSrkekCYfUA0yejq4btHHNFybv5IZxnvcFPo+Xlm6+3/4bdhLJ5fWSvEv6 C++KCiU2QLuSr9i0xhm6qsPQnTOy4v52p2QO71qqennZh9hiyW0j0YrliXTXZHia1wTS zbT4idE8INYo16Up8J1/huRDf1kL4+jvywTjFSiyeVB5E+LyYy/WZRG2uBtPpkRFB3Qa 8R8NHmST+8X0vMgdz+YMZPSIgZScAHkOuG1dzbTdm0YnDnRIxe2LEqvG0Y/IAB21Opz8 Y1/iyKpotiphmXLPZ38ObfNFyRwMeiaomXQHFN830ej/iuz/u5ncPgkoymEuH4qtXwab dg3w== X-Forwarded-Encrypted: i=1; AJvYcCUQ2MPpAnrT2XEqSFZes01z39ZCq4Ydv1x1EJobvD7Ho5Wxqrrul97mZxvLDUtIv4yI150=@vger.kernel.org X-Gm-Message-State: AOJu0YwIYE0ui26DzU6dYs9edUQTM28y6ppJ3lxi0kbK/OIF8if7ekBt vscXo5+ejzz5HcOOw3e/X7Oz3B573rASOioFRfrBTN5Jc7FjNpXT5Fr1O55JolA= X-Google-Smtp-Source: AGHT+IH6UNKS9chWYn2YPKe9g9weGMxCR6dyTwjj+WvGPNZcuS65Wi2QHFhu7k4/MBMW5kKyVoj53g== X-Received: by 2002:a05:6a00:3e1a:b0:717:87a1:786 with SMTP id d2e1a72fcca58-718d5e17ba9mr20187214b3a.9.1726006624765; Tue, 10 Sep 2024 15:17:04 -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.17.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:17:04 -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 23/39] tests/qtest: replace assert(false) with g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:50 -0700 Message-Id: <20240910221606.1817478-24-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 --- tests/qtest/numa-test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/qtest/numa-test.c b/tests/qtest/numa-test.c index ede418963cb..6d92baee860 100644 --- a/tests/qtest/numa-test.c +++ b/tests/qtest/numa-test.c @@ -162,7 +162,7 @@ static void pc_numa_cpu(const void *data) } else if (socket == 1 && core == 1 && thread == 1) { g_assert_cmpint(node, ==, 1); } else { - g_assert(false); + g_assert_not_reached(); } qobject_unref(e); } @@ -207,7 +207,7 @@ static void spapr_numa_cpu(const void *data) } else if (core == 3) { g_assert_cmpint(node, ==, 1); } else { - g_assert(false); + g_assert_not_reached(); } qobject_unref(e); } @@ -257,7 +257,7 @@ static void aarch64_numa_cpu(const void *data) } else if (socket == 1 && cluster == 0 && core == 0 && thread == 0) { g_assert_cmpint(node, ==, 0); } else { - g_assert(false); + g_assert_not_reached(); } qobject_unref(e); } @@ -305,7 +305,7 @@ static void loongarch64_numa_cpu(const void *data) } else if (socket == 1 && core == 0 && thread == 0) { g_assert_cmpint(node, ==, 0); } else { - g_assert(false); + g_assert_not_reached(); } qobject_unref(e); } @@ -367,7 +367,7 @@ static void pc_dynamic_cpu_cfg(const void *data) } else if (socket == 1) { g_assert_cmpint(node, ==, 0); } else { - g_assert(false); + g_assert_not_reached(); } qobject_unref(e); } From patchwork Tue Sep 10 22:15:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799394 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (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 D80C01B29C1 for ; Tue, 10 Sep 2024 22:17:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006629; cv=none; b=NrfGhDNCiE6bgV7kbMLaa9De/4WSICjIFWdNMmlybN1YKO5TvkKKSxHWz9pVl0APXNDGkRnt0vg0h4ZbCu2uFRSXEHvTqlrijkCa+5Sy5j5lS7xAiMiJ5UpXf7ZrA3MPTTSwZEL2mFAqYxlaM1ooXW9jshMCUR6IlNsNFLbRTc0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006629; c=relaxed/simple; bh=bs1VVWRt6rLtUfVmZM0ZnFO4EMeIfBMDWxxonlsKOA4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ftq1P1VPDMZKtL+7ustqpWi5aukg/lE6ZzpQyBjt4NO9rfVzEjgUEcW6+0T6wdaHsb640tqLG5oVbuiUlXbHj/zMuBftLLgEPeFPOYfHpKSMPxZ/zHMcQXiVUq1Z33jRZF8VWJRpUdZvbDIhSPoIYKgyJvv1vxReAD5X113l8jk= 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=Xr0fFnQF; arc=none smtp.client-ip=209.85.215.171 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="Xr0fFnQF" Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-7d916b6a73aso1775455a12.1 for ; Tue, 10 Sep 2024 15:17:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006627; x=1726611427; 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=PMAzhundz5cnlhXkr4isErmBbfbpq/QVHnsSNQckDH4=; b=Xr0fFnQFJ8+hYREz9tSEr9Fq5OGkT7frzzPCn/sRPis1FEr0MMAMbq3tjR+VnvtPrY tYILZBLTETwbavIfEccKrHqJL72KlVvrGmoJToJLuUp1X/Wo/RkXFtG9sJS5T/dmaRAs PdLHc3ynfQ9+bwV3np5SWhg2KGHDvzVRVSCVXPimfNmysWy2DQJL4BVKUM2oq04uki+t UmWjNHFeL5OjxGRpQhyDZ916dqZnpCIOtGVq6x8Vm9AySZuV0F3C7OZkYznikShLxndM purNRRpip49x/+BW51A/fDgs5K8ThkS5IzNbdXqY2OqRLAm6zoClDRCziX41PvcafKMC I8iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006627; x=1726611427; 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=PMAzhundz5cnlhXkr4isErmBbfbpq/QVHnsSNQckDH4=; b=OsyRnNH0RrcRwbuP0tQ0kGbTGwLjtsBVx4ZFRE6nd8sjfFPP7Q6KgDCHB6Uo9/+XLI LvjI1PGy/WCGNFTo6R3/GVWsM+xJO2GZVv2bLmonVH/E3O7zX3lXM9EDfOunLo6he8PT nZXCtga3zvljlrMpCIR6wHzlwyRYy52p9pMx0pnOdF583qrVDS0a5nSU2prn3HTNOXQJ yI5FkboQBySUgbngmymbgS/Z1aepYUg5+weXyrUXKVrGbsuovZMdK2ofRtwTbFJeZofV 5gJFghKCDUhOFpHsrOFqji9RduYumHVuhj5GgglIJpI6tEZYtHvpzeBDww/knndCnMLf yycA== X-Forwarded-Encrypted: i=1; AJvYcCV7neRYR61m3c88QMq4+ro+aByaIW1sOIU17h7j9bx10bVDxURP21V1NsBZIBqsoUQPRA4=@vger.kernel.org X-Gm-Message-State: AOJu0Yx9ok7TV/FWSu5aPaUEdj4+kJ3glBXneEn7qjWqoYjRo/k1+RMo df05I58+MBwWvCygO7mkaOFtUk+5nTdvWFM/3vZUNiglkeozlb64ALWBst8GZqI= X-Google-Smtp-Source: AGHT+IEi5JaA4MkES+9U+PpXOPIvBZ+R7wRmXVH+oG4VWiCcruy8sEZ0nEXAobw17ZrGyKMKj2WwFA== X-Received: by 2002:a05:6a21:3a48:b0:1cf:20a7:ec65 with SMTP id adf61e73a8af0-1cf5e19cebbmr2662324637.49.1726006627163; Tue, 10 Sep 2024 15:17:07 -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.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:17:06 -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 24/39] accel/tcg: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:51 -0700 Message-Id: <20240910221606.1817478-25-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 --- accel/tcg/plugin-gen.c | 1 - 1 file changed, 1 deletion(-) diff --git a/accel/tcg/plugin-gen.c b/accel/tcg/plugin-gen.c index ec89a085b43..2ee4c22befd 100644 --- a/accel/tcg/plugin-gen.c +++ b/accel/tcg/plugin-gen.c @@ -251,7 +251,6 @@ static void inject_mem_cb(struct qemu_plugin_dyn_cb *cb, break; default: g_assert_not_reached(); - break; } } From patchwork Tue Sep 10 22:15:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799395 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 11B801B2ECE for ; Tue, 10 Sep 2024 22:17:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006631; cv=none; b=KH9+v74UIIh/iqMd4IxII7ul6QQoPVjOQjrJlJmVbBN6TypgMgyMp1BRXJe7UiiJCAiEny4rRF2fszZCANH5PL9jzVWYF6r58GWa1M+8J5kVRcpz9RCYJ36RFE9p6SvoiC5vvkoF9RPc9S13aJ4YD/nNieUuIQeWAOK6gVqy5rc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006631; c=relaxed/simple; bh=uRQ03x5IMXAeXMu1hODTGnUsUsRLyDGwZwtJs196/ns=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PlXwNMBeMFz50zCkYElpBSQ6+YTAY5Z6iZzAoE4T6bw9WKNKWQ306SUz6RkeWnGwCqSVv3WK78CiRZjivOKdMB8PIdTcB0IpOukX8Ei+bYjeZgOyNrKoFexI8HwDsqxTRddqQMUH8XmHuTG7zOkK93h1anr8CEL3EYAwATy+TEk= 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=uJpSM9aF; arc=none smtp.client-ip=209.85.210.177 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="uJpSM9aF" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-718e1ce7e84so3015948b3a.1 for ; Tue, 10 Sep 2024 15:17:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006629; x=1726611429; 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=RCGVOkz/BgjMXg0ik5e1jthdc26fdQDBLF+1lu12foY=; b=uJpSM9aFhaCjIsN3r105AJND5WLaPayfhdbeXjySfliKEjHn83DchqQNRVrJbqhx7a WxNWlDCjwZ9shW6zAZ2pXws8oSWe38nVfeMOQZdh+5VGSPGAhNbgYwEZ4c8dxmKAqDKs rOLmdbjlRgDwjOhFMmTj1s/Jk4SieSLkMTwZdLlctNPz72NBCTwR8xn2MRQ20I2mnZYb ShMoSQRRI+sDv2vP8yYK1c5F5C+QxYRbyLZ6iAp/9vM6RzQUPBV8Jq7LUCAclsbhrBau PJi7dko3nZFHnfDYQtgW//qGPpCMmdBT0vljU/ajFxzqNnTsPIA1ZVIUZIRdEw15qOB9 tkeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006629; x=1726611429; 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=RCGVOkz/BgjMXg0ik5e1jthdc26fdQDBLF+1lu12foY=; b=BKS5uLQ71ORufgMsJklNnwwsjGoX1HgCQt/OC50y14pxaulCAjQQ46DHi3CJv2oOLU EkMR3F0afyOh6jp7ARM/9banePUmz607+s9ThLcQtELA7kgOs+CKUiSSIiu0LVCb/HvC DIvEaklKOUiYr7+FqSJ0IqsfuMZ74c3P/vYaYdFwkFNh5ViVKDkM9p/1Ilvj8bUJjGk1 rPT1s5bsJ66LGcY5fOKiKYfTTthYWb1v7SjkJJUX8gtOrjU02MWQyL7u3t7X0DNOaXhf MzvddD0k8A6XxxPV4CND9mrHMm+W5272/leOZ0Vc4GZyr3msvMb94/0r9Clq0K4Bh791 l6pQ== X-Forwarded-Encrypted: i=1; AJvYcCWFLM9I7gWg/E+kuF3/hl+JVEAAGDmKgLvO1R/133zVTkT8FDWbGtd23+RPXHIdqMAkcsQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yz0ZjbPcS9b4PRWh1kXgn7RP3J+NbyYp7yDFD4jjDZqcPYayncN 3Helnuo5jIWWutsryM2UlvEAL5C+pUYEtiWsJd+05QCd9moF3qz61/vWmBOSkP4= X-Google-Smtp-Source: AGHT+IGi72IfaYUiCGQt7lWSGV2AP/QNzvbmyXN6XQj5zV/aN0oGXhyf4mxvjQxKuaGQQoLA5lFr1g== X-Received: by 2002:a05:6a21:6e41:b0:1cf:5437:e768 with SMTP id adf61e73a8af0-1cf5e03316emr3202667637.7.1726006629425; Tue, 10 Sep 2024 15:17:09 -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.17.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:17:09 -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 25/39] block: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:52 -0700 Message-Id: <20240910221606.1817478-26-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: Richard W.M. Jones Reviewed-by: Kevin Wolf --- block/ssh.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/ssh.c b/block/ssh.c index 27d582e0e3d..871e1d47534 100644 --- a/block/ssh.c +++ b/block/ssh.c @@ -474,7 +474,6 @@ static int check_host_key(BDRVSSHState *s, SshHostKeyCheck *hkc, Error **errp) errp); } g_assert_not_reached(); - break; case SSH_HOST_KEY_CHECK_MODE_KNOWN_HOSTS: return check_host_key_knownhosts(s, errp); default: From patchwork Tue Sep 10 22:15:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799396 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 6A2CE1B3737 for ; Tue, 10 Sep 2024 22:17:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006633; cv=none; b=R6dyHlv2YCid5PJVUEbdFPlQ+L+QVWPsXqnbZk7Zdip0lrK7it185nilVhztBdv09egJLO0nz509hz7KnTz0n9FpacgQ68esXXBpV4E29KlCRQXBzQ0q5nCYfDfbcOSsRHm7zdf0AACintadUYz9K+jNWoVP0CEuTt7WuR4Y6tA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006633; c=relaxed/simple; bh=I7IoEsCFiMadfRMXGxSUVnq1SR1ewhQKIDmt/usV41g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cqCDG7JbNJsNLah+8LweTm4QqWbXorU22y9ey/66he0wdubaByOayXt8hsHXQBKigQjvy4IMCljXr6rJk3PUFVrSeSvRJ1e48jAGsXrHqHkt327HvDDPe2yoXz7DM6Ces2gYzxBZpxJHN7i8CM8A07n55Nmh8Xp0MIYG8YLRZPs= 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=e+GrV52q; arc=none smtp.client-ip=209.85.210.169 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="e+GrV52q" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-7179802b8fcso4380918b3a.1 for ; Tue, 10 Sep 2024 15:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006632; x=1726611432; 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=FxBBj8XHDZxd3pwPDQhaFTyzR1JvVS6yl60rcPuU8DE=; b=e+GrV52qm66BtPtdmDFe1NGb9eC//hqiSSWmBslYQRvqzYz5sKudPwJE3Xjx56hukx GAFlg4ipDZ0Onz6EVs2+eY4PvZLrAkXXD9xe3uNi0t3HxeZw7gjiFtzXbiLCSr3VbOKN GfZSpReRXpKDX8kH/mfkz23+6UMBNNW2v3+5rQJVJvVe3ZjxUb9a0lPUoyF2/NBqiQW2 GzodbX2Ad4OIKEIhRhu8/JMsCEqqSEBGhSKPB5HFTOHtHdJMrR4DjdxAxgSHMo06Cr05 NMwXlheCuoZz62UGw6FuzYPqoKHut2h1B+OVTk2JvGt1M2nPShLdLz5oLvRFX46mRvoq G9DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006632; x=1726611432; 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=FxBBj8XHDZxd3pwPDQhaFTyzR1JvVS6yl60rcPuU8DE=; b=qYrx9OKT0CevzD+Tb1SWf+jXEnfDdaEmVodkxrKoApU88bHKzRkPSgEPNhJ0LV7v03 oTlcx6qP9Y8jiGYIiPbflj29D8x+n6hZYiw75jKfbBKFqTtb/OyhZCsS4siZRTm/Xo/P sHYEsTaTctHy1cMYztTKq1+EMfU/WqROV4RzUzB/IU1zz3C9gYcVVB081ix9J0OlwWny Ij9JQWZk3fYs5p0BEeSeYHTOgpk/PbN8XQZrfXCbvQ3hYRRB+10nGDASzUkZ3tL0Ttto VPnL9MdzOfes7DNIw+c2PTieIvNwBYDLG6+B5wPgeWfq6+3K9aK9yyYWi3pR7HQKGk9Z k6Jw== X-Forwarded-Encrypted: i=1; AJvYcCUxtdytNxsL1umHjZHdKqFuhukZ4s+/xh0fe2fsdyojudDa92dGrzD2hWYRqWbKFpD27Y0=@vger.kernel.org X-Gm-Message-State: AOJu0YzVcf6W8urBa3+ecb16idRNgrmKrmaCB3qq1qzSQwGy4zHABJfk FTvsaYNfYvkae6wgruEwEXFyVl60+ssNnW2UOyfsbZPrTG1GKzkM5KtEiNCzgjg= X-Google-Smtp-Source: AGHT+IEXiP34uTnzQwoBvPtoZRfRUyfMSCqJ2GA6SrTzN26OOJqSvbL/tMxUKioN4UZqgJtB4WHk9Q== X-Received: by 2002:aa7:88c8:0:b0:714:2fd0:357a with SMTP id d2e1a72fcca58-718d5e20a52mr15181026b3a.11.1726006631633; Tue, 10 Sep 2024 15:17:11 -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.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:17:11 -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 26/39] hw/acpi: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:53 -0700 Message-Id: <20240910221606.1817478-27-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 --- hw/acpi/aml-build.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 006c506a375..34e0ddbde87 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -535,7 +535,6 @@ void aml_append(Aml *parent_ctx, Aml *child) break; default: g_assert_not_reached(); - break; } build_append_array(parent_ctx->buf, buf); build_free_array(buf); From patchwork Tue Sep 10 22:15:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799397 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 572831B2EEE for ; Tue, 10 Sep 2024 22:17:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006635; cv=none; b=dXEdx1BjSys3/IC3MY6yN7FiEDCGrAG6Oqh2DYL+c+oaa2Q2zdxwIgpDpjGa08+Wmm6iYFDS7tSREeih8so4fwi6So0uwBFFB0ePeNqfu+6MVE5mrmbXl1WBfoa+Blp57kxsoO7rEGRI35vKmKskHUGlNfLTpmkSlOQY3CzV2UM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006635; c=relaxed/simple; bh=SVZjWH7PGIBui6S1kK8Be8JE/Mk92uvBK0Ho+9B/nMs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MJN8MgHDyc0ZGdLYiRte3Jqt8cdLyVK3IVJ1INQQmJlrk/cudFDXhJ+3ye8OqGJHwOzzZAPI8dUehYDKZ6WJ7BGJO8N8Y8pGwHI9bKG+ud00A/MihkA8jVzevDrFJ+gVb5szgH9P8xlQboprD8Jv2lZumMs7pBj5+oggPaadWn4= 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=WXvTJVLH; arc=none smtp.client-ip=209.85.210.177 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="WXvTJVLH" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-71781f42f75so4835015b3a.1 for ; Tue, 10 Sep 2024 15:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006634; x=1726611434; 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=4ywE7aBllZLgmnJKdHtMZdYUoug1zQm9p/Yk1hU0pi0=; b=WXvTJVLHKblmerRcdpGQSqM0fPCrHwrUYg/on9ak7t1Vj/7IRB0svokPw3zgoqrjIU 5hs6Fu5v0ydZcBESnTl6EVP4dDtJSun0hwpPGr8GAGU7zjOZiLIbkRAXM+zsZY+z6Pqb zMO8BncwXgy9Jo5sqTxT939QiMe7sAdizOWJFeESgMvwgw6EaUcNwo+JtfYrUukXR5zB PebxYOWFKf5JbmIo2IoKwkPfnTdH/kMyFbygjg3pzoENzonHg3rDCRsg61toslBSrMAd pWE42nSZSXn4EjDOTQwBBq0pKwLn6w7A43wvLLwjUwFQxuAdGiUKTIdXLX79zQa46Eav CCew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006634; x=1726611434; 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=4ywE7aBllZLgmnJKdHtMZdYUoug1zQm9p/Yk1hU0pi0=; b=l90PEt4SjBsPc0XmzICouu2rvEgtLwsazqmPwLG60AcFOJYQZDjALTpqt8KztcNg3c aiNPzvMqwruB8UcrymGZqSwT8jPMUHIFBo1MPArSRIkfaVzzAIR7r1pzR7t81ig5QoXv t7EuCbpzdyuW4BDUKYXTxkwYW70LNxjEGjx1oiRUtNg3hSnR2Pw8oIv9cw9IrtTi2EdL qVqSi6FmV/S6wA2gMqbLwCIoD2DIK5vkwf3bbIIUojTlF7eteptzWf84EnT6qwyNWujs EWmpFxuKhzPBP/rdTcVIO424MJjWeJfOCRlYZCCry52ATL3d5hZmwgfmnvwCPqpRvxdI zkUA== X-Forwarded-Encrypted: i=1; AJvYcCWuOPqMh65iElZEVNrtk7+mfkhODhrMad6MeWZSCH3Elp/Kt+9HCh/qzo/xOWfaZYoWSBg=@vger.kernel.org X-Gm-Message-State: AOJu0YygWcpYWKVtLQr4L+yUnql7pUD1BoKQVmDWkgAulG1lP/5Cm8Ps hSHqsEB2Nxg+xTKAp+Na6xSkcoghhzaE3VBldT7X307f/V5JXI5k38DyQywTMXo= X-Google-Smtp-Source: AGHT+IHHTIm661dnrLfProZH8rQf+m5V0dPJUbPuYgsdXc/eGTx4AE4PeGXzkYEx7p3OoHgG+hD8nw== X-Received: by 2002:a05:6a20:e68d:b0:1cf:32d1:46d with SMTP id adf61e73a8af0-1cf5e19e225mr3167109637.32.1726006633892; Tue, 10 Sep 2024 15:17:13 -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.17.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:17:13 -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 27/39] hw/gpio: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:54 -0700 Message-Id: <20240910221606.1817478-28-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: Philippe Mathieu-Daudé --- hw/gpio/nrf51_gpio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/gpio/nrf51_gpio.c b/hw/gpio/nrf51_gpio.c index ffc7dff7964..f259be651e1 100644 --- a/hw/gpio/nrf51_gpio.c +++ b/hw/gpio/nrf51_gpio.c @@ -40,7 +40,6 @@ static bool is_connected(uint32_t config, uint32_t level) break; default: g_assert_not_reached(); - break; } return state; From patchwork Tue Sep 10 22:15:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799398 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 F363D1917E3 for ; Tue, 10 Sep 2024 22:17:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006667; cv=none; b=Q9PK+nF5+hE5pNAQ9pUFMwj/L5jkSa9pgIoeWiXojHwSnVb64xZJoXorJAta42OYhoLbU7AQXb+03qbcKccW2Y5Fttmp4PavA9iRoMXYNTM3QJY3KxOBACV+8nZ4CDHi7jxAWaCJWpwI95mDJel662RdXoDAW5fTs4tLDWq9gJ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006667; c=relaxed/simple; bh=9ufsd+S11Tc2FI4hR7rhGyjey3VIlBi+6WPSoRGNd7o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qF1iaLVPyvSVRQTwtMHKctTUMQGZIYlk+Nu2YhZX8ihDM1vipU9bT0WlRNSIyw6NUHjOOssqsOl+/FQFYVLWUCC3/yF9L7wiq+ARlZI9IpBwB5j6bnXhPd8sn91vukoITk2QM5VOIH+RpakLUxVWyTHJ+FS8OVI0nJj46fts+PQ= 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=GHz4oD/8; arc=none smtp.client-ip=209.85.210.176 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="GHz4oD/8" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-7184a7c8a45so3839486b3a.0 for ; Tue, 10 Sep 2024 15:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006665; x=1726611465; 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=qUh9IHgCF2MhxdXEfEudgW9+CnpXzCptLVYaeGylPlo=; b=GHz4oD/8z2rGRBtZS907dM7+AUejVsUyaV8ntJgLVYz1Ify3/RSo7aE2QQp741qL10 WVx8LBi92GbT9ORePGQPt3WCFdIWg56esKZwk1hoXKTkES/QBH3bm3Ny6sK9Wmze1PvE RtOWS6umRKfFSPvaMwnmjbJBVZU6Dsub4eGwbgoA/mlGjpujmeLpPuxjHc3v39NjtXBm hClT8ElTU4W6ZSmVCq0T4vPJv9PtuY+h/eej2liIyhrRGn48XoYxBQumBjXy767ycbcZ Q59ApUIAEmKrdOiaeA4kCLQtEKkcb63ncUJ5MXAPul5cDoZ+JFdZPP0zbVD5dxIiISfx 8rPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006665; x=1726611465; 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=qUh9IHgCF2MhxdXEfEudgW9+CnpXzCptLVYaeGylPlo=; b=fd/G7Enb/5agrnnqbfitItyK349yEIc2GntVyfFGOx3S8d8XdDlZYiq0UGzyOooFbv 0u6wleo0zqegScqWY5k0cM0M9d0dsYfT75FZ4uorXRziBkEp9Y2BK+33xNmpNKuFKZoi MoqZl1olIMUX6YxC54hJEQVSk0WhJSlB4G3fts33pvoeiOUIF+bKbwuw8qT1wU9i/DtV uip2VieIez3Txv6tywcOIDYxxWrPSMcJSbD3QF+C1CpLzzFb9RgjwwDQw72hUTbVgKl9 WeKYFCjR9cJkVXONJlYs5UgFns+u8X6pbBdWetYwZl8KNG0EisU5XB7eWlvNPhynD+HZ rTpw== X-Forwarded-Encrypted: i=1; AJvYcCXrmWqdq3xTlVx9UPfZOfrIy4r237gOBsqFj0vUeZ+WtA/K7/swpvy/TJu2uLJrrBF1jS0=@vger.kernel.org X-Gm-Message-State: AOJu0Ywv6/WzI2rtKrJFhmsiD27kE6steJ0/R2DGuV4QNir/qOUvPnEG fp029Os1mldVQ7G5eo7ynSdj3iOCdt7DpTnBu6Xboq1SZaeusNnF9a7iXwbtwyE= X-Google-Smtp-Source: AGHT+IHslc3BcEPx9Pl9BNLcC3dBYXVlOSUQA7s5AOxlWq5X7KhrvJDzlRgFX2++lb84PnsqfiJvyA== X-Received: by 2002:a05:6a00:17a9:b0:70d:2e7e:1853 with SMTP id d2e1a72fcca58-718d5ef956cmr27062604b3a.19.1726006665231; Tue, 10 Sep 2024 15:17:45 -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.17.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:17:44 -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 28/39] hw/misc: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:55 -0700 Message-Id: <20240910221606.1817478-29-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: Philippe Mathieu-Daudé --- hw/misc/imx6_ccm.c | 1 - hw/misc/mac_via.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/hw/misc/imx6_ccm.c b/hw/misc/imx6_ccm.c index b1def7f05b9..fd5d7ce4828 100644 --- a/hw/misc/imx6_ccm.c +++ b/hw/misc/imx6_ccm.c @@ -301,7 +301,6 @@ static uint64_t imx6_analog_get_periph_clk(IMX6CCMState *dev) default: /* We should never get there */ g_assert_not_reached(); - break; } trace_imx6_analog_get_periph_clk(freq); diff --git a/hw/misc/mac_via.c b/hw/misc/mac_via.c index 652395b84fc..af2b2b1af3d 100644 --- a/hw/misc/mac_via.c +++ b/hw/misc/mac_via.c @@ -495,7 +495,6 @@ static void via1_rtc_update(MOS6522Q800VIA1State *v1s) break; default: g_assert_not_reached(); - break; } return; } @@ -556,7 +555,6 @@ static void via1_rtc_update(MOS6522Q800VIA1State *v1s) break; default: g_assert_not_reached(); - break; } return; } From patchwork Tue Sep 10 22:15:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799399 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 4EFA31AC42D for ; Tue, 10 Sep 2024 22:17:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006669; cv=none; b=fh6DEhg6q0DGdy20oQA4vdGbJCn9LVnMfP4ErLjkXMo0kmPUeNGtgcgBwnDeTlcf42YalJdqRCJ/+hNPup/CRwhAIaS9nSDH5EuNJw6A9DBbj8oPDOc6qcI3jn4vmH+RAJFXvNJdtrumybQ1ujaCHfm66tr1JjBT9yoPC4ukAZU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006669; c=relaxed/simple; bh=diNjrKPpqNxPe0EZv6i+WDXphBEludRJsD06CRE7eVU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qj3Ykxcc8A5Rwz1pCkBwrExOKSKQ+7Nmltzd3ZcL+tixWeta9DKILOl+78wRtLxIBeyFc0X7HP+zXm0xsfxMwnFGW/+Inq0Olt58bXWSd311QTIdfa2+s3V96CEpLD3WLxpXDLktPxLB5oXWgNP0P3olk3sAZH7k/lPXnsW21Sw= 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=HDdbtBAo; arc=none smtp.client-ip=209.85.210.182 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="HDdbtBAo" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-71781f42f75so4835304b3a.1 for ; Tue, 10 Sep 2024 15:17:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006667; x=1726611467; 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=pwL33KJkM4Q6sZhv70DYnj8c/5K/FMceLOUvjv0df2Q=; b=HDdbtBAoxjmnlr3pt9pC9B2QWjTpgyXBLYG5At42oMkW/X80iVKjPBJqfAZllvGYVh srnO2H0y1HKEoUXRJGNd/mFVIqvaTjS5WuYSK3fe91woGWMppe1bk7EerPcfQwTuKquO p47drs9VLO0urxJw7kQ8l0weoFblVi7E2m7D0zxuqEWmASGN2OzZLodyyNmJ5KkLxqtf 9PYoLpmEDBqcuzaTcO7wR8f1FCOlceAdFRgcUGbEkAnQr/Gi4KABZYvn1XTfDaIOaeV0 hPO52FzXt69e+ubUDUJdTkrxycdWXtH1s9un9Jc85jbSSzvcZUvqAIx9ZsNfJNtyESkF RiLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006667; x=1726611467; 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=pwL33KJkM4Q6sZhv70DYnj8c/5K/FMceLOUvjv0df2Q=; b=WghClE2fiOowJpVI4buqsCRdzX3Djr3s9QYKg/0PtF1G2dRE0mZA3DjKS2DHG8ihfo EqSSZeHzHvHz27TIKo9Na60FpNBM8YMgx3F8Rp4+o4AH0YmfqxR/oKm3gpUPc3a3RWb3 LBMfVMMGWPKROG1eCBU9ER2EIMaqObGarebEOZngCz/Q7A1XOJpnWiurnBlBTnHFShZx 4rlmbRqa1Fnq7lJJMimmi90Chec8sK+b9mmgMmQiV98f1P+/BWIJyaMGJwNE+oJNGlBK QIRAOaaeDDclSTvZm2U0ccNRzoodshKtfFQE8ni6AFxW52QkeGNnHSdpFmscWPUSnnaU blxg== X-Forwarded-Encrypted: i=1; AJvYcCX+7FZPYimjd1oYSA24j8VfwHuWyhUucJv8LXR6zJXo1ePnn0Gq64VVLLllKjW2utWKNXE=@vger.kernel.org X-Gm-Message-State: AOJu0YxnzmJshaK2Sssjpt/j5WUD3JN4W6nKRU64qY7TbqHGm/drACP4 yzr7WilTJuxk50sTGjUJ1n/uwJeCzmvIXQ+hxzVobvBbRNGIrlTFA6cJaet1aA0= X-Google-Smtp-Source: AGHT+IGLJQ5enOtPE13aQ+/NIdbH6s0S5HLwnq2JQ7qsPrp+J14Xh+TVi3Hmr9X9Sr+7gsTyHm2Dpg== X-Received: by 2002:a05:6a21:9d91:b0:1cf:3201:c3ad with SMTP id adf61e73a8af0-1cf5e1c8112mr3689026637.49.1726006667581; Tue, 10 Sep 2024 15:17:47 -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.17.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:17:47 -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 29/39] hw/net: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:56 -0700 Message-Id: <20240910221606.1817478-30-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 --- hw/net/net_rx_pkt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/net/net_rx_pkt.c b/hw/net/net_rx_pkt.c index 6b9c4c9559d..0ea87344745 100644 --- a/hw/net/net_rx_pkt.c +++ b/hw/net/net_rx_pkt.c @@ -376,7 +376,6 @@ net_rx_pkt_calc_rss_hash(struct NetRxPkt *pkt, break; default: g_assert_not_reached(); - break; } net_toeplitz_key_init(&key_data, key); From patchwork Tue Sep 10 22:15:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799400 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 9DABB1AC444 for ; Tue, 10 Sep 2024 22:17:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006672; cv=none; b=n5m20mQZTAr/rHE/uSpS/56G+Qd6bYYncEMCgKreyqQcNWoWcVckZnGFnuHUKOTIOD4LUAU5mlOHW8hwgELMiD7BoTUYgkBzybPUA+3eYHgb3Riw7N1kIJrIxnihQNHWpBy7TNt6A4MZ5SnFRo+vZDixhKF7ub17ExeEmpcF6/c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006672; c=relaxed/simple; bh=s/0rl88v25EsYcfz4dkOzgaDOIDbi6VH77dMcntdP5U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X/R5qXLWVK/AsIPweTKm0t9B37FpE22H+VCJDkVYyLQP9ek0PeYkkj3X3z5XsATKD+aOMsqJlyia2j6UEGx3qpo4EpLjR48y/ZrQXWNKKnlE8B4TQau9i08YElZo76Q6rWB4ZIUEvtg5KauSO6TtboPNjpYOwkvzdujfvTJPBU0= 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=rNnXpnzN; arc=none smtp.client-ip=209.85.215.172 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="rNnXpnzN" Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-7d50e865b7aso4609383a12.0 for ; Tue, 10 Sep 2024 15:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006670; x=1726611470; 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=JYUGVuBQPVEKq8uP3q9x4VvG+Oea4tuw5RjsMn3QXjQ=; b=rNnXpnzNv5rI3GmQ+0EFZ5rW58EWqBeCzll0Wl5hMC1z/eqZwVHFu4Jk+PcHdFNAfw KOv+/uvAM97Z8no6nWgf1BNnNdVVpWH+z4tnQLwlJEjhw8S6qm025eHmykGdrASf6CUw 251cLU9bonN5HCfHGHEuR6K7WbYo1lXT1Mac8PR3b4wW98xcoya9FjtXoS7zN8IGq0XU tMELEk6CAXYHv03i+Iv2NcgwHAbo8RUgGmmQwCCk3lA3IBlcDR1Xc2AIGQkkGKQYOTFF er5rr0qSxvG1r0l7W/t6dpLcL0ozYAnWpZCp2fMmynOK2Cyzi60fg408UCiQBvaubck6 jMlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006670; x=1726611470; 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=JYUGVuBQPVEKq8uP3q9x4VvG+Oea4tuw5RjsMn3QXjQ=; b=uRXVZxSLofLjMNsFAOKgEGxI4dScjyYyzwVPGlWhoOpBlqrWPci2d3JDdPkHP0xVE2 vC5mfjrgW2OYdYMB/XAt64U3Q0MwJrwV1tcTMC1yyVwzBtWpzGselAkerjF95aHNSQqF h4aleNnC2xzzqwXhWK0uHiyn91HsRK57Yi8YNx/0DUNxr4t5FZFjO0yGoKo8h0sRWWHY F+3J+CushygjpAi1lzozB9itvBcZ0yNai5zPZa1Qawz2V0+sov8HeBe+rWUzv12BbqmA +vnCCKBwSVOJAtDj9m/+g6AIzavhwU6H/WI1RhlRI5eJQh78RcscCFmXJZiVE+2B3B4y xEiA== X-Forwarded-Encrypted: i=1; AJvYcCUGDlAtNO8uab7IVo2dR6JjJ06IpD7QcwoyX6L7jCR5y2ZkjTU7jmRbkslWQNfwndbz/3s=@vger.kernel.org X-Gm-Message-State: AOJu0Yw3xLBCU+ADFU1zextaBc2rAXuxbrzlIM9pfnEE/CSmKgVKLGMM dTRhD+i4Go1Nn6UVVfZ58q96ATr0WOlCjZynQxsUsbYQkrjfn00txqiEJZwcLfQ= X-Google-Smtp-Source: AGHT+IGvdYbUxOn3oVTMiIOAaos8t5NEoWDicsVQH4rvVkTo7ZcM156Q62Eu90CVjvFHEgcLmkFROw== X-Received: by 2002:a05:6a21:3a44:b0:1cf:284f:778d with SMTP id adf61e73a8af0-1cf5e0ae114mr3221600637.16.1726006669948; Tue, 10 Sep 2024 15:17: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.17.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:17:49 -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 30/39] hw/pci-host: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:57 -0700 Message-Id: <20240910221606.1817478-31-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: Philippe Mathieu-Daudé --- hw/pci-host/gt64120.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/pci-host/gt64120.c b/hw/pci-host/gt64120.c index 33607dfbec4..58557416629 100644 --- a/hw/pci-host/gt64120.c +++ b/hw/pci-host/gt64120.c @@ -689,7 +689,6 @@ static void gt64120_writel(void *opaque, hwaddr addr, case GT_PCI0_CFGDATA: /* Mapped via in gt64120_pci_mapping() */ g_assert_not_reached(); - break; /* Interrupts */ case GT_INTRCAUSE: @@ -933,7 +932,6 @@ static uint64_t gt64120_readl(void *opaque, case GT_PCI0_CFGDATA: /* Mapped via in gt64120_pci_mapping() */ g_assert_not_reached(); - break; case GT_PCI0_CMD: case GT_PCI0_TOR: From patchwork Tue Sep 10 22:15:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799401 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 CAA211ACDFA for ; Tue, 10 Sep 2024 22:17:54 +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=1726006676; cv=none; b=SX97RzpWYkLjGe6fTOvvStYimXCY19+8ZlMPeKSKvJGNZQuflauPr882QVsAiv2VidmYSocw7hWyAeqTBqCiL7hB4dn88XFDeGFT4wAvqVrJKwbOgag2PV5VlscBDwLw0/BqYfxIBRhu7OPV7vEbSR2u3BNuAoS9ZjoQ8ejru/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006676; c=relaxed/simple; bh=73+xArPtGdQhSgylSBc2A/P2chBiYYe704uXZtKsGCk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AXFOTqZrQbfWTpzVXM2qdwv0RyFkoLlTksplijX1WAKExbkXsgeKnV5JNxkY0Jj64Cz9G/QTn9uoio0iTwYkJ7xAUF657Rxl4nyrmHwJBmr3Z9idjESYHqlaniUCALKHUCXsJ0FMreAWEQuyDSUgj36XwBJVdEX2gRN0A9rVtcw= 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=xunltBAS; 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="xunltBAS" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-718d91eef2eso193695b3a.1 for ; Tue, 10 Sep 2024 15:17:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006674; x=1726611474; 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=Y03z6l8DG3u8GECV91NkbxRNu0WgfcfSpqwz7VG8iPg=; b=xunltBASrpuHN196bfzBW49ZwkbWMQzQGNWuX9yums5K+S255FAmHBUF9pgJc59fje Mudz9hSshr8FctL5pV+5PFwcSmyGmuUN549SzaCeU0jr0OEAzRcODZyhIhpMyy5ED+Fx xM3yYDEoOJ723Pd0Ad4iRsRmkpFdgvoih2fEZzNUCjRmb7TiF2QpXwhRwY/7gWeMjGmv NXCqTUY4QX8BhQq8AX0AeVw6eNmLpwzzlWG2fhdYEB3jVd+t//XM/ZjGb7iaPjcD1tvq mF3T7T0aS8GRDEthK1GxrVesOuVJ2D9YyO9Lf1dXzCLVA17w4hWqWDYcXvd3fi1iNcB2 I9Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006674; x=1726611474; 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=Y03z6l8DG3u8GECV91NkbxRNu0WgfcfSpqwz7VG8iPg=; b=OPQONSwmZhm4DGirXWSOaPkNQ1nglhjV7runDEDikwTceYKVu8v+LtBm4D8fMxhIXG JVyQvCBxH5X9l20dnLcP9k3UgqQu6YyKqK5jkN3QxL5K6jnjTRxlCg5f/d9mqsAluV4E /ozbEQnbeC5bQDmtjnaTu74lmU5Nw5oHzRAxrrA01l7Ya+ejLaazACw9Dnmk7GQrf7hW c7XfkQTVelN+wIwEKN9qQXU/1U+SMOMrDHB1Feqn8vOczupVO/j/ettF+CWXCAwnc4Dx L5pmRKnn92D5AAXBKo5RQVTp2/cZTKFuDRF0GAORKzQ40R/m2XftOdVTTUr+x4cV7kkN CeJQ== X-Forwarded-Encrypted: i=1; AJvYcCXKtZmE5fAbiQsPvWpIlkIQzVgtXVWAA4IY21FfdW5uZibPad2Kh9WthrTA4DqD9afBthY=@vger.kernel.org X-Gm-Message-State: AOJu0Yzitr1POd1czLzoiJHBkx2NRKe92AkWiwXZHpEH+eDVEEA2yrcn FRxxj4XizCrsJjnuyjz5L/sTLj6vbM5zS8lBDwNe5mhLGZJbyPSLT8cQ3EstEto= X-Google-Smtp-Source: AGHT+IEF2VwVmQZRrfJAA7uZ+UwAfLlPUUkIQKs4NFR64dug9ZAQdsOWBGZU7vtbJ2ZkWpCk8KGdug== X-Received: by 2002:a05:6a00:6f0c:b0:70d:26cd:9741 with SMTP id d2e1a72fcca58-71907f29d40mr6083429b3a.12.1726006674179; Tue, 10 Sep 2024 15:17:54 -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.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:17:52 -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 31/39] hw/scsi: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:58 -0700 Message-Id: <20240910221606.1817478-32-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: Kevin Wolf --- hw/scsi/virtio-scsi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index 9f02ceea099..6637cfeaf51 100644 --- a/hw/scsi/virtio-scsi.c +++ b/hw/scsi/virtio-scsi.c @@ -357,7 +357,6 @@ static void virtio_scsi_do_one_tmf_bh(VirtIOSCSIReq *req) default: g_assert_not_reached(); - break; } out: From patchwork Tue Sep 10 22:15:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799402 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 4A0301AD9C2 for ; Tue, 10 Sep 2024 22:17:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006678; cv=none; b=Pa9LHzTLKEPYsclOMfngkoG1kznmKGEet06gis1cMxPsaGPSboBATgDiQHuYmCIGzcBPmTZOHhzFT+RVFtLkOVTnj9o2c73bqsShKTei4hsHWWBKX5CCfQl2u/N+g01FgVvFymgpyq42CNv74DhhN4QxvElARtLb3+YLFxlqRag= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006678; c=relaxed/simple; bh=bViVuhrF5pJxEDyATj+rI+6Btpw2tOS8X954m8ogHCs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NE7N1FmROukoOLlraU7CE7bRWWcQSt6GZS96b6BrboN2j9pfuHJ/zLUQ2F8KcjtXhFB7xHt2nJAkVV9Bpy3XwcdHLURrDJoV+liUyfe4kgWaqDWt10TgPTq6F9XsPc5XqqjqxVCb44Isp7AFwiWUZEuHUXV2USyqX+tIWd3bSnI= 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=ZNHq0Rrt; arc=none smtp.client-ip=209.85.210.176 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="ZNHq0Rrt" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-718d606726cso3379666b3a.3 for ; Tue, 10 Sep 2024 15:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006676; x=1726611476; 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=qnKY2nRodBoXlCJxTEKFwGzTN7ry8AAwSqqRpoqXdQI=; b=ZNHq0RrtgE6eiLtff1yJV3rEkUdAAi+tJyOZcyjalS2NsoWppTZus3Ci4RUQv1W7HI qpmsl2eP0zfiK2ohO/sXwLhuKgLul3P46MYpOBh+QSsiR8KC3WkMb4lUpDANWpBmvqJZ eDFBguBEMY7oCjwL8pbFfSlgAyH30ADD8qGndJD/C+9bvN6LINPfWulGm8B6G4Np0Eqz 9XmgmO+xj3g6gYlM96OBEwr7DReJDiM7irpJ2/lrvHKXtbFJSg4GRgxWsBgraBi/0UVV ELonqDJ+Yd21tIUhOqeMaWTb+YIepH1+ONAbsuVyKwi6tma/YcEo5tWUlFwmgk6WSf9s b4Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006676; x=1726611476; 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=qnKY2nRodBoXlCJxTEKFwGzTN7ry8AAwSqqRpoqXdQI=; b=GdIulTssc/UIcUZihCWtc9h+72qdSe7eDf8UbjYWiCeHvQ7uVwzPhcoG57EMBD7rTj isRMFNV19XzH0Ws35jYljMQYpvdlatpaQTyPFgOWU4TmXG4t5VBtiVtqPaUMTmS+kNiB vG6ClBlkp3cpZO1OxMg+18Jh/Xr9CVN4n3yJNHKSQApnQIJYAyhMaebU2tJ8kJ+OHlTF mpN9Yz8jiMJOydz0bInCO+V1xqSuITuBwy0VJtq2oRHDjhfnA6egNchzXj5bSG8vvsVg w7Gmi8UIk5jmxflrokeBfActfAm/TH+D9eMpMnueFM10L9sXJ+fgySUF733WfLTvE5q2 y+7Q== X-Forwarded-Encrypted: i=1; AJvYcCWwetFIJVhuJOmvYDeQqPyC/8gvqQF23oQB5AZZQj+JBvlznThRvNyvtHmmfIh9eP0og98=@vger.kernel.org X-Gm-Message-State: AOJu0YxLAB+1DS8/htKVcjP7WBLnUGR81DoO42vjYAukF5e/5eWGXoG2 OkdJyq60hq1v/2yuR5DasBvUyZgEF8wOyr+3/TBhFxVRsTO7F0mHDCpLIqBSFBs= X-Google-Smtp-Source: AGHT+IG4cFG5WUgQCn+PBNKJBzHgRuN4SjwOR6zpKqMGbFV0/QZbeUwbVdFfJerNt+rSe5+kt4gssw== X-Received: by 2002:a05:6a00:b8f:b0:70c:f1fa:d7bf with SMTP id d2e1a72fcca58-718d5ded8e1mr25670829b3a.4.1726006676561; Tue, 10 Sep 2024 15:17:56 -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.17.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:17:56 -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 32/39] hw/tpm: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:15:59 -0700 Message-Id: <20240910221606.1817478-33-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 --- hw/tpm/tpm_spapr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/tpm/tpm_spapr.c b/hw/tpm/tpm_spapr.c index e084e987e6e..5f7a0dfc617 100644 --- a/hw/tpm/tpm_spapr.c +++ b/hw/tpm/tpm_spapr.c @@ -206,7 +206,6 @@ static int tpm_spapr_do_crq(struct SpaprVioDevice *dev, uint8_t *crq_data) break; default: g_assert_not_reached(); - break; } trace_tpm_spapr_do_crq_get_version(be32_to_cpu(local_crq.data)); spapr_tpm_send_crq(dev, &local_crq); From patchwork Tue Sep 10 22:16:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799403 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 AA2001AE039 for ; Tue, 10 Sep 2024 22:17:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006681; cv=none; b=VOjJyLM8R/b6yT471CVoALo7ts2vbe/6SsjHMd85L/0qDGG5JzYWcW4g8dkoNUx8/e04oRGtJwo1YpqF9mRZmaOjOmLPfrTBY9h19T5QGWNMv9r/7Gny4quQ+Ez/JYsY0fhdQ3kIcAWdXtmRAb1a/Cyedk7uvMgzhGBs08c4RZo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006681; c=relaxed/simple; bh=AfRU5qLiYkUs/ycyWbnqZMzqmTE2MT/cxzy1Bf+/N7Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hf81WwaXL7MlmC4cd7Os22C9uj813TeiwqnW8csDPtadiBQuPycjz/+fMM6i5r2bOmvAs5y73STsd4FvWiI8sh055U93DgkqtLlmXIJ1G42Y4+UBSVr+WvxiUzspbIXz6X8GvbXi4xz0+QPVzEKJLIlQLAzE650J7mwI31Bua9I= 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=EGSa8j0K; arc=none smtp.client-ip=209.85.210.177 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="EGSa8j0K" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-718d91eef2eso193776b3a.1 for ; Tue, 10 Sep 2024 15:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006679; x=1726611479; 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=CCyNLuF1LstqlhxKrvBEXR8Gg4TvMK5bWfzhaE1qWNA=; b=EGSa8j0KHAn2smdGUTlVTgKnmq29FFSHasercbKwkPBM0KX5muS8XqgFJluWC7Wvz1 GhQ3bYfXlDGPlFcRwZ9g7R6AIBis25N3MDiUBkCXdfkiLcHrhFwfIuOvhnDtbGKPBTUZ j3MCHJvk6mtXTwHQ0/aOWzo12Xp6C/YSCQLP/mgAZwlts7BNuqRszJyvlKox2R561roN On+m4DL8xjwFC9W7AZkD4SAQdPJQVcNtqaZw4PLYaVGxedpi2NIxWzzOyUGHIdDHglH1 1vHQz/BD+rO4fBFdm0N2ai6veethQtTW8/g10JPL2zO8CTMjtWNb2/R799sFQeGbJYJI 1g6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006679; x=1726611479; 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=CCyNLuF1LstqlhxKrvBEXR8Gg4TvMK5bWfzhaE1qWNA=; b=M3I4znHahL7jEaP49QzoWeoWnjMucFbvy5Rs7AS7jPrAP1BO48nzRtEeIxf8SqjEMq F9HwgWpQmOIv3zvfhPYpNwfsj32Y/Ns1wMWzOSf75RCiQ5neZSXLxxvOOylo3wY3pkND M+l+0TkzT5Z+6gaBeUHr3jufp07YN/Wo9+ZII4UYaeExtGnbYA6FAwbqBk/n2Y2bD1Kh Pg+aEnCtpeLx+V+TvKXXymMFiYEQd8dBpGKLt/yjq4IgFr7gxNqklZrla6rNUqT2pZce NovM9DFczncJU1LT+NyXvHyghLnEyf08N1jenFRjvpgukrLnzRuLLLVzA6DnhG2X+N9x o25Q== X-Forwarded-Encrypted: i=1; AJvYcCWDhnKqOvebLCnR1QUgM+n+MZfIIxLF74509dBxnFGsRKE80z6Cb5K/mkJgQ/l8/JiehNs=@vger.kernel.org X-Gm-Message-State: AOJu0YxFdtG6pECJ47SQemF9aYWg2hzxvVLhJBT9ej3tj/RldKaR3ptN lMNLU1Hst8u8ZCYchU3k1KsnBLPYK++lHEo4pPzkwXMItDIY4ZBUrN/vfMDuGwo= X-Google-Smtp-Source: AGHT+IFmGoBUAFx1KDM5UgKFB0SE/hPbgLc3THVYv58BQ1Gnmra8mNjSAuaAbG/yO+FnHS2rRbeS3A== X-Received: by 2002:a05:6a00:3095:b0:718:d628:3d7c with SMTP id d2e1a72fcca58-71907f54f75mr6220196b3a.10.1726006678900; Tue, 10 Sep 2024 15:17:58 -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.17.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:17:58 -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 33/39] target/arm: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:16:00 -0700 Message-Id: <20240910221606.1817478-34-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 --- target/arm/hyp_gdbstub.c | 1 - 1 file changed, 1 deletion(-) diff --git a/target/arm/hyp_gdbstub.c b/target/arm/hyp_gdbstub.c index f120d55caab..1e861263b3d 100644 --- a/target/arm/hyp_gdbstub.c +++ b/target/arm/hyp_gdbstub.c @@ -158,7 +158,6 @@ int insert_hw_watchpoint(target_ulong addr, target_ulong len, int type) break; default: g_assert_not_reached(); - break; } if (len <= 8) { /* we align the address and set the bits in BAS */ From patchwork Tue Sep 10 22:16:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799404 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 2C4BB1AE053 for ; Tue, 10 Sep 2024 22:18:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006683; cv=none; b=l5zy+qVJZYyGEj2QUfnVA+eO0RKRuczhAh36zrXM5Z68jsZpdK9yo6mnczLT1xmFqXrUgUOxMOr1TvyxCyWABImtEKlAaBljukguJg6VP7iyhs9zZq8erm3H0J/0G8CB8EzIuGtCMHFM6qAXDgizSuNehQ7LbDfWW+JLe3Xm2pA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006683; c=relaxed/simple; bh=byWCUVZY0CZgmeG8Uk3XPiSRQHpXFzzgihmVJ6iWyM8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SzIK3SUsmqlpMjRKbGJ6M7HOc/BhDhtrCttj49Qq5gCVm7nkSr9m9NhCn1M6+nnibWfMOBIqnQcjOVVRzcMpZh6JheVG5D6olqsJFV7RC0eRqQ+H0fdGVcArGoiJLB17TH73KAu4RjHhFtQKLPL9ISD13CDD/4sODdr5P2ArRfc= 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=S+JKjgyF; arc=none smtp.client-ip=209.85.210.181 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="S+JKjgyF" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-7178cab62e6so5308955b3a.2 for ; Tue, 10 Sep 2024 15:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006681; x=1726611481; 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=Nc9MGfuSCocWwKVEpmreZE3UNjtG/w4I6s0g9X8lNJQ=; b=S+JKjgyFcy38UIyPhukUtdAGDU1M+fVU+WvmXzYlnNv4cGA0aYwrMMBGQCewkYz2Gk m6enQOPUgTPTX07LmZx8lIAocavS6RKwfc8YBdjiNvFtN1S0J1djr+1I230sAd6Okg/d kOCCsArmaudDQwghfO+JRq4EomP9p+i0FglrfLT0NoKV5+Gc4HSMRHIN9ihZHvgzwijF K9DUZTG0qIfSSosMWIbiCKsUTS2uDQRxSuzKZ0TweeGmvnoyDy0kg27YqgX1IwMMH/Qa KfJwvLJRWCRl1BRN0f8vxG6c7OhpABCdA1YpkB2XRCOn35cxRwfHk240GbjFbzz7UTGb ez7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006681; x=1726611481; 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=Nc9MGfuSCocWwKVEpmreZE3UNjtG/w4I6s0g9X8lNJQ=; b=VA1ybPe3ryIw8ZFpZdguFU38q9Kjdm2E4yb93WPRNeGzkAIDYec+ZkJVhERQzH49e+ 5wkDpp4EfL6bzgtEcudisjg8TQStzezU7OPv35e5A/HFu8Heaw1nko6PP78cFmdyQ39a rNLRda3Kz7efGMm+3Ixl+nsyJNm71zPbO4Mqo0HVIdIaqCQQbaVC2ny1E4T0/j6aRP0n HO31XI9XxyfDfddsMh782JzEOv6kVuyttBL6luv75GZaYRBmHTqEc1MBdRV0XMOqSf6R VpV209/9SRFVPYtM+sY69wENxGpaaHimlcd+D3IXJjaLo63ob83P826Q3fUrd8SNNmW5 mjhg== X-Forwarded-Encrypted: i=1; AJvYcCVQYLRjylVNHeuXIOFtzPogaimLungEeOlNcu9KFtAtkP84ndeX7uaN4lCpcph2Rm4dx4I=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5QZxNw84mvwMAwS/yCF7z+3I7WS2UDBQ9rNp8CSlWA99cueFE E/oBpYsRYRFc7FcMcAAcpIQKgVtLp4y1kL2blt+yHeyJsVV8jSaSU/cYSrj7a8o= X-Google-Smtp-Source: AGHT+IEWKrlPdcL0ciOz6xX9tzB4Y5/ftvFt/m826lvbOpwq+zPCmtbQUUnnI0rtApLLAhne6XqzYw== X-Received: by 2002:a05:6a00:919e:b0:70e:9907:ef75 with SMTP id d2e1a72fcca58-718d5ded0a1mr20600690b3a.4.1726006681287; Tue, 10 Sep 2024 15:18:01 -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.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:18:00 -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 34/39] target/riscv: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:16:01 -0700 Message-Id: <20240910221606.1817478-35-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: Daniel Henrique Barboza --- target/riscv/monitor.c | 1 - target/riscv/insn_trans/trans_rvv.c.inc | 2 -- 2 files changed, 3 deletions(-) diff --git a/target/riscv/monitor.c b/target/riscv/monitor.c index f5b1ffe6c3e..100005ea4e9 100644 --- a/target/riscv/monitor.c +++ b/target/riscv/monitor.c @@ -184,7 +184,6 @@ static void mem_info_svxx(Monitor *mon, CPUArchState *env) break; default: g_assert_not_reached(); - break; } /* calculate virtual address bits */ diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_trans/trans_rvv.c.inc index 3a3896ba06c..f8928c44a8b 100644 --- a/target/riscv/insn_trans/trans_rvv.c.inc +++ b/target/riscv/insn_trans/trans_rvv.c.inc @@ -3172,7 +3172,6 @@ static void load_element(TCGv_i64 dest, TCGv_ptr base, break; default: g_assert_not_reached(); - break; } } @@ -3257,7 +3256,6 @@ static void store_element(TCGv_i64 val, TCGv_ptr base, break; default: g_assert_not_reached(); - break; } } From patchwork Tue Sep 10 22:16:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799405 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (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 5C0E11AE86C for ; Tue, 10 Sep 2024 22:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006685; cv=none; b=Gh28MPkhh6pxiq35KDUSAOZyM7O8s84yiRqNGZXYFcjEcSjSwM+jRcwzNq3VwsC5Lp4ttqB9l13M9z0+x8u9+SjjccCaijzKW4nIio5Y437cxap9g/wuY0fQH9zwMOeqB/53zc9i+RXN5OypJPPHCzKOg72H4OZW3T0PFhL0SsM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006685; c=relaxed/simple; bh=1AGBMR1/NWeP+5I7hPVtba982O/XvPhQ9gUCXm1FDK0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lXf1Zald0sLZc8NcM5q1fju53Lu1KGgiBXwZAVz0/vT3ccW6rLYjh05VY5zrcQ0VHFTlpGbvBsY13wnAdTwJLJ4QKPE5HIkpiXj1XSCO1DopNp8AJq+0/THXz2iWeDz5OQQiSQWy63qkKWzUoWhlkVzpnf86smupWnyGk2n0cA8= 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=v+EjWw1v; arc=none smtp.client-ip=209.85.215.177 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="v+EjWw1v" Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-7d50b3a924bso1840607a12.0 for ; Tue, 10 Sep 2024 15:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006684; x=1726611484; 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=HVlIH0vLGwHmaRGMFANFNOikFJyMD1Z2/NyDN944UZ0=; b=v+EjWw1vLgH19WwWVNrWPCAnk758zu54eYzgWm2cqQHxncjhVZxx3EnNvG5KtkhjWB 3EfOhlXXn3RVMNDsa0v1wt6RQdtZsGmk/t50AJi2iAFMaqTMBVADJo2J/+ysY65pmgnj NBXhTMoLFiYz2LgAniU5WnF7Ey3ydqOUb2xfji8HnN3WXeXByQJ+ayDSFr/yGXo0Cxik OzeVDkX/TIu95G1p+ziIQe8D+HCKuSvnVt12PO398a1kTgEmupV790fIBJRv6glz00c8 n3GaJ9lfqWbczwIUPnRPCYImYv24m1L+SS9l1uEmVjaXMu0VcilK+gsHaaB/GOvhs7eO DpoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006684; x=1726611484; 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=HVlIH0vLGwHmaRGMFANFNOikFJyMD1Z2/NyDN944UZ0=; b=B9q36yiLBQul3e01CczSfCvehPL5HmQ3h+oX2DjjIO8OUbs02K3F8nQwWGoshgZaia uZMBxiNiNTcm14DYaW5xPdf7ze2wfo3hwXqdQOaghqY7PvDFyejRZERbxUEJ/SiOY8oy CIvrJAfE4m2v6Jx3KZ9Ub/0/SEYCuOdQpvudDweW974WicDRyQDfYWNyJK2VO47vaLpi uf8ljOGzMEFlVTSrYjp8yQ/0tw7KUKG2UHj31mdGOtb66sy3rIjkEaIb+VSG4NLy3mP7 rHR9mMlhnYfOHxHmnl157MjwSvG3zH7a1EkHx27Yb0UKLN7tCBKodg0kE/2cSLgrie5q 3o7g== X-Forwarded-Encrypted: i=1; AJvYcCXstpdwUC8bKGJHro/2lthBCSVNrvdkU65IfyAe5RwUAj+klr1uUEvv0s0TcF5+A3z4/y4=@vger.kernel.org X-Gm-Message-State: AOJu0YyMLX6xjh+niVfjT4PnlXVtu6SuSUW7zujuXJ8OWtNoZjz/9EjO DRNj7OKqI/pNpTveeT9GV8bo2JONkVkMGWd+7mLtJ9d01nv45qLrN7F7FURTUDM= X-Google-Smtp-Source: AGHT+IGmxzzneUTyXUzTC7HDyLbhq6XrgpPzar4wgVhFnulO1e/5MM9gmR+Gi+k9UlOi7JBGbi98dA== X-Received: by 2002:a05:6a21:4a4b:b0:1cf:2df6:453f with SMTP id adf61e73a8af0-1cf5de0ef4cmr3537960637.0.1726006683723; Tue, 10 Sep 2024 15:18:03 -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.18.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:18:03 -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 35/39] tests/qtest: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:16:02 -0700 Message-Id: <20240910221606.1817478-36-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 --- tests/qtest/migration-helpers.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/qtest/migration-helpers.c b/tests/qtest/migration-helpers.c index a43d180c807..00259338833 100644 --- a/tests/qtest/migration-helpers.c +++ b/tests/qtest/migration-helpers.c @@ -76,7 +76,6 @@ static QDict *SocketAddress_to_qdict(SocketAddress *addr) break; default: g_assert_not_reached(); - break; } return dict; From patchwork Tue Sep 10 22:16:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799406 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 2C2C21AE87F for ; Tue, 10 Sep 2024 22:18:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006688; cv=none; b=iqwy0roRQNHstYAPnydf9fE6aeHRVx58dC29PaFvd90DoQtD0qeOU1vl03sbM0SzjERZEWehzr3c+/RDvLv2jMXqYw8dUyeg6IvAd6n8qKqnKV0E1oHVPpLSxnX/Iz/09IQj88FDedzHX6KbNbKaL7+WUObVNALCAuWKCT5lv2I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006688; c=relaxed/simple; bh=dWcHsEJ932nJIkEj4rPPfF5X1KqoBzpxy5C49e9JITc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=l/rfIVkc+yUOG8Nfft9K2DP5pm02GUwmRobcPMX1qkKC+3MlkIOrGBbRh5BpWKFCpUSwm+MUmePhwpas0x3FOI+ZAAOYq4YKCN0jks8eMJnZHoTLZNTFdELsFeI/ARpH6tU40jJW+2OnlUioiRaoFb3Qyh6Fd64n125tfJL973Y= 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=C/Y5fvfb; arc=none smtp.client-ip=209.85.210.172 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="C/Y5fvfb" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-7178df70f28so1002842b3a.2 for ; Tue, 10 Sep 2024 15:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006686; x=1726611486; 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=ilTWC8SUeBuQoT7BUDbD2Q85sEksALIaITVdH6ynhyQ=; b=C/Y5fvfbmdCHlermTdGFwwpvI6jGxbDbE1s8PXn6P8usnWGQddLV7Gi8A3BIwv0nWO gJrTO7LTEEpf90gApxTOhjroN06TMJ84pDrqRbuPwOLjD3/9rG3C3dPvyij+eE2OOuqH 4gkJoOSQ0OfoT98u1Wp96yS70Ph5gTXC0ppKKA46fAXtiLjk5y5d9gK5szM7GofBQEyk 9KwJ7IoDSG5HqAN1vFuwsQ8VBCdFeC15te7CXBemWsxPUvAa4+VcjV4MFlKO0Nlj6TvO SMSiaKtWk1IZ+E8eofuW6FIvfiWlCnlY2cva+F6I+xYHulh5StJv3Vx8ex80HLM4zUWu laGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006686; x=1726611486; 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=ilTWC8SUeBuQoT7BUDbD2Q85sEksALIaITVdH6ynhyQ=; b=BIj60tsdL7q79eqBjcuZMnyFoy3nHGvsHCFv7jXqfRCzEteGPd0/pkWST2T+m5rWr5 9l1zZKXBubVnhDXfD6gnUKKttajsoH6swgoC/JH1Ffat1SI5JRsMPZSmqzumY88SXMTT M34nRhLB8Mc9aCSRMxyuX9y2fUUh60Exmh0OysUu0HZCFVG4gfsxmPjo7gQ4pZyuj9o2 vr4NOyrVkknuF9FGav4f6b9k8FsADmC8o5uvM2GB2NZd0lzXkdZARiLY2wXnHN5nuDvS 5mdV7Gz7+UlkOpdxMAvYjhi8RqERnQdKziCjwtYNlRhgrD33pTnTJiqPQyyUDJUuxzr0 LqKQ== X-Forwarded-Encrypted: i=1; AJvYcCXr09WQklDKzK9Orar9PM15eW84SDWApN6RWqqjBCdF+IfpUC8stKaSXp4fvW98NyZsJGI=@vger.kernel.org X-Gm-Message-State: AOJu0YyLa72O6nwbciGD0yNSXFlCMVgLrI1dCWqCFgiSLq9HDielzakO 0d+prC1y4Cys31z1dygjH7wjDWhozJnqgXKXVMNNlvCy5XCFh2CHOsnB2TntjsQ= X-Google-Smtp-Source: AGHT+IFCrp/2O2fWq/sOFJdW2m0YIC6PP34v266qfmkWHzxnSrAINIAZCxBzCzEo5+wVOk3yz3M+wg== X-Received: by 2002:a05:6a00:1799:b0:706:5dab:83c4 with SMTP id d2e1a72fcca58-71916e7d1bdmr1330581b3a.14.1726006686207; Tue, 10 Sep 2024 15:18:06 -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.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:18:05 -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 36/39] ui: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:16:03 -0700 Message-Id: <20240910221606.1817478-37-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: Philippe Mathieu-Daudé --- ui/qemu-pixman.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/qemu-pixman.c b/ui/qemu-pixman.c index 5ca55dd1998..6cada8b45e1 100644 --- a/ui/qemu-pixman.c +++ b/ui/qemu-pixman.c @@ -49,7 +49,6 @@ PixelFormat qemu_pixelformat_from_pixman(pixman_format_code_t format) break; default: g_assert_not_reached(); - break; } pf.amax = (1 << pf.abits) - 1; From patchwork Tue Sep 10 22:16:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799407 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 9855A1B150D for ; Tue, 10 Sep 2024 22:18:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006691; cv=none; b=sxWTiwDzyA9pclVV/ti8itcMiTzaLAYBTotBm4O0rzBOX0dkjlJuNjRq9gqgCLRKE6v4rFE7lcma4baYEa7i3pMD4JeLrRCi8SUmYSlccHESf56C5dvOquNj0GcQCOI/nbl2WsmDOYO3nwEZUQM9TGytiDw34MkrngGVzuntRdc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006691; c=relaxed/simple; bh=U/hJ8AHDBxN4vbSkcUYneem7sLGkz/PxyrW5VkLEjPY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NzofjCRJuTAUOE+YzFDCuCElYVtXpwYMy1NWuzrCiEaQ3BcnrvxRW0LbJYsyzTy7zm5U8qp+gxcJvpKtrU8BC1Gkna8bkypzvNE12G32S4uy8Cg8g75RsLheh60jV+6/lp2V8BnLhmfNR/1Gr8/9Y2BfJWwwl+ILazHIuHcpeSM= 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=zIIn/gEM; arc=none smtp.client-ip=209.85.210.170 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="zIIn/gEM" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-718e6299191so2047548b3a.2 for ; Tue, 10 Sep 2024 15:18:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006689; x=1726611489; 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=w3yhi+ZDTWCfsZmUwBuf/pfnGgC91a9e/gCoVrv3y5U=; b=zIIn/gEMSPl+NTeadxYcwIKFvNKGgbrFiBrs8TVpHIk3bpz65nHUiaOBEllR+md/9A NPUO9Uhe838GIIEMdE/aeA85nFW87z77r62w+2oKRT/FKXY4RKOeBTKHcTaKue1rRlEc VRGS9ufTpVjOTo9J4btzd4iMMe/PI7waUNVH3wMAys4N7vxTVMImJ4fKC4L0LQsN3ONW UKt6qHDuTfsmARyonZVOyvVks8fL+7k13ASYw535p49n90zO8ieI35qWtpfgDWZxl4XA yoIXyCfsOSRCGyKs4HXaRgcmZ18+lqCFNBHpNaOlSmmYE5EyT7/shNxJlDt7kuFTWe5N +WSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006689; x=1726611489; 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=w3yhi+ZDTWCfsZmUwBuf/pfnGgC91a9e/gCoVrv3y5U=; b=LCf7gkxoy3EljOmvsfY6NOUj2DfKhlj3D1dw7IFMjlKi9T4k800UcNB/CMNMVv32F0 dUGnxXULLu3XR9omf1tSOjoaS0o9CcZz6h8tkrSSn31qQUT39YdgjAVCm7BNZSCwdBgN 1kCOxCzexBoQ3lLtcCgvBruICyK38oXDL+JjEreJ9jJOTaKMRb4L7x+Dh9Gx4WlahmyM bL4CMniyUDtgeAj2AK8oJJmtKQGG5R1G11PKmTkaDIHuFsiWx89oIaVGSGQHvrF4YsOC q9/lEDrp+yMt15XxMb5ErPuYXmk4nIQucbLrvHZvQZCFSaSNVK161ol8TDcBoz2QViWk fdqg== X-Forwarded-Encrypted: i=1; AJvYcCV8pnPeHLPFGqtnfxJzEq7PW52zN95NaIYJSlF9mMpGGJFKstQTVlWum+ID6QRDpvJGmi8=@vger.kernel.org X-Gm-Message-State: AOJu0Yw2g6GyM5X9NWtPodnB6OGYt7G54j0tS3OV83nlHFY9vWYnb/BC SWHMHNYR81BJSHVnMcUQYg2lvwYgozeNSBei7KKRql27xkT4DzmY9LCfCVlPbu8= X-Google-Smtp-Source: AGHT+IFWVQXCFJBuiwg4sJ6d5t1Y5jRczP6OzJP2N7AUafUaS1UpRZkOWeoH/e+NIJwWwR2fc3KdxA== X-Received: by 2002:a05:6a00:218e:b0:717:9768:a4e7 with SMTP id d2e1a72fcca58-718d5ded0acmr15828847b3a.2.1726006688573; Tue, 10 Sep 2024 15:18:08 -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.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:18:08 -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 37/39] fpu: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:16:04 -0700 Message-Id: <20240910221606.1817478-38-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 --- fpu/softfloat-parts.c.inc | 2 -- 1 file changed, 2 deletions(-) diff --git a/fpu/softfloat-parts.c.inc b/fpu/softfloat-parts.c.inc index a44649f4f4a..cc6e06b9761 100644 --- a/fpu/softfloat-parts.c.inc +++ b/fpu/softfloat-parts.c.inc @@ -1373,7 +1373,6 @@ static FloatPartsN *partsN(minmax)(FloatPartsN *a, FloatPartsN *b, break; default: g_assert_not_reached(); - break; } switch (b->cls) { case float_class_normal: @@ -1386,7 +1385,6 @@ static FloatPartsN *partsN(minmax)(FloatPartsN *a, FloatPartsN *b, break; default: g_assert_not_reached(); - break; } } From patchwork Tue Sep 10 22:16:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799408 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 9FC6F1B3F36 for ; Tue, 10 Sep 2024 22:18:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006693; cv=none; b=I5slG0j/lLa2CWiNp5ahhFbN9NAP5Svxy+ElN5/7UfNRAsNTV/u0ooKWX83TjfeCXKQ510jtaxzbKm/016nBhsa1aApGyJkvoQBlouEv4MoWKdlX0cbdFrTM5QA8CZMedG9ln/VkCtErnVIYnGgjt6qedDDytIirUVZ3nplPErg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006693; c=relaxed/simple; bh=7tnyEKGF6I0kdsqEPySzPknXjOBFuB9tDuzYsVVK+fE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qckC77qZiYplzLyy5oT717bJlxyYLr1zMZIqdW3YldEJNA3kzn6wlr1QinPiix1pXNO04UZLddEjPDrp5UyxUwbwBai6FVdZLLiCl7vT9aWBIfRqYl1Fk1tcgNDWLCmXo6ZigWGrN38IT74KJuXhK7ZFxQ+KSF0d9JfPtr4lIQ4= 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=izifK3UJ; arc=none smtp.client-ip=209.85.210.177 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="izifK3UJ" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-718f28f77f4so1195246b3a.1 for ; Tue, 10 Sep 2024 15:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006691; x=1726611491; 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=nwKevNIRKkN+EDjbfQlFt24U9FBu+BfVdKedtfXUqZs=; b=izifK3UJ5hCKlDQzWmLdFp0VawhL7+ra0Zpk6a0i4JBtqkRLOrA3pjPOjkxwwFj9OK PS5fbjm7YRQ9K6vCk66yox2DclqdE+AZVAtUtukYXQkgmmkgCEHtskyZGWK/IKui9CIt uwh/9PnodDeF7+xQSo0tOl35nHOw0fZ3U/j1DW/DAZqlxU6Z0IpLXm8b2GcnhqyeyULS kjEFEYHBo/3Gumhg0Z1POp7fQ2OSsk7JiIaRA5iPoy6LRclCxGdngMJ9/6/sOWudNIxu ADNCG3oHRc0utFpIQUe2pY7sNDSg9N0njHX6ZD9RZEwnqceif9BkSBb6p/HL3zQ83+UD OvMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006691; x=1726611491; 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=nwKevNIRKkN+EDjbfQlFt24U9FBu+BfVdKedtfXUqZs=; b=PDk5vZmVmssho1F6ftkcWDOmQgsRmY7q1T6ixJOfrFc0Rl6WhfwuowVZCUoFms2Vtu 888y3dgB0BrUIlZHVs3Ob4AAHIRQ3JsHECyFSuyRL4XKY3MnVfsHQ9QLZBFSt8pNIUOo reV/NcyQr4k0wkyH/XyME4WCcrJmpBXUSpUjZdqx32gNIqqbdUlDq6xL9AOLqcOx6jps VkNgq9HmPTZCa8x62pUFTF7JQ+hGl5JdIVhHIE9oEM9xcuy4jbUPYsy7MALxyzRDK2/h 2N9vnbI7pBJMjxLAT5GHrIW3U0MkorO5T9axNN5FSI2LxRjL6kLk67fq0EJ/hcnC1Etz J0Jw== X-Forwarded-Encrypted: i=1; AJvYcCXwH4G8yY3eU7n1BuW+pqyo/H684QvU9DHnptnf/xTvxgAFGaWAIC7QhUnepRBSJ3hpFQ0=@vger.kernel.org X-Gm-Message-State: AOJu0Yw8lNICT5ZmaCbO3gM92in1DyQP9UtzEiBad9XABJ1dxwLwwhxj 8C0Ca9z49Fq5NIMuHht0CiQqP1pek8r1SiwtoRI1X1s6nHlaEr8xMCz0PzxPG+A= X-Google-Smtp-Source: AGHT+IH1SlHsJsphQAKUCS+TONfXaMdTKjfpItrNVqpZABGJSlkB8aGqx2pcbEZTF3hMcOrMflu/7g== X-Received: by 2002:a05:6a00:2ea5:b0:714:25ee:df58 with SMTP id d2e1a72fcca58-71916e9b6ebmr1238405b3a.18.1726006690994; Tue, 10 Sep 2024 15:18:10 -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.18.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:18:10 -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 38/39] tcg/loongarch64: remove break after g_assert_not_reached() Date: Tue, 10 Sep 2024 15:16:05 -0700 Message-Id: <20240910221606.1817478-39-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 --- tcg/loongarch64/tcg-target.c.inc | 1 - 1 file changed, 1 deletion(-) diff --git a/tcg/loongarch64/tcg-target.c.inc b/tcg/loongarch64/tcg-target.c.inc index 5b7ed5c176b..973601aec36 100644 --- a/tcg/loongarch64/tcg-target.c.inc +++ b/tcg/loongarch64/tcg-target.c.inc @@ -650,7 +650,6 @@ static int tcg_out_setcond_int(TCGContext *s, TCGCond cond, TCGReg ret, default: g_assert_not_reached(); - break; } return ret | flags; From patchwork Tue Sep 10 22:16:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13799409 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 017F91B4C26 for ; Tue, 10 Sep 2024 22:18:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006695; cv=none; b=aXzkyMhdbO0EyRm5w1FaV5S/QQvoStrAlUh8JPafhwZmBRW0tsD49BaXRFvOaIRgpOo7AFsLRCaiDKBfbrVrmiaWvi/mpBonjw5NUzhc0jlurgSIGGnvUqT6bF4Hp+v6h2TSJgluxfceIIAGzGBQm+UsKoppj3r4iq9OE6+ehJw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726006695; c=relaxed/simple; bh=tEryYMdiHZfMyGfxOhmuqxgxr0q5IHrgMjp04AZWD6k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TPjIhG7+bTMQn/2ftIsObiKPseUPP4BP7kfxJ9n7+OGKzzq09XkkVUD/bS5yrbMb1BN6DJ3kZ+wytgSaXIkcuMf75fbUpfKWwl9VKnWFglfSKfWiD96UDfNOloYHEs9941Sqkrhcw6S08L4yKw021rADgrw0RM0ZxtO6J/5Cmn8= 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=WRSeQlZw; arc=none smtp.client-ip=209.85.210.174 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="WRSeQlZw" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-718f4fd89e5so1254173b3a.0 for ; Tue, 10 Sep 2024 15:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726006693; x=1726611493; 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=WAUNG2Z8iwfixvozuxuZzI5U7SDFeb08Hf/Nr+6pfa0=; b=WRSeQlZwgdYKX8DsypaMwbehY63BY9OlK5fU944AVQwIuTqeTX46/HYOOonDJZRzCR z5q7Qs4M7ek8P2z4NmKnpHxbc1rl3w8lgM+vo5fadxJM0Sl8M1j6qcHCrsRSMVmuIllZ KE4hU1zeCiKoMBgAsL5t3V3dn+Sb2O1fseQpIbWb5gwiXgBIxG4C8ymyzxwzjAdTsc7D oIynsJk6/kBw9MymsqRfLDOTxl2Hmpx9FAX2T3bChpzQtTKBTLkKGfPk27CzL3mwAayM 8KW3qls4hZoMzFO1C51ATZypjx+V5fVp0ZzRhWMujRXrCeOe0LFW0K/4weEnPzbyiIf8 LDWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726006693; x=1726611493; 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=WAUNG2Z8iwfixvozuxuZzI5U7SDFeb08Hf/Nr+6pfa0=; b=UJd41wjF4/iMQpWW4iw7dNnDy6sPLo2E1Hf9js3mz4tOcYk077bQIUGY26K7FpvGJY 07ZO0qYa1GpHaaxKm6SfERiPioPXhgaJEckyiqqr7dooWZMJrt0+XZWtiayxmdhocXPF El+zuI1LuXagDlMzwO8nJCqSlfs7Qd3RJolAU2D63FQ35d5zbwMmeoQpuztM6JOWHAOI +gpwy6ia0EtIJhH+NcHYSq4oqGFTnTEHX2IwcuK+RD4X7W1LyfdBRuf6thwTX1hn73Dd wpK56FsKC1UatB6nMCTvljM3Q8m29URZOXQxp4+khB8EDMCTxg1B7qnGFo14Be89nC4+ bF2g== X-Forwarded-Encrypted: i=1; AJvYcCW0uJGwsXCfVLN2GhX5lHW0oCaxLJ+GMJXm2bwJLVBHXXDzHEHMnodjd7otU7XaasI7mco=@vger.kernel.org X-Gm-Message-State: AOJu0YxyY10tWNjypbXMGq45TDND2C1kiVYqCFyJxasBQjjQgb9d5N4A iJPX5uVbqlKTY8hwfhZurS/rJOdJYKqMmbFoxioCiuBKq/3MlEf0QT/mTibOeyI= X-Google-Smtp-Source: AGHT+IFGhI3LMnJRi+254dAZqpPbVgzsgGXn7sXIi4XpOoxOVhAxol60+FTs3bT9dBxAMQw1ZiUN2w== X-Received: by 2002:a05:6a20:e609:b0:1cf:42ab:5776 with SMTP id adf61e73a8af0-1cf62d5ca4amr1800943637.32.1726006693348; Tue, 10 Sep 2024 15:18:13 -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.18.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 15:18:12 -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 39/39] scripts/checkpatch.pl: emit error when using assert(false) Date: Tue, 10 Sep 2024 15:16:06 -0700 Message-Id: <20240910221606.1817478-40-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 --- scripts/checkpatch.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 65b6f46f905..fa9c12230eb 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3102,6 +3102,9 @@ sub process { if ($line =~ /\b(g_)?assert\(0\)/) { ERROR("use g_assert_not_reached() instead of assert(0)\n" . $herecurr); } + if ($line =~ /\b(g_)?assert\(false\)/) { + ERROR("use g_assert_not_reached() instead of assert(false)\n" . $herecurr); + } if ($line =~ /\bstrerrorname_np\(/) { ERROR("use strerror() instead of strerrorname_np()\n" . $herecurr); }