From patchwork Thu Sep 19 04:46:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829566 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154103wrn; Wed, 18 Sep 2024 21:48:46 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVxwkMJL6M/DbsdYjIFuNzYwp43WdTDK+nVqRwJn7Pas4xI2CwOsQ+YT5iugI3fXwiKUEHeUA==@linaro.org X-Google-Smtp-Source: AGHT+IHnH3jizxCvjX3p2q2CYIIQknptjGa7CMp2UxufhCPgKMlxgN5DPcZc1m/pwRJQXp0oTeW2 X-Received: by 2002:ac8:7fd5:0:b0:458:59e3:2b4c with SMTP id d75a77b69052e-458602e060dmr410391351cf.24.1726721326168; Wed, 18 Sep 2024 21:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721326; cv=none; d=google.com; s=arc-20240605; b=EMroqpmUH65yRA8vW5i5WifFRv8KQqwJ267L+r34O+FZrVm69nLFjfD5wdmsv2EixH 8QQBvhmrlaEhMqFOBsKIeFKpVrAw7QLuY4aoQ9Fzb9JKGMtdmVgelcrJ41NfYFeh2tFQ aahMAcoBIJNBQRpCxYsx8p25flj9V93u/iG+NAVoQS3iiBjNx9tHGB0GO3QUcmJ0NfIa NOwsP+oUUEyudm1nkwP+7OQyjrOnQahhFe4OU3TYeuZHts9XRBjtxX1EgE5LvUbHVeHi 1AFVM0PulFu442tnm3tCMlaMApCOInMb+bWXirCiqPD7zwnAZNNi5MH7620yLl1FLytD Ihpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bKE/FaSnwekzuSHN/DiZj4HlusD3QhW4e3YSU1WvaKE=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=Qs4lXGBpQ+keEeeRQXA8G7gKKeKgGwarti4xWa9XfCUrtUvPi+PnEtI75W/wsRGRs7 pEAlXeiGlpR04O8L/8lVAgqUmYeGT/qO8iw1y/MmVed5Ic2TM4Y7yvfXySqITsiwkEqA 3QtAnIAZQfDQMcSmdGKG9aQ9VZoHLkpQiMBjCKubGU6k0J36wuo4jhFyRThpDhuFpHhg ZZHc0YnS7nEog8TFCW90uVop97XZgn5KsK9JlClzNYSMh/YHzjqjsqauHx6RXFzcuJr7 +lYFbCA9LEjDT4XE5c+6qcWmaCIwaPR3kCCONbxbmep+TBeg9d0ZvEmen+PZIM0hmgTH +miA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BgRLrtp2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b17909057si9894461cf.418.2024.09.18.21.48.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:48:46 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BgRLrtp2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94D-0007Qd-Os; Thu, 19 Sep 2024 00:46:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94C-0007N9-Ly for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:46:56 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr946-00074u-IT for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:46:56 -0400 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-7198cb6bb02so269156b3a.3 for ; Wed, 18 Sep 2024 21:46:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721209; x=1727326009; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bKE/FaSnwekzuSHN/DiZj4HlusD3QhW4e3YSU1WvaKE=; b=BgRLrtp2FfUm5k+m5778bT6fjdYWQThywwVhYOJU8M+4JHwHA+xNwcsXPrjOOoVvD5 xN9bIjZnjPXJh2z6g0EW2MaoxHBEa2nqna79CXtB9/WANEINW6NgudNJVipdwaqlzqls VHX0wF326vkYfeoGywhyboNs2nHLqhR4OhR2MTR1MinDRabeOAl0KtUB9kjHAfbXI6nX +/E///hFOQ0sm6EES7WYjPyrKi+xXM8gfmPX35knnCtjffpagHLtSxWD3jUdcCStYhsj 4+TWSL72OSxuV3FNghNWaUi2HlSb9RKMOusubviUyfk3R8gq7YVD8U1qKKbAP/LBW88n fVSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721209; x=1727326009; 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=bKE/FaSnwekzuSHN/DiZj4HlusD3QhW4e3YSU1WvaKE=; b=UCT7dbq63Khy/j89tPAUb3urvgaJ3ulm8AT8vCr0naNuk7VsFnlyZnf/AL4uxold4V RLWrEhfipN4LSCTjEKXwKhEvkErNquo5BjTFxe7rlIZWe5VL0ox+KZP6wRLpskOrSra0 jsO9k/2ztISsjKRZ5ZMz7lHVATV05DvhsXpsre33unGUq4Gxa77Pk9TO05TWLMFTYSkm jR+fFAbT/YNcLMgLzdCgMH+lFwLejT5mlos4RMLfmF4TeP/Iu5JPUqb1juTBqjSIIP4K 1DOCusGBUG9Hmg0GFCQLvLMMG9uWSYSHyPwwjWIRCUeRANmIj94iScWiriptrIS/VSqN apNg== X-Gm-Message-State: AOJu0Yw6EW4OPWBNBkcGde069yMgjmPpvJwgKf+tBGnkzpqNmgzybitJ IMqjkXiVcH3V+zM7b2T0T/f9Ai6ILoiipCEZo5GkMKpWPQ0Iygc21Hv9vrYUdYAjzGDMAdRTdxN g19Z6FA== X-Received: by 2002:a05:6a00:2389:b0:70e:8e3a:10ee with SMTP id d2e1a72fcca58-719261d9b0dmr36234028b3a.21.1726721208838; Wed, 18 Sep 2024 21:46:48 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.46.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:46:48 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 01/34] hw/acpi: replace assert(0) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:08 -0700 Message-Id: <20240919044641.386068-2-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson 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 Thu Sep 19 04:46:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829564 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154070wrn; Wed, 18 Sep 2024 21:48:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX6ViXTXnuSxt2WIQvtWqMaGNVgXR3/+l7qL6MwpN2V5OhAMfCNsAyIyfE/x7LiBt+kpUKslQ==@linaro.org X-Google-Smtp-Source: AGHT+IFaJOjNxK01HIfNWnf722FTOC2fZyxB9R2XREIxKPQoxZX5CZPQdm6TRU4jDE5TpP2D/Vau X-Received: by 2002:a05:6214:448e:b0:6bf:7b7f:68e with SMTP id 6a1803df08f44-6c5735b67e9mr457090476d6.40.1726721318926; Wed, 18 Sep 2024 21:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721318; cv=none; d=google.com; s=arc-20240605; b=D+tARishVteaDS7GpU+UjjkC7lpteUDvPG1ejWrmpa59vYfph3Yx8PYiB7dB0JbhUW jiYdJfCzQFw6UG162PL6DrQUPS6jf7LyZjG9LXceI9vQxL2yB4K6rjBMrewtpYIg2Kn6 IjkTL+KN/6Cl8Cfb38YBMAah20wa7QCvF4g+OEd5rFyxeB9DLwerBwJmZdwye6eCtrZm lNb8HSav8sqFoPTawKnb4ThGliKFC+i/2ZEvu28P3+5rBxdUOIOXT2TA9no2L0lsFKxk rEhxHUjKUUEdwzswwBfTBVTXcaoDZBlbXFi88ph8wZ1MP8E4hGj5ljtSa7zdmjaQqXWk 81Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OThPa8+cW/n1sVdbzQjJCeNQGruzF8/uwJ+qJfwzSeE=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=SFGlK6qCnMGZTx1HAM5QbnWFaokPVi0JdOfB/bIxsnvOB1oojJP3qlJT4YCgwEV9n5 tAaVtTsWsY2ivwygLCMqGp59NAkCHICq/0bDsDy7kVOLoW2to3snq775zm7Wlxy6CjBQ P4UAtEzRi+a7w9XCItBYBBOEmnebAio3lRg0LGEs/HKzjPxOp31MFoEuUXOyYIIXJRl4 UXSbps9Mnp8zJDxmGmDOiAn3rP3Ud/W1B9oOGcq8pk+Zj4O8dYpk43B3jEU/H6Ow56a/ eTviZTQUdsgcXYPW+ZneBuntpIHnQsyZV33fdst12GwHBtG9gi7U1J/6NuB3MYuSp7B4 O5Vg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GGICXvpT; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6c75e584ccdsi10291226d6.383.2024.09.18.21.48.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:48:38 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GGICXvpT; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94H-0007fJ-2Y; Thu, 19 Sep 2024 00:47:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94E-0007Th-7L for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:46:58 -0400 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr948-00075J-6s for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:46:57 -0400 Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-6bce380eb96so229829a12.0 for ; Wed, 18 Sep 2024 21:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721211; x=1727326011; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OThPa8+cW/n1sVdbzQjJCeNQGruzF8/uwJ+qJfwzSeE=; b=GGICXvpTDX+BnEOqhXtt1b8TTM0Cvga0frrjg4wIc74TdOhwTpJUWwv9CbPoNS1f6K 5+dAX6/VXdcAkRTFjGDb1F4lC29osgr48Z5osRWp7R47kicYpzVzbQu+q4+SXfwOS+Gr YHoMDRHUBD0QEhO+dadYuf7rdzxA62d6dQ4PUddzA62WXoGSJ4ISaZ4mii+9iRAeWh0/ bMWoWvMFCA++u9JBhRQ5WugQThtJebQd+JxrXKGMZj3/ERa6jahCHEQDDx5cxI+2WQQS BqPFPFco9DptZtNJfRgyFx/KpQ63WII9qjNKfMmfBRqk3gWgTJY4kH1omZkIXutS5EBE m7Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721211; x=1727326011; 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=OThPa8+cW/n1sVdbzQjJCeNQGruzF8/uwJ+qJfwzSeE=; b=HfRj9xQBMN9C/LBq2fIF17aMxVC5hT0vE5nzAvP51VhiQnTp8tupMF4VriKZ/nbOwk F1TA1wvVR8Vc2I4evk28kLmP+CgMNi6T7pz+fd9nvdVTLeZP/jULfVl9WB9VTuieBuk6 8ppFVj1hUIWwbqhSbAJIMl7j04SHXvJYSZDqWXPgICHkGhNzh98u16Sia9sIxEpeFGFP fWEBbNQ4WVbHuFe0V+Kk6KNnvRDjEBOFGnlrLtQFuRoyYSrJ+mAkyBAncXfn1iGKAgzX FS7CyUbcHp95bNkQxlyYTaT+9xlY4Bfwx0MKObR0dztwApR1dx8Fj7Elyq87vexHtGyC vj+A== X-Gm-Message-State: AOJu0Yz0j82C3rTMCdwqnV3jzj8O45XW3mGD16xPkmVfFm5gkt+Ubull LXT5yUzFSfUQzAVG/huianz9c39h5Xs8ObynrxOCoOAvq8VF5qvGmQNlxiKf0OyNXANNAT0zdyr Njpdu1g== X-Received: by 2002:a05:6a20:b40a:b0:1cf:3838:1ec5 with SMTP id adf61e73a8af0-1cf75c7ea5cmr35256921637.5.1726721210847; Wed, 18 Sep 2024 21:46:50 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.46.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:46:50 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 02/34] hw/arm: replace assert(0) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:09 -0700 Message-Id: <20240919044641.386068-3-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x535.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson 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 6915eb63c75..f103921d495 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 Thu Sep 19 04:46:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829574 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154622wrn; Wed, 18 Sep 2024 21:51:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU6lBqTp0dtr7Z1aFkbg3NdqHhNSIFyXFPRx3LGHR2Ya4FwWsM4yM+6QKJGWhoH9GtXO5QeQA==@linaro.org X-Google-Smtp-Source: AGHT+IGzcTODK/BamTui9sOra6TBxZ+UnW+nXn/zw5dqjOv9Ct33U/5zkt9b8po014eoCR8tpDLZ X-Received: by 2002:ad4:448c:0:b0:6c5:8ab0:60cc with SMTP id 6a1803df08f44-6c58ab0614fmr252415016d6.40.1726721484831; Wed, 18 Sep 2024 21:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721484; cv=none; d=google.com; s=arc-20240605; b=J5vcyyLgYZPXfXqNFPaadYbur5jl448sT4ZZP1WWhfMZ1fJUueRw0dGAGKsJhQ29x1 dw5fYlqPjWBWCAtBk/G39ibQyNzKZqx/HovxwLyatoqUOsmNPrJu30iRKD1pUbO9RH++ RnDOJY5YltARb6bchsNY77NjJqmKCvxunzsNPWydM3F5cZawXQvdtaOaR1/6iRagdWWx V1zc9YkH5rj5fWkCsJJ221bHBVVLlXieAaEm7GVlJeKF6Z32TX/Oq8qNaEV07w2+DGRe wv9mbqoow6n5/x6RBT17Z1u0F2W1fJHHOyq0eEi3AwZTXJtzGDQOykZZmyXcC1wd8BwY R+hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0/2IU4UYdfrAjMX4NizJG5E5V51UHXtFH8CwKGzIrQ0=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=eQ3U3nINdlQrWIGOAQ0itQJLRwEPS61oMqDGE4x7DT+XT8SXs0MOkUY0agWrRjkHEv rbAbmghVZq0vXgxwhKqQUvt1abXm0leMIdGVirE7MNeZi63+vdmw4R/Ox3jpih2Y2Oq2 9fuiCGD9tW3ST8iDmzZTGypxQvFTUXpk2ibyFD8qZLO6Xink62QMqx/Pbja0JNoeFD2P D8NB3e34oxauXq/zRfKo5mV2gMIUC0GPvBuiuY4vXebYzrLHRlr7AikCaMZ8ZTRfNdTU aefFK/kVGCN0YgLKjSksnDfKyEVgLukPcRkLXCPrabkjF8ntERyIgJfQYa3AmH/aPLM9 ib2w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UqhnUJ99; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6c75e5dab6csi10021136d6.592.2024.09.18.21.51.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:51:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UqhnUJ99; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94J-0007oW-67; Thu, 19 Sep 2024 00:47:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94G-0007dF-Fc for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:00 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94C-00076E-TA for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:00 -0400 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-7197970e2aeso262417b3a.2 for ; Wed, 18 Sep 2024 21:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721213; x=1727326013; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0/2IU4UYdfrAjMX4NizJG5E5V51UHXtFH8CwKGzIrQ0=; b=UqhnUJ99+f+7i8sWkEH5kbcTMTzmDkGA8fxLdcdadayW2xkgsASOOeHDt59M0jjrsE g/WD9zMhV0zbVCEZmFNw0WaNrQxBtBEfuZW4socp1M7eNAylsasETSUJ5m8iwqIgXHyh t+MhHwG+LaPZFKQNmUzcPQObNHyIy2yv9naxlo33nPtH5uc3Yhh62UO4RMaDZH8V62RA 6VJ8eolOe4XNTci9nFCTt+KDVTEpH21ywoc32HoTyiSCJixksMZSGJRXRsaZReLqoSyU gbh54iWryPFEU2GIlpfKViXeGPUufCmABmuYXINuCaMtPUeUHoZx00Jng6vsEyZcCqOv 1QrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721213; x=1727326013; 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=0/2IU4UYdfrAjMX4NizJG5E5V51UHXtFH8CwKGzIrQ0=; b=CbXK9ee0kAD+dPilwAOlu2qY7Z7VD2+tLnB84T//4vkKXNYC47jc+rSrix3hG4GpAD DRSBHs/a31yaokKk6aCHv6gxiIrJVQIcAgTjFGuA0lt7bB0O8i01pWcps7WPPYXacRuF nVkpX9Wz6nS/AlptK5E/H+uzGNlPDOTtDo2QY2rSTSfIbjOPlXGWkKsmsRqkuBwAcE88 YFAQNyYtOMHhu0Ot4JoxJBM6+2MeKvR4WvDwA8NAgkReVzJJx0jyS/POABdatsDUTrEN sp3YlqdNcHDK3lcMXWEYV/PqfIuWuYvhDLFPFapzLjuYJitiVfWG2ewSgU4rHL0IXkbZ ceZg== X-Gm-Message-State: AOJu0Yz/Zx0DQuUV/d7SQ7EqUd/nSxGXaqHMnRtpDC1ajCP974Z5Qorw lhlofoT173y7NwzFiDyEwm8yrPTQLXCOitAyt0YpkXBw3zdUw/sPOepBkoIqpMRBzTIXjrpmyIk 5GZcGng== X-Received: by 2002:a05:6a00:3c73:b0:718:ea84:3e50 with SMTP id d2e1a72fcca58-71936afb98cmr25001957b3a.22.1726721212760; Wed, 18 Sep 2024 21:46:52 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.46.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:46:52 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 03/34] hw/net: replace assert(0) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:10 -0700 Message-Id: <20240919044641.386068-4-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson 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 Thu Sep 19 04:46:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829570 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154347wrn; Wed, 18 Sep 2024 21:50:01 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXqc0glc+buLgPGW8mG/IbWRQFnVOHFNF3XxzX8ODVmXBpnMDe2X5b9rg5KEJb073ElGv5Wug==@linaro.org X-Google-Smtp-Source: AGHT+IGsMODPUe3er6BAa/fpVUl5J0e5EHBjqAU2O/lMi8LeZ1F/tNa+igWRI42IdPt6DqRco2S8 X-Received: by 2002:ac8:5fd3:0:b0:458:2479:b599 with SMTP id d75a77b69052e-4586035d1bdmr399509961cf.36.1726721401025; Wed, 18 Sep 2024 21:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721401; cv=none; d=google.com; s=arc-20240605; b=HUHOofC5jAIBu3vc9AwB9MotGmZD3DXQkksS1NdtsSYlF5BTsYfCX6wWZJdBoRJLjO LLqGc0GdCI1HDZjB3Nn2t1tu7xEJHnEFVG07e6dQZqODRQJZT6TbA6asNMtCKHDqezh2 OhXjYMMtD6ECVn+fUyq+ZLdqwxfgKWiVC2PjUd+0gZcuJZTgVrBaN58uoPCV3/pD8d3j iksdlv++JMMGmlmcO+0nzJr+XNtDaFx9aI3YCbTds7MNw/u6zOQkGy9jDRqLyzyWbXFB Y8dV6mcfttM6/X4n6cyEUK1vsLS6U+7RCU6To+rTMRiSxAUH7TClwofxzREVw22oNB4B v3fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Azxsm+D4GnAmylef8kDOF8WcNEX0H+f5CVUHICifCkU=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=XVQJ323UtTR8JfHAD7WIliV0H6aUy8Edk5PZhsehJwdi/3/l2ME4TVGLfHWKNIWhxU HvbG4MyUkTBoOXdolfbO8c6k9hHCPghv/1UHtJuQ9JoB/mCW1ZC+jUdrhksuI1dD7+JR hdlrJ56wlMuSeCh8kK/3zxJzlJehAKK/ZOqc1bkY6NEM+yCf/eCPC/DXfnqoulpAE8fQ QH9Unl2BvJQydnHa81B+yEA9218h3znQ2LQpRJLi6qJQEyydtgAw2FFUCe3PI8/lSquH RunZXWV1lWgBnHrFp0SVmujw/rweWb97KgkU4HpMgRlt8TvuiJz+XywDueCz6HsGPP5c 4EUQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nadLeWPH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1790f883si10202131cf.500.2024.09.18.21.50.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:50:01 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nadLeWPH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94K-0007sw-1P; Thu, 19 Sep 2024 00:47:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94I-0007kh-7E for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:02 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94D-00076s-5b for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:01 -0400 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-7191df6b5f5so286670b3a.0 for ; Wed, 18 Sep 2024 21:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721215; x=1727326015; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Azxsm+D4GnAmylef8kDOF8WcNEX0H+f5CVUHICifCkU=; b=nadLeWPHVxDJcL4zdEtuf3KZpHXIUpFvxnC8mzFqR7TYeP5MeCdR3H5LbpYoqbuOVT 950tmTOj8rUPPgKkajM2An06qwfbuWGd38/uhUxDx+yE3sa1spwRCC0lnhNwZWpyCCdU m7NldzmHGXA5nIYacpA03fC5jFIeVM/7RiseCUSELxxZxbh5HDKiAfeVnOy3lZzYmORs nz70Az3e2l3xGho0dNtZr2UTkz0FXn8zW70uZTq3pBAbZ+mASXlRUvcSY9jQfIgz2eVM BdgmVztlbyGh/BW4FMGQvtV4jFWqciOrhaj/FFy9BqPZL8/y08tydw/ojkijbK89FT0U 9iZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721215; x=1727326015; 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=Azxsm+D4GnAmylef8kDOF8WcNEX0H+f5CVUHICifCkU=; b=Gc9ITnLsje5rAMh7Mo3/5Q2o/rHxoBomgvGd5vDSl2ogSdq1EsI5AWFP6y3RiK/BAZ BVlPlQQj/n5peA8oPhNA2wLC2vpSbNTzBrSN9p9YRu+imhXdn+xnDM2Gx6F+UFOm41kS E77zHoyDAhPSlACBu9sCK7sSMbUmuP+j4FcUjjWwNtTWdiPc1GfXnwtUzb3qSWaAlpnq BbTFlKjv7u+t690ufRxJ1VHkoy4M5/5/zVPNPXjOdURRnw3VtHRt5rmEJDyROLs/Lh8t Gkv6BSLcIypW6ZQTx3To/C3NGXhjtReIR2yg/gW16Py3gejug/P+lWnDCzh8TQHVQ2q1 KtZQ== X-Gm-Message-State: AOJu0YzXjnNBQzlVVTn/zHwt5VZGs2620CcCHR1iiZvAFcplBrVPfB1V +o02VTkbUQbPH00y/JYfZG1+2/mkWK+ikta8noMe1LiGDW/mpX6RWNaFQxyoFmyyeYc87J/q4bT m9Y22cA== X-Received: by 2002:a05:6a00:4f85:b0:717:81b3:4c7a with SMTP id d2e1a72fcca58-719262060abmr39788484b3a.24.1726721214659; Wed, 18 Sep 2024 21:46:54 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:46:54 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 04/34] migration: replace assert(0) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:11 -0700 Message-Id: <20240919044641.386068-5-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Fabiano Rosas Reviewed-by: Peter Xu Signed-off-by: Pierrick Bouvier --- 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 28165cfc9ed..20d1a6e2194 100644 --- a/migration/migration-hmp-cmds.c +++ b/migration/migration-hmp-cmds.c @@ -640,7 +640,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 Thu Sep 19 04:46:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829563 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154021wrn; Wed, 18 Sep 2024 21:48:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXjHtyjHCejnKyElfc16Sjizulqgcao5qYrnyFV+vgj/o3qNIm75l0MIUTTukkXxYsjciE3MQ==@linaro.org X-Google-Smtp-Source: AGHT+IHJUeQ4yZ2wsppedir5Q6iz4Uje1FjSbpsxxrrZ2JCfu5X1tEBMnmavhGqGwbst9vV4D+tb X-Received: by 2002:a05:620a:44cc:b0:7a9:b3a1:94ca with SMTP id af79cd13be357-7a9e5f1a20emr3630256585a.35.1726721297643; Wed, 18 Sep 2024 21:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721297; cv=none; d=google.com; s=arc-20240605; b=QTH4kK5nTRY5kBs03Ru8yuVZ9XIuhcOc5LkLcUQtQwyInAkqH6Cds/l2/nJ1BDDD1w L2MLVaPBdREk9QqP8LpBPyrwwEvjGDiBfNgCEb2wmcIoEhyjzVasQ56GIL+sh6Z5NWhy V3tJjH1v+iTSJVa17+Vl+weq+bpFBrmz3Q3lab2itHn9okBpB6xJaqNe4m6+FeDi2poo R6UjvehCqtvlZcdMQQTcnSyXcHySx/MPOSi9tNI3pFqF2P9yB69Pu+hP/Yur5BWLSjmY HhCS0pa6DMrb2mVeicpVP5JwMACzxBAdnZVn3XbXzUlgJAp8eBXse3A7V7N853UK1GGn TBcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KJkmiG3PhPpYsgMJ7XkEBDNaPQyoDU9Xw+XJyRk65WE=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=ggPOQYPTDpkB23hGVtJctFAu43UFYfwzIMjEnVYyGEo8jLT1NwgbPGz55suLbEKX8L fc+NB+girUQeBd4j+eGRtKeH6caOkOMrZio/p04bnn1NxalG6PA9y2fAuiCSRtNY28/E MrwUgA4PaH/sotYDZKYdeFIvTVjKRRtpLmfKxWNLOL6um6j1dcZyh1lmbDzKjLc1l5R9 SNQsCDsagKoiY0TwdDbESQtCGZ1FFwUMEfNZAiwzfPJQ5QyL8WVzETXywFy7NJPKVouS 2697qSvn06jsMIuk3oCCl8UW7vBRuV36ZRMMlleBfn5cQoPAD5XWaXl8SLNwZ7ycFlPf BalA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rdY8ydl4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7acb08c5785si104943685a.308.2024.09.18.21.48.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:48:17 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rdY8ydl4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94M-00084v-EP; Thu, 19 Sep 2024 00:47:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94K-0007xE-PY for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:04 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94E-00077V-80 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:04 -0400 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-7198cb6bb02so269225b3a.3 for ; Wed, 18 Sep 2024 21:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721217; x=1727326017; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KJkmiG3PhPpYsgMJ7XkEBDNaPQyoDU9Xw+XJyRk65WE=; b=rdY8ydl4cUE2I9J8VfSYfEQaWCcmyFPvQKqfgoHdeknoJrb4JZhEPs6yiJEQ+OnC1E nnK5U+KAyKU8+Ju21Z1BE3YZ2kBLUjmzuHYIAVDT88X/tUIAubkeTFQrfArw0/QUym9g WJTwicOnVExEg79EER511wLkK9J5M3kxpZ2t+zv+j+OINIwvn8Z2zjtyjIyHg8PH+0vy Mlccob5vdo+EDtu06zl3GgkOUjvglqhmNtS/yBoARU77fgawsy69EvHLw1ZI97Xr7H10 6CU0JDM2LzYNcdY7NXxJY7eVnAcTiFaGyATz94Xzsl+hu8q0wHNBwz3GRtvjVfyDMlfR 98qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721217; x=1727326017; 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=KJkmiG3PhPpYsgMJ7XkEBDNaPQyoDU9Xw+XJyRk65WE=; b=u6/3eFcNpAMuzml7+fUGqqU1wmTUOWjkWr+MHBRGzHrdLdkGv82isorz/Hxvz0HaZL VXh622+Smw5YVmI+vE6WsirkNF2vBi2gCfFI88K2d/mjPc0cU32ern5m1PHKSLMxjnIc 2DOsWgrAga/EYFhHlu/QlIkT4F5OpNuPK3cFaXdqtldke4DoQOsflk3hRPU8RkGrb76q EsvPYqe6DJ1Q2w67Rm2QcUBYtE1ViwVt+81a44Bmv6raawl1JfKkDBBez9ApGQzSwWAQ MHHM9sEXW6d3L6D4S8RohGMo7jfKJPEtPeoIHBSwJnZbsbiMQbXW8oTdsP5cplvlPh5G Vb1Q== X-Gm-Message-State: AOJu0YyNp2Ep79jqMA021/KQOrTguAQj8FNsd5DFvilbHzICBgvKyTOs mgdUnXZxJ20hdEH9XE8OmQ1coCXDKXPXZuIhFTlbV2jzRCM2b0qVVbMAV7L4N/K0RcjoEGVMvuu zHrI9Gw== X-Received: by 2002:a05:6a00:2401:b0:718:dd53:70db with SMTP id d2e1a72fcca58-7192606c438mr38378490b3a.11.1726721216563; Wed, 18 Sep 2024 21:46:56 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:46:56 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 05/34] qobject: replace assert(0) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:12 -0700 Message-Id: <20240919044641.386068-6-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Reviewed-by: Kevin Wolf Signed-off-by: Pierrick Bouvier --- 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 Thu Sep 19 04:46:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829595 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155584wrn; Wed, 18 Sep 2024 21:55:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVXxPACXSW/gnOdw/oa9gS6DR4meWdERH2vlEjQNFwRJfVjEJ7pmQOVKAktVEqE37X1G5bbXg==@linaro.org X-Google-Smtp-Source: AGHT+IHTNZX/ZIKHlMkakxFwWZDI0kCTzVyBlxHskaBTGd4OgOOXkcHWtoNBmV6+Zjo/fIERYfCm X-Received: by 2002:a05:6214:450a:b0:6c5:55d5:f53d with SMTP id 6a1803df08f44-6c57350b9e6mr351072196d6.8.1726721747604; Wed, 18 Sep 2024 21:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721747; cv=none; d=google.com; s=arc-20240605; b=HFitsfw9hY7cBv3+/ochANr13+6yc96vfPT/ICe+a7yn1hoc9tT73el/tEGJj8hKxT ATkS75Z+aXnc9kUaEpvpjn420QSr0sqFBTjpe8IfRBauWqhYONAOE4sRVQe2aRSLCLpp Ptwxwa7h7lvpr+wzSA7+cblw58CBWQMwvTakkvyXvmLZ57DbtFRh/OXF6fPkxcwyE+ea aZZ1Pg0sQRO8x6VfjQvNOabUihmdqDHzKPNiEJIaoLYuSP51yGlE+RNzHVnCle5NzJ9p SbGmfOWXUjYzlZVujUGMz/ZIgzbTJT+wynYA8bM+NxTgpOFPyEISQ3YWyioWth8EAN6q 4s5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qqlshtAdWrkwK7VFTA+7O6AV+UQemh0VvOj30SlF0fo=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=cRfcskFooDX9Q3EuWFE+ULN9y2TIL3vm/SGUBLUl634VO6n691DnBgDGB/6AilD06r i/9sKHrz2BRk30DazlDnFIhg3t6x77XOK2YiHJHs/59EgPWw3HTBEC2l5nNUx4+b8lbq ahUiMcZnn5o1EAhkQrNBaL+O3nVc+jd+QiIRVGH6f3GINqTWqmysITM80GBLSWCQILxk lkkrgkf5CBkaHvzXzxsukZXEJFksZEOIOkc0Jt8vDOu5BHMQHL3Lama2Y65jrcO7TrN1 2Zp09jVvt7OLMp2MvOpbOamGH+kPcV36EDRvI5q2Bu4GvDCwb88oG39p6vriSwPBus8o H7ww==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XsggXCWz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6c75e47c3edsi10541756d6.162.2024.09.18.21.55.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:55:47 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XsggXCWz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94R-0008RH-Kk; Thu, 19 Sep 2024 00:47:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94N-0008CI-W2 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:08 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94G-00078W-4d for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:07 -0400 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-718e11e4186so381547b3a.2 for ; Wed, 18 Sep 2024 21:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721218; x=1727326018; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qqlshtAdWrkwK7VFTA+7O6AV+UQemh0VvOj30SlF0fo=; b=XsggXCWzxJk6PrUfLz3lsbeqthfKq9nFR0rR3Ii4rZNzadWNER1yaL2rBH98RJ1Iee gonneFTUhp/fr6rikT0KHNFd3IL5ao+45YpavDbO3lr2U3zdgqfDwH26ixqmRPyH+VBS XZIHvIvhjSuMIdldk+3OuiHPXm0qU+LmRhv3GyfjjGfSbo6WU0NvyE+Tvz9SECqgmorv V7AE8sKzd9SokMBwon3HQ2FcnQmhwaXK1V/IcJEy9sgBJ88cmx6KCsPB2vo2qLF/O60h 5ok+Zv5/QMuQgROP5sFalhsEjtIWS8OXJGgo61gGaPPU52+J/u8XeEO/bPudknEHhKRy t75Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721218; x=1727326018; 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=qqlshtAdWrkwK7VFTA+7O6AV+UQemh0VvOj30SlF0fo=; b=I9V6/DB3HS5r3YNkTmNCfbvX8dPy1IYZ11rlyHIGPPIv0B7B4A2Jr6847+nv/0WTNY Ryhhiydhdi3S8m+iMy2JJEy1PhRNejkkkb6n5+YmCxK21iHkIN2OfbK9FDsDM7X5JTWk RwmRtLDzGXAXNrpEnMfZacDzFyOPsiakic2bZHXraCgq/rabxOjNrGmfy192CvF0r4GX CnZbavRABO6Kc8zPiHDNugTaFao7wGq1PWHN6VuzjsOkwdRzix8S3gipSP7L+d3rVP+K kgZF0MC09+5yJfkR6yAWh8Eusd5Fa8FkdpFXwdegFtLK98Z4+GIz8fNE/S5x2nR3pC74 Ndtg== X-Gm-Message-State: AOJu0YxUq9uP4y2YUWmCsdqcXGBPGzrautyuoKfWTP7LXPjyNW8oMilj Zp22plxcjZ4NqdvXXxV4JsOucwCRTIe/HYsDIeluoOS6OoDUAKgJA5iO6mohzuWJbq29Qg0zaPr 5xFsReg== X-Received: by 2002:a05:6a00:2d11:b0:714:2198:26a1 with SMTP id d2e1a72fcca58-7192620d8d3mr36118214b3a.27.1726721218493; Wed, 18 Sep 2024 21:46:58 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.46.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:46:58 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 06/34] target/ppc: replace assert(0) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:13 -0700 Message-Id: <20240919044641.386068-7-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Reviewed-by: Daniel Henrique Barboza Signed-off-by: Pierrick Bouvier --- 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..ecc3f793267 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(); } 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 Thu Sep 19 04:46:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829575 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154814wrn; Wed, 18 Sep 2024 21:52:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUEso4Q/yV4UegOBzqgw2zqJ21ftSTLsuHnEyFIkblT5sf9kzBIzumIImFouED1g7bygliHyQ==@linaro.org X-Google-Smtp-Source: AGHT+IEpY6lunPKmIR5aX+JkgAdePQpd7ii9mvOq+kELi8mG3NMHVVUIIvZCOtr9zuzfXOOt/enG X-Received: by 2002:a05:620a:4711:b0:7a9:c0f2:89da with SMTP id af79cd13be357-7a9e5f673e8mr4695859585a.43.1726721536270; Wed, 18 Sep 2024 21:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721536; cv=none; d=google.com; s=arc-20240605; b=knKd2enXkUPZKQp7/hlxJcsaf9FHpLUtEKB8iTuJOZrw53s0e8d4+0gf1UpkKgFTOY 4FoW3yXEexJwsL854XRGjKq6PkkZ/5jGo65mcMXbLQfG7juRbff+qN5OcvHcXKocys/L WxfA8CaqZ7oFGFGsGa5MIE+Hit473obnhOnSkExRiXmp2xiohLBnu37tbVNGInZt76pL u+uwWnOzccSrZsh/KWkrG4VhubCg6BIpY99+X95xhpAPv75lxv5Wf4Ivrpwq6wAx2IKt 0PLEy1bmXMYVH6PoZfwnHDLzz/BNr9LgMBqGCmTP55rsODgJDzqzhVDs2/oS//ZsymeI O2FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mQ5w0lQctWZKvW76VfUVnQRwnSRhyDW+QKlbN5pvMwc=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=YKkv9y8YsAPRIJQHRZ8Cn93ak1nZhSul8LMuqT/6cwxcD5jq0LGucjzbGuff/DppeF xJJxLZ06Le5gQ+57Zw6y9NYjNTyN/sFJ/Pjbq/R86WEFdlG2IZ/kRnsmaZpcMFjX+eAy KP5Kapv/VhkAs1HvlAhWslxX7uSqdv3eP+2kdyZZmZvsUQqeuUzFhoqjO0GIfJRGYwlu Nxa4o+easPZj8S7DZID5sf772yWXIb88wiEZzu0eMooWBQROWZZ5+2irH5/0FpgQmkNz wQOJJQ8tKROuaI4jFG12zKUmgjKTmZgsQXylHkTBfhgnlF8zlzzPPnsfIvxrClmzs0/h uhtQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mbYACRhB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b17908f0csi9992841cf.406.2024.09.18.21.52.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:52:16 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mbYACRhB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94S-0008Vq-9f; Thu, 19 Sep 2024 00:47:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94P-0008Le-VX for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:10 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94I-00079j-Ap for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:09 -0400 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-718f4fd89e5so370627b3a.0 for ; Wed, 18 Sep 2024 21:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721221; x=1727326021; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mQ5w0lQctWZKvW76VfUVnQRwnSRhyDW+QKlbN5pvMwc=; b=mbYACRhBaJEhhDhCDzguhPgWshefpd72/hITaz2ipHkz1dmG/7ALm/ryEkxCbn1uv+ u2q74ZR+CvNgJ3tr7SSHG3GORNi/uFDFqruL/F9EkOwzdYxn2wfuOwgA7mack9K6AEK+ FjEF1rhHTrGWYeeqnuXQL72OELb/R+GKiaGWpV17lgizcBz46cI+uiZW1eSohlTRyzz6 TCzBus9zCJdOsMXxXfJPEKTS3FtsGBM3UvxDz34LRFwzUiZOgqD+0w+OJft4+BjS4Q7j w/NzxMzwAyUQV5TVC9CSVa8Wcg2FNhROjhug5OjPMe0wXQkKzNjoen9sLKfN/GrioVna FitA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721221; x=1727326021; 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=mQ5w0lQctWZKvW76VfUVnQRwnSRhyDW+QKlbN5pvMwc=; b=wA/+FgzfUiYXRCM01osFHLB7vXrcyL1mrmjO82/+FD0Xun232xrFAG+YhmAIB9Gg+e UUS9uz5IfxLzCx+tVleCSyH1K1rBNSsKj32B0vs4SC0k2IUfTKYYGdf4qWke6kwbLoKD cD9HVmNsMWDBBW9Ag04EUGdURs4N9yHuMc3bxUZdrKmhyTvoxJO8ih38m35jWR32QUz2 J1/FWUcSBujo37CIWFLT5gAZRTiqGMf2G9U/sPfDjlZjF/nsSLua4YHu/N2SdrF9L/BG sr3/jf1hF6vjKVtwgVD0pinC4cVjeUxMFLmJPcEJaS3vpBYMuZQeDn94/2oWr7Ri5eFq NQ+A== X-Gm-Message-State: AOJu0YzpWvkQQ9M1yqNhrpnmmFNP3G8ULKPuCIZ5LHhrj0n0jXkrcGBz 9M/jMWvJA03Qmc2hgVTAYKFf2A/yAQB/4cRI+41OS0p4Hokh2OQLU4Gw5XTCJRLejRsy/YR9W6j D9tL8IQ== X-Received: by 2002:a05:6a00:2e9a:b0:719:1df4:9d02 with SMTP id d2e1a72fcca58-719262069f1mr36784043b3a.25.1726721220565; Wed, 18 Sep 2024 21:47:00 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.46.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:00 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 07/34] block: replace assert(false) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:14 -0700 Message-Id: <20240919044641.386068-8-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Reviewed-by: Kevin Wolf Signed-off-by: Pierrick Bouvier --- block/qcow2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/qcow2.c b/block/qcow2.c index dd359d241b7..803ca73a2ff 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 Thu Sep 19 04:46:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829597 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155709wrn; Wed, 18 Sep 2024 21:56:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV9RWsGzqCrCJRvO6eSSh+lL86eP12/mCwVhzatAkFBN+VGdkVcL2hIuyV/tileYpmj0xaxLw==@linaro.org X-Google-Smtp-Source: AGHT+IGXab9kH+Q9BgJUZQbsQ+rCaxV/gNTL361hVv0d1EA+BHRbA8ya/di5l84Oo84n/KOn7TEg X-Received: by 2002:a05:622a:613:b0:458:5e19:b3a8 with SMTP id d75a77b69052e-4599d2b9b2amr329431701cf.52.1726721777619; Wed, 18 Sep 2024 21:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721777; cv=none; d=google.com; s=arc-20240605; b=i5vHZv2bXoomcJxI9OcPfPeb3hhuRTEusvqRSN6GJHAwgpvhOToEdjTxEzF+GG0rx9 zcIpQcl9cgVWTNNg3oeVSgVpu43IsDeUIYHYFnTz5rvVfepBxsrXHVGAdWMfHrXimw58 rdS1BqySENpfC8/2qApjMKjIPeE11q70F4TImqGyIMbDY858wxaCAnSycIw9rsAkiyKB LTP5VZgoJfks8/XDuZI/48jk4hNbGdS9jWqAl++S0qX3MDgT+qt7ENdD4mKzFNbTq/9o rRatyK7wEY8yvQ+h75ChUpmteeOEMi1TR5HumVXjZvXQ10moBwAV0iK1uhh8KR9acSKm mF4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=De4sKLPybVhT2+Pc9xtI+CTmpF8ivUBlmtwhnsMRIOQ=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=CumCVIn6wO61CXQUzfIs3AVKG+q5CJfhLLv0E2+vBdHI7VRHSE0mONRiyk4w5EHHdW m88cJt0Mm96cN66IC734Oq2hexihGKO0xmZeoiHClykvwQaLzGhWP4OhVN1BQQ6a9tEc XGbiEEdWhvL79AnKJwDQEsIPTgeDRUHnP3HeBQBhKf6IqqqlZXFrTUoVGREqsPDtVDQB YM6I5064vE9ovBlt8+F+/QSC9dWtOHpgD81yFqt8tAiB2hBI46rGp/UMmf7CgghL2trY I1fwvxFJ7d/dlFgGR+6OFu8OWGrDS0yc3K9Xp00LRqHEpqyl2EgyKCFatuGNja0NU62+ H+8Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H8Q65y5A; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1792f1f7si10835301cf.589.2024.09.18.21.56.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:56:17 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H8Q65y5A; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94T-0000AE-G5; Thu, 19 Sep 2024 00:47:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94R-0008T4-Nn for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:11 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94J-0007AW-Sw for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:09 -0400 Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-7db299608e7so261291a12.1 for ; Wed, 18 Sep 2024 21:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721222; x=1727326022; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=De4sKLPybVhT2+Pc9xtI+CTmpF8ivUBlmtwhnsMRIOQ=; b=H8Q65y5Ao5sBkRZk9kHAZB4bWbl1BNRmzMwZCNSwh7ZMBMbaH92/bYXa27w7uSVNbv Jmow8uSLPK3B9tUQLscDD5uXizmsIO39xEbNBcAysEqaJD9W1uSB8OprkqN/JWP/T10M Gdd6MMEH0JXirEa7h+HzjVCDN6h6K9KwNTvwQpqEHQb1vKJYoZRhRmyEgCBGGJ1mvecm QzBl8i9MGJu7aMcDtIyRBYvEMX5a7mbVszuc4MmDYOpI3yXOE5ARQBWzttkDbo04+JRS XNUDLppI/VQq8m4UZQz+Jx/j+Ik6UGXUOzJbwkd0kSdrJrXr09k5AvryvhMG4M/r+gGN JMNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721222; x=1727326022; 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=De4sKLPybVhT2+Pc9xtI+CTmpF8ivUBlmtwhnsMRIOQ=; b=WehQq/kgfIDCQn31aONq2+Xo2XGxHd06xHnHEaAlE7ab790G3jiorNA0cDue1qIe4j 6Qen4/SWFvexJQbpFHq/3SeO9ZQkAWfKynhgdc5DPn6NgZz9ALnMSllFbdrkk9Qmr8N0 TMr4ZVcovMsHB4/27bgCSjaHIBoZl6OsH/ZsLvx2i4D+8TCX1LmEbuCJ1g7CjinuDCre bEkv7pCdhW6evJSJ5wdEo9XdVYNH0bsgGTtBEXQeIQq3IJykRqbK9wMnyn15phfg8hPu PKCiNWhnjAJIs2fmR8UUSrA/sFfSsjegQAOfmzq2o58xniWoOIL2uhJ5dqHnLW2/JcgL XszA== X-Gm-Message-State: AOJu0YygKwB4vg1K/y4u84youckFanxNAmXzUYQVEjo5q3aIJO3rzmFW zEdguSZX0wWymefHNP6vGMkhOU95woxcnfbsEcqCgFlNGhltg/U9ZOutmWEkJTaPH4lcztym8jU +erhPwg== X-Received: by 2002:a05:6a21:3a87:b0:1cf:4326:5602 with SMTP id adf61e73a8af0-1d112e8bf15mr31788153637.36.1726721222472; Wed, 18 Sep 2024 21:47:02 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:01 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 08/34] hw/hyperv: replace assert(false) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:15 -0700 Message-Id: <20240919044641.386068-9-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Reviewed-by: Maciej S. Szmigiero Signed-off-by: Pierrick Bouvier --- 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 15e0d600c7f..03f415bf226 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 Thu Sep 19 04:46:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829587 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155102wrn; Wed, 18 Sep 2024 21:53:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWxcn8E9XPtqcL9MoZNa+OvM8fkg5Daeq20GnsLjDrBO0M/U3lLmJ4s9Zfajr7SEJ/1E1ZCkQ==@linaro.org X-Google-Smtp-Source: AGHT+IGKLLs6/dlpypoGfKT3QTA3+z0ey4+BgWRbLQNs/DWT8k12LD55Q/DTcwuJ3ZIekE34wvo+ X-Received: by 2002:a05:622a:15d3:b0:456:85a9:1838 with SMTP id d75a77b69052e-45860465a8amr330359261cf.60.1726721627810; Wed, 18 Sep 2024 21:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721627; cv=none; d=google.com; s=arc-20240605; b=NBL5KV2/QDddJeQa/BGOwgyiL3dicABztqx0ZNz7attMT2x7EEGWvim/cAnVn33F5d XLTCdZgynQrUe34hHaLGSaxVgOfkoDoF8BhhDi+h2Cgo2hgsXpVD0vFlfa85W1pfEA1O HvY2J3OrF46gSYohxcsHnKA/6Q59SETm7ESwy4VQo0UJv/XDWuTMB+zVYQssJD+Jv/tp uouD9m/QEmn1pKVOL5HTINxtHHJWozShVtwGtYTLaIj3ZFgi335pHt7U3zYFPXsjKPx7 cKB/uNK4jvRMa9IGW3u39OarcIT63ZGGJXcJnXW9aMjaRQKns9tLJwxJ7NzJhAtmfoGw WyeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HfkyjDHktRIdC53aV7jz+MEYNAmpLLxTbQ4xm76fWo0=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=lOgaxv3CCRHUeRdeGSeY9HkG9P7viYp91sQ1LfqWlZ/q3V2m8mgKrTGFPwfgndE61V z88thVthR5IkrS5H/CVbzb2s4BppuFoFncACyJ3I2MDHMUtBMM8XOZoRphYJbK4J917Q JRPsn1hjSnouVEDvkJ8oQ/rF2c7VbkINhsLTQDMy78/MEEj8fukqGL+H7o413SdMtT4k 42ulvfb2ge4N+b3cT4m+jXeIsd5MKj16VrTbSJx4R0ie2H2F3PFLuiNU/rhFgAvciMJR 0jK8BneHtVihOipVf98o9ItS1fTFqybe+w6EE+KixCooFma9ictyUAlwgnGIIg3UHqwV S5lQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DiCadRI5; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1793e4fdsi10940361cf.647.2024.09.18.21.53.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:53:47 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DiCadRI5; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94U-0000Fy-J4; Thu, 19 Sep 2024 00:47:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94S-0008UT-0m for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:12 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94L-0007Bb-MQ for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:11 -0400 Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-7d4f85766f0so296104a12.2 for ; Wed, 18 Sep 2024 21:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721224; x=1727326024; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HfkyjDHktRIdC53aV7jz+MEYNAmpLLxTbQ4xm76fWo0=; b=DiCadRI5GDIbCHswgP2povN3DH4UuKzdQmGrzHXBav0fhT/UC6Mc1iCzpjMvvCaBZZ Fy/t8fQI0atlOqjrY1rxplR6FD8lB3S/v3lkkUL4KLuyN/ffNnOAxDItRGIOMZ+dnhF+ 1MHj2INry90zzSSk9ChDbGxAREk8Sp+6E22dh8LJHDIEEvoMp7t3g0ZFHh3uBtmdvlr+ SCbKo0s3yT1DV8uG5i3PFHO/GFceud9y5JB6eom+Rld+HpRswVtW8hzWIhiEUSoVX+q6 63undiA5llO9sZRaUZg37SA4I8LTwgiw3BEz7oTT9bBkASKYRV2loc4t6hQT4J3jk08l +6Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721224; x=1727326024; 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=HfkyjDHktRIdC53aV7jz+MEYNAmpLLxTbQ4xm76fWo0=; b=jzr2JZr5iiuUcWvCJNydk2m4WZJqH5MmWfycilsXr7i2CEi2KKgevEZhXeI85N5/lm Q6jl7IRFGpnWuqvGawrfK978S7M+DJmD8WOEDE6v9RNBcVlu70jeuanwJH3IaieM6ga1 /WgnO2CUOL6zzBj6YpL8BsDNCJtWk4xhW+sKqNGLpn8XsmIM2NjIkGxbTyqwgXIG3NPm JlTOFDNgTzSeqFJEUxf00929eMpTFdC4rgucv16ZUQDht/Uv5dBxF40BTpt/cQ5PU/fT SaCi+4cixn8KbyQTo1eXWwEIzWgXM/uUOhNdZn0cCMf/cQBeLPTNe2SmZZq6b8349+5Y WkIg== X-Gm-Message-State: AOJu0YxHglqVZkLCC5cwZIXzhrCT8+uG700xwl15RxGzE+NiBsn7ps9y LFdGg3kas6HdClsD4tmxGYCPq0pbkdkUBzHKqcr1xT4LqSmDPCUUlhkYqxyTqreK7f21G5p7s2q HuOhLLw== X-Received: by 2002:a05:6a21:3a44:b0:1cf:2ab6:a348 with SMTP id adf61e73a8af0-1cf75ea1dc8mr38949451637.1.1726721224333; Wed, 18 Sep 2024 21:47:04 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:03 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 09/34] hw/net: replace assert(false) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:16 -0700 Message-Id: <20240919044641.386068-10-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson 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 Thu Sep 19 04:46:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829593 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155533wrn; Wed, 18 Sep 2024 21:55:35 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVXegSh3uPDSZDNEbVlDvh7jmHloxHkHuoHkuEmUf11YeIpvvOUMdT6TQR/BmCYTQSWoFib8Q==@linaro.org X-Google-Smtp-Source: AGHT+IE695blne8qyT0zwTol9EW4x9w2eNGn5NVDV6ulsDgBzMgfe1dAEQZM4ZbmucYSF8LtmP4/ X-Received: by 2002:a05:622a:491:b0:458:4aec:2749 with SMTP id d75a77b69052e-45860462832mr433986511cf.57.1726721735306; Wed, 18 Sep 2024 21:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721735; cv=none; d=google.com; s=arc-20240605; b=Yfpap0MzwCEoeXP7CZnSWej5uz7oCA6n2AwoBS6zR8V0HGL3dFeN8joFWYO8SGA+UU Dek7yb2tVkAx8NfNYwb9EUuscV9mRXwcE1hH1L1ViEn/FIbMzPzeV2v1kU7gM1CBwMQu yc99EOje5/F46yFWWeZodTjQW6EoKRSYu+m5xeHWbkwLdGW5lsDtW5zRxsaWyTNc1/pP 9RYQnGdjepIyJQYUO48RpkMT6bjDRy3Tt0z//BF5aU3GHvuAchu5IigZ17x2CU9JgQnV Z9vOe0yKTSY5jXTW0fNz8GVI8yeqvMVf/foKhkXUce3paQFL5LhgiAE4ikJkd41f2lKU nmUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=J91xisxxghHlg97TfgBUUF7cBAztIX0LnTXW2HtCgj8=; fh=5w0C6Su5YL6D4gRQXRxjwqg6NKEGLvt6ptRsHlrbxUA=; b=LFkqx8L+WaErrqiuc5qTKbQas2VG2aP8h8wdzU7iMQD/Vl32HvtmSD6iXxJcnFRqZt AVeL2FmBnOMAsjo9kXBkxDq8uABjUP0OENgH0rAfrAuF8fkGxkzxu1f6BF3KRYYpXAh+ fnfDAWEKpsNT4kHPUFUdr0vwJPIahLptrkrP5/cH+8X4zY9y0lERzRuuk6Cqv2QTafms nEQdf7qvyPtQN5mymcA5RhT84OEdzU0BzroVC547X4Q3w803csFvtXUZOVqucbKxRj6i 9HFxRmW/IXG6hNVjikvfegnYTHzw7RMtVOJUyIb/TD5gzXM1O0IRscwX3kKKYp/XZtgJ CDBg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wfPGMaYQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1786aa5csi11433271cf.161.2024.09.18.21.55.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:55:35 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wfPGMaYQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94X-0000SO-42; Thu, 19 Sep 2024 00:47:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94U-0000EE-7n for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:14 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94N-0007CX-Nx for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:13 -0400 Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-6bce380eb96so229908a12.0 for ; Wed, 18 Sep 2024 21:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721226; x=1727326026; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=J91xisxxghHlg97TfgBUUF7cBAztIX0LnTXW2HtCgj8=; b=wfPGMaYQv7SGeEjJ4b/DyaMh+4CrNjToVfqAcyDCwDv5mOvPuU+Oze8ct+4qvD8ggS ZwjxO7dMa+Y/Ha02SwJeysMr1gAVHFC93xY+dMhYHOEkFyD/RVhJY67ZHMTlux8s0UHk OcqwS8cwINuDcPrIcSoVJkZK9Q2EkQjFFF+kdhnbciOBnpr57Jatb9/c2PAQiB9rGnUE RxEzbNnJzjqvsOOmmeZCu8btv/o8KjjIHy/CCPiENzgXxs3I1MBW6Es4ReiwlSo/rkSD F857g/6K7/zacJorzJ41y559ztVxVDeXJEN8VSd6R1U0SnJ1pu5GjO0yGRxtF3bEqgU+ bCsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721226; x=1727326026; 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=J91xisxxghHlg97TfgBUUF7cBAztIX0LnTXW2HtCgj8=; b=fMNp5mAke8MlRP6esGqpXCZrMWowwR1KWhWgLwqtYavkXE1dp7ztO4LvN67nxtQW2/ JkNg63Q3hAOOvMHcCOCP0TP4YdWYlXMpza7bbFGKGD145LzYQ+4TEamUAhlvLIUSmtuV LnVVKCFVMuOWAw8KEstzycntnWAEeiXBgAzO717WGJ3Ju985gfAWR6X2xpEfrePtsZTv tr0IuUyMgNaa1BbFcc4B8fRHATk3t6mGbjDHDovKSMWnVLJo8YormFl1vgq/r8QB/X6L aHeYhA5qYIzKRZeNSdAG3pZNJDgINf9t8n8aFXCO4FLWW8wXRZLMlaVHfBa4OlmgJxss sUIw== X-Gm-Message-State: AOJu0YybMvqMX9X6LDrG4NmDtFd+f7qTi3Mg/h6gRRpmmRp4ALXephvt i5/hu60LLXLqV1P9WbUg3MRsqnQFiebMqxMa9F6m6CMQr32aVJ2YIDNncwvv8bHbJUkJdwYLquu 82yhmAA== X-Received: by 2002:a05:6a21:3947:b0:1cf:27bf:8e03 with SMTP id adf61e73a8af0-1cf75efd46amr36339625637.26.1726721226274; Wed, 18 Sep 2024 21:47:06 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:05 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier , Klaus Jensen Subject: [PATCH v3 10/34] hw/nvme: replace assert(false) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:17 -0700 Message-Id: <20240919044641.386068-11-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Klaus Jensen Reviewed-by: Richard Henderson 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 9e94a240540..2589e1968ea 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 Thu Sep 19 04:46:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829569 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154285wrn; Wed, 18 Sep 2024 21:49:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWS7XC34FL1+hXJHSre5YjQIJmFLZ432zss58V8bJJW1RAc3N3GqFzpmv6AQB8odVHn+yR3Zg==@linaro.org X-Google-Smtp-Source: AGHT+IF/x81qlxLr8CSTxbXBEfigZPwJ9xdn5Z+lfh2v+rFtu8RUOhRi1/XzaOKpUU1KttPpOBqn X-Received: by 2002:a05:620a:2953:b0:7a9:b814:4aa4 with SMTP id af79cd13be357-7a9e5f5ee35mr4674390585a.43.1726721383214; Wed, 18 Sep 2024 21:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721383; cv=none; d=google.com; s=arc-20240605; b=dc1HizetibMu2esd3bn4Vx7iNLkvtHLUKobZXIr9S/ZfqHQkjEJGghB94ptDVys2f5 tRfBwa3LHo3iTIYsdgT4hK5Hy7Fcp84ZzRd/O0boXVsUY2W4tfpHtMMgy0uOogy/bYKl u1vS876hUiLCMQSi3LfxWQb8DFphdorYuNXAnpGoUya++upnGb28Sh/581AEKy+CAmiD PL22SB+xYkkZYJ9ONvyFMPwp4SfKFBNv/i2b0vy46ECBak+y7aBKrhPuGSGHMveN2kLM +7dqZScQ9aOvaHV5R+H5jhhaSlvfOBK1ZTgj/H+OJIFwy+sZFIiuJLXgld5RgwHFR3ag 0DDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=la0dMEWQk3jt41a1BnPVKduxSUDoWih+Jb1d+U0bfqA=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=EB8XlxUqG/rixgqLE6p/jVxRVyqfcughVrnsUe9FeMRR9PtsJ/vu9NMU6UUZaG5qwx iXm5Z+Dce/Vogr0FJRWGRotjrYx9B8bASqw5mTFsgTDDqcezj2W5kC9qPXDm/Rk+07mV O1YyC3lfS5PMzY9CodZu0g91jpcsJmRsLpvbTP9cKsMy0v83Z2bfwLhnTkhW02BaqgjQ TUzaCoDKfCQG4aq53E0Gf+7jAn5Nd/IUIgnzpcsE8mjjlidI0K1lg2jqMXiWc6uoTWDs 6QHoJ7YM0I/ijVIzPcjUGu4YgxSWQHTLdKQ09TSXFuw57p8MufqHTBhhP2tG8Q24Okeh ffRw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kZSm0s2R; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7acb08c6b38si102504985a.351.2024.09.18.21.49.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:49:43 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kZSm0s2R; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94Z-0000dC-P0; Thu, 19 Sep 2024 00:47:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94X-0000TQ-7L for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:17 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94P-0007Dj-NB for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:16 -0400 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-718e6299191so202670b3a.2 for ; Wed, 18 Sep 2024 21:47:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721228; x=1727326028; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=la0dMEWQk3jt41a1BnPVKduxSUDoWih+Jb1d+U0bfqA=; b=kZSm0s2RhEWDHFu6pt1OFOG5BDpFCFCy+BrKSCOWl32uin2kJ2ejNCJZtibMpR7Nqj Fws5ltgJsRx2sLRcphVWzbvCGHGHjQtwZvqHU3U6mnjTQDVXtnEkWZ8q3G2kGtRrGHp4 O+7wlMUQZ8glu6MAJTgMlxVPCzjbIYH0LMJJYt4xz42npga4OzYaQH6IIhqVlRP4pqA/ TdVDXjVvg5Otf8dyHDxfQRnZ5G8bbgCecZpLjcB+t5alsDXq0o02DAll3WqrsMl3y9VF h6tOvszi+k8q1zOY4seBJ7CJFoL4ECP6dSjLnCTQAG2JCOLkusnQXBbfvmbdYmBlnmUY 7dHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721228; x=1727326028; 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=la0dMEWQk3jt41a1BnPVKduxSUDoWih+Jb1d+U0bfqA=; b=gWEkr6fRGes16Smrw4ONL49dX7xSB5F8Nqk/gouOxCDTF8gjSTG9+ZPkOn8el+t8lE TtsM0WWwgk40w25TMiOxdpqCKATSDZ8lRryUid10BmBMZkO1Fwmc/YRxRvfj6hnmrn5E s/k3WQR9BWz7aWox2sPQxBCZtVuTenkbGHoyaAVYgzW/gltUSiC5WKmQDqAECgt54mKK JwrngMPIrGfeHrA1OYuL2snwcWutexwo1LJjK3uXCyCMe/yNDu8Dbl5i7i88ZV2Rj1Cz iBRGRxibdiREdHUDpJ08g4toCEzsTHze9FekAlbWiESI+8s/ebm/zlpq9J5plWlyzmi+ PnXw== X-Gm-Message-State: AOJu0YzPT0QuAuKC9jCakKDu3ClsfauNALsmbXzUJYBR5Rny4CazAYm+ cZzYd713PkEoECFS4Rul81ypa+C1fAA0loaO4j/JHwI+cyaMRE9vp3aB01BOLQwM8TYAQU/YnLt 8Ph/ohQ== X-Received: by 2002:a05:6a00:2316:b0:714:1fc3:79fb with SMTP id d2e1a72fcca58-71925f9b26fmr39873231b3a.0.1726721228183; Wed, 18 Sep 2024 21:47:08 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:07 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 11/34] hw/pci: replace assert(false) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:18 -0700 Message-Id: <20240919044641.386068-12-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson 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 Thu Sep 19 04:46:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829590 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155276wrn; Wed, 18 Sep 2024 21:54:35 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW3SbguBL2zHAmG3SB268fP1eIeAhaO7AxGVncVnRvJ6h6dggwUOfzyEwQhIRA3krbNfZkxfQ==@linaro.org X-Google-Smtp-Source: AGHT+IE/eRcHsGliUCWYTyYdwEDVUsudlsBDe3HtgG/YvawCqIsEJf4/fJt62DzSImfSGDbVHWYX X-Received: by 2002:ac8:5994:0:b0:456:7d6b:7605 with SMTP id d75a77b69052e-458603fbdc0mr368883451cf.41.1726721675452; Wed, 18 Sep 2024 21:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721675; cv=none; d=google.com; s=arc-20240605; b=SSKE0EQcKrRv8z8KeizGSw5Nlaol9OuTghLsWooVtRFYVLWAbtaL/Lst2A+wRg2J1x FMHTFM3O84J0AGRrxNuyg+r/k+Qp9M5NhjTGJeySRsVe8UWzyqC49gNe18lukwOAVDbd AWrnkdJf8MbDxAkkKUa8YspZ2jf42FA5WuKRVqFayoRlA5d1VUuaPsk2NuUOcaupGxuq 4sAVS6xxOuGWOVtmDTwU3wbKAanxrl8TvmLJ3ZTAE3/986MoWCZAQQY0e1PVAqf02X8/ v4P46V3Cneluu5thCqkAy9U25kxcO2DnUDxehsqBz1b0+2DIJrSoJ6Z/O6VrNNLuWOpg lMmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CjdIkjZ1sAe4H4BC4R89ohVomEGFONKXxXhMv5Uru1o=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=KF5ZfF6HbF3chPvYUerisW0yTsFchH8WfYZS3ftfEVHkTxoI5DKMlZuhpWJ/cNgUwN hbb48PjdTi24UzxCKMkOlwcAXea10vtUhmJdRy+40UqGSNv/1h5yHwyNqgqcgolU9VGL 1fNV1pbctxWJtLOKjbWv2E0/Q+IcTQ67CFGrdC7uKs8vE2RRpF0FV+0GhB3yPcTWxDKc jpQHWTjDOQdcWBB49pnmnu+5YC3muP8KET87vwFRQKTN8N8AKt56qWDt4JyfEPe723Tc iGzOCaluKY7JDy5E/YG4AwS5eYqbEwSjNIb3DgdT3KVKYl+DF4LxTJ3jqpQv2VkHwI+F r/Bw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OHhfaiJ9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1786aa41si10325001cf.151.2024.09.18.21.54.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:54:35 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OHhfaiJ9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94c-0000pS-56; Thu, 19 Sep 2024 00:47:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94Y-0000aO-Nm for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:18 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94S-0007EU-D9 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:18 -0400 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-7db12af2f31so333376a12.1 for ; Wed, 18 Sep 2024 21:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721230; x=1727326030; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CjdIkjZ1sAe4H4BC4R89ohVomEGFONKXxXhMv5Uru1o=; b=OHhfaiJ9MsphfMV//EGnbRsPodM7jGnwNCyHFfN0cQr0O8Mu33iZhEbPsmO3yPqzCT KjegzaZldZ9bSkEtoBX1YwEDF834dAhEjXVPh9L83IiDEJ/jKdkeOvYLspXbXq6WeTUb dewTZf9hcfjCC/XnlRHbpXxLI2VME8GGaZ15MPPa4lvgMV+C0UsUjVFEPS4eLSo5IRBy Dy3pPI52e0BYuQLL5AGhPcqnDZ2yYaIIewSDonIznVFzm8JPCaiSXpzplz7m4FstlRj7 MIp8Nqc/htcD+CbFia4aGIo66Ax9TBGp9II7ES54fxpWD2nv37ASjb8tTIst8v6EwkTs TObw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721230; x=1727326030; 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=CjdIkjZ1sAe4H4BC4R89ohVomEGFONKXxXhMv5Uru1o=; b=GShVUnUmTnT6NOhmilypmc7iGMxYj8P13Q1KE5w7KptYnGCx0g/GMrh4Mb8YzagTXl F4tzrXJg3MBYCrGp//ArUZ7fS78KyfsX3SzfI61nwCtIFIIKKoyh8MzRcBDRQYfIO3my 2C40ep+tlTuEzIcx6v4rVbAmPjgQaX51t3RtQ0rKJdqWh5LxnQ4ehfxdf2CA1x3oOcIi M4ZYpeujwHeSeg+AI514E+5B0AzaIr/tsk8nQxdv4owfIPKTZppuPzDxzjQdE3vv51ql AKIqg/wZAhHoOAdUr05pI4ho7SibmXgXwbIEua6D3I8MjND788n+mrm+8NDtt+ruasux Ldig== X-Gm-Message-State: AOJu0Ywho778v2wd0RjhTFJTXbse63OkZH9inBmpl/4no5bMhq6YRXgy jmfStstu7DzML6lS/R/2Hh/qCMgUyasCwL6Oa/ipwbTMkphJUUvFG1URQ3TOXzUAt4NSbX400r3 3jmIneA== X-Received: by 2002:a05:6a20:b58b:b0:1d2:ea37:95f5 with SMTP id adf61e73a8af0-1d2ea380ceemr10245819637.11.1726721230050; Wed, 18 Sep 2024 21:47:10 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:09 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 12/34] hw/ppc: replace assert(false) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:19 -0700 Message-Id: <20240919044641.386068-13-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x530.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Reviewed-by: Daniel Henrique Barboza Signed-off-by: Pierrick Bouvier --- 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 Thu Sep 19 04:46:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829585 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155070wrn; Wed, 18 Sep 2024 21:53:38 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXrW2SHuh2UT16HjtgL303GSgvnFc/fdqllqksmpmV3/RdsjRRr4ynpTPmk+/1vCw1QFoF+5w==@linaro.org X-Google-Smtp-Source: AGHT+IGjkQrto7cLHb5s9zLMw/wIw76Os87TxR3btCtthQZ1hq/CWRMmRbawfaWPig6R88UxWfGX X-Received: by 2002:a05:6214:5541:b0:6c5:20c2:f35a with SMTP id 6a1803df08f44-6c573584190mr338582916d6.48.1726721618517; Wed, 18 Sep 2024 21:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721618; cv=none; d=google.com; s=arc-20240605; b=N9/OuSPiqF/t2t7884NHP6FFIj6QmvOWWae5BlTFDvzQbJ977E7mDdiGpCVw2Gg9TP 16TSC05SZJKRESBiHWpbkdJninFIc6ZOB6geytkCzzAdGGcMJM63l/6D1Q8U4lh5762J IlFcL6DgigR7N35KfP6KvKQpPkIsmn04p4Nw4vLBE11YEQOORcoUh1csDtXVEDx6FBz0 TCzfaK32JIvLTWbCguowP9zglo6mnIjMdeByMq0hhUc/sLIOOXlX2gIpMrqAfuCw1a/C 7LnXKNDpYkInB7ubA8jayC7zTfc2zNmc5aVob6Ztzsqbo3+57PV8zWbkodplfK8J6Zjl 6Irg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BFDTm87nVz3V5/Slt3dbvL2tTaVEGEVOzfLYJ3PuoMQ=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=bqDMmslSwjeXNvJ0bcj/70Q32wGcfInMJqlX3j7+6Y3wrhd2totZrCcinOrMH4FPUy Gbjz3Oc4pIh1iECbB+plVh1iWGxAEc+CNMfNbUc93vdNT4RXKwSnpKajA6TWVnW5mBnE iXNFEgMiQCo6A6HrX1HXytowpjV6p7LJTx27XYMVmCFRrLeznC8jthHVgY8stUVIVDPJ 3dTF7Iqz23syo4ytje2Xv7gXcvkInPzMh94YA0DcJPP9JxQI5msC6P4x0WSDS7jgm2/3 AOfRCXMBZAiETOsssShxzSHfnqAGqm3ieSuITsB0ZTiegI2xf3XclzrZgu7ar1toiyGM CH5w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kIno0OyJ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6c75e457136si10866636d6.37.2024.09.18.21.53.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:53:38 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kIno0OyJ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94c-0000qc-FR; Thu, 19 Sep 2024 00:47:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94Z-0000eZ-M2 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:19 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94T-0007FY-8X for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:19 -0400 Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-7db637d1e4eso259038a12.2 for ; Wed, 18 Sep 2024 21:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721232; x=1727326032; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BFDTm87nVz3V5/Slt3dbvL2tTaVEGEVOzfLYJ3PuoMQ=; b=kIno0OyJgxlTknCKux+9CqstgID5Oh4ryJpyb0hA1xlVpnazjQ44LXiMFEXb/Gi29K O+Ns8bksFHax95qY993GhUVJgzno5REZhwrT2+FRl8YNHVV+CwxFSBPGC5M9JFto5o6y y1AuQWTl3VBzybVpIG6VMj1DMHbKJn3gd0Ew6IaRbOQ/L6F60uua7Bb92j6ni4Vi/eSZ cirhl8/m6tNzttmMC+AXgasf4E/Ak6jrfLGv3HKFqhNoisMITEws5hhwwMiqZ8WFGyIC b97YDEpM+GGFF9N0ZS7LzJBtuRchmOUNALekyqS52JuKhfCsssZghx0b3cc3/l2/OqP+ LRUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721232; x=1727326032; 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=BFDTm87nVz3V5/Slt3dbvL2tTaVEGEVOzfLYJ3PuoMQ=; b=BY8yH3QNhSaO9jYJ7r5rx4nitw2Gd4dcYGjqfiBWwYP0feE2QAm0d2JTaSiubDSIgM sn9vsCQkrufn3u5rKagbPPtfH5En1jrzOSQvY3p5bF/qxy/2QA0QC/FCrukdEr3bSLr3 yZvdvk4LqHOdrwse4JM8qSqhBM3jkGMqm3OuNAOJ2hKoO/Uxp2qQNZUfwNV7pHWtgrIK bIlA3YzWwYCfK6f2lPA8tqVXAaZllI9rXtKhufAUFaz8mTkVw37wlLaYyBasb1GUONRX DFdxOuVau4uBKj96iZj4hK1cGRTMPkdYa2tz9Xa6s6UmeDys+g+Re94fqBdiBbKDqJUX s2Cg== X-Gm-Message-State: AOJu0YxroOxj5ZwF/0e4oJEmcO++42EClC2auVL45luYN8rtlUHCoIBT ioDTMasap4lCAPbSin27Z2w8Ic5bidqmSoy1ppgkJoEKXl3c3CeVaw/+chQy6enc6DjLYGE6/0C y4jkUDQ== X-Received: by 2002:a05:6a20:e30b:b0:1cf:3402:6e9d with SMTP id adf61e73a8af0-1cf75d76b46mr35535691637.2.1726721231866; Wed, 18 Sep 2024 21:47:11 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:11 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 13/34] migration: replace assert(false) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:20 -0700 Message-Id: <20240919044641.386068-14-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Fabiano Rosas Reviewed-by: Richard Henderson Reviewed-by: Peter Xu Signed-off-by: Pierrick Bouvier --- migration/dirtyrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c index 1d9db812990..c03b13b624f 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(); return 0; } } From patchwork Thu Sep 19 04:46:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829571 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154508wrn; Wed, 18 Sep 2024 21:50:51 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUM/lBRvZC7UEtMJOP1+Usist8H/gL+Ppy8lpy4JOmA4QIbaoOxut3tdJcet3oiAvkaN26dzw==@linaro.org X-Google-Smtp-Source: AGHT+IEQkAYGJYTJz/oYzU43CaGyLmhL5pnNtAds+Ds1n379ULMvan2+4D2wEsXpRQwHHpE2bT3T X-Received: by 2002:a05:6214:2c01:b0:6c3:6d23:4ee8 with SMTP id 6a1803df08f44-6c573556147mr350988696d6.28.1726721450838; Wed, 18 Sep 2024 21:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721450; cv=none; d=google.com; s=arc-20240605; b=HQ7yOk78Wnu3KrPozmvPkySvXSXAcza68BSJ4ENSANRrJNOlw1DCTMA6rQaF3kF5Ie 1I9WYulP3OsSl16vcnJXEFL/+QqfvqQrtPPx337NDRGC1noRjyqlW4dO+nWfcxJV5Pin BgnI8bEcJ0sgCvizeOPhg5YztoXQfETPKofsyAB4D7bwguEn22NfzRMBGZZ5XResd1a6 Xae7gveE1xsbkkIjNXoChItyWGhYWCkAPeXsT4OelJyP/K6/TXhG5cNQC085PvKQF64/ QEWH5Aqe7rN2bnZHO7xH8ghYpYrivGUPoF0dFHR+782BaGrByu0dIxBWXZafsc+aZqfH uRWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7PZhVYqzq4kADvRMhAIMG6rvS/s/Gp2LRBj3c7uTV/4=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=TO8e5aBJAHGpeybvMQLXUautaFnp88LEuY82zT9A0AmULknVpc39t1taNi2ID4ywhc OlXLpNikO4Sry9iAupx65dE2VXAXOyxmy+TQNUft8/okKqrGaQPruuHf1hiSUaAMwzsH G40z97658sulJlJD2NdMMZVLZzMqKKo53RCclEfCM/JrqsNz4hRLMO/eaQ1DIdNrzVKs 5ni4coObmvXKdJdWlPBPWPZWalaExuWcjj+qIHBrYyXwe3Phkjryh1LhNHUO5xuqUF1M uZp+9i4UNutMGwnJYUzEFse8A2x4x53nftVjr/0lluzCBt/RcNt/zgRP67nsUfqox6zn 2YBw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rPY0hAEz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6c75e58589dsi10417596d6.403.2024.09.18.21.50.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:50:50 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rPY0hAEz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94g-000198-Do; Thu, 19 Sep 2024 00:47:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94b-0000oc-U7 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:21 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94V-0007Ga-IA for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:21 -0400 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-718d8d6af8fso288063b3a.3 for ; Wed, 18 Sep 2024 21:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721234; x=1727326034; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7PZhVYqzq4kADvRMhAIMG6rvS/s/Gp2LRBj3c7uTV/4=; b=rPY0hAEz8wwhdq6gge/JJtBsMK6YXatS9EkisTuZslqbKcky07/n+PlFDxv/0y1IMY zvzbFDJkyWf04/IOL94p0z2xuddWiWHJz53Jye8Lk5NKr6U+Vf4LiRf74hLOyKzS4U23 zK8DIgRyJ08Iy9Hi1sG/Vey2j9QMg5oc6+6AauV9Bedj6ZImehV7q/CyvAyq3UR1n2JM KeamHNSU2iG0UyhPhnxzASSRkkg4XNHRzmTEHXa3R1KLBoPh1O3UK4WiHNvs2GZJit3t 4HOxbGpXbfifUui/L596CbW7QzXui0xRfUzJzl4EKh7MTVG3AajvBcTcKEvvZ0W6/mXy EQ+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721234; x=1727326034; 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=7PZhVYqzq4kADvRMhAIMG6rvS/s/Gp2LRBj3c7uTV/4=; b=fqZJorDqO7GHKbM1sQq+6PTPv6MQ1Jgo5djKXFOQcJmGDLSVbiECydLPYqIuaErTFo h4i2nTpoe1/BQILq8mY4Y8a4ocAYkdX+gF+ZeWkMoxfnWvITRUerpiqT7rCDEZAdNk6t TsoacOWTA+fWbHXAIdiLEEwT5mIxqO13OhvM5vMHyITfXVZRaHGD9N6A5RL5wc4ojCsP 1H5WtiM/4c7YQDTyFGF3WfEJqXCd2PL7KUZ911wuAy0vjfZjHhSusKQDt//ERZQge7nI xxsdzqEgpK7oVpz8XeU8MjpwbB9eZPAeDHiyQ0JAEDPrUUfiN6lvv2GILE7ymqrNFDg/ Grmw== X-Gm-Message-State: AOJu0YxZSvAdiOk1C6iojByqQvFQ3oaoZ1CxW9nsQJ2IJSfgC8pw04Qs OBe7zZHHiTOPRSzuMVnKbFX6O7x5glYEjZi/ZdCMXN2Trj72Vg96WwGdmRM6lrWzCxMwTTVkBMn yI07H4Q== X-Received: by 2002:a05:6a00:2d91:b0:717:86ea:d010 with SMTP id d2e1a72fcca58-719261edaa2mr33169557b3a.21.1726721233871; Wed, 18 Sep 2024 21:47:13 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:13 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 14/34] target/i386/kvm: replace assert(false) with g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:21 -0700 Message-Id: <20240919044641.386068-15-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson 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 ada581c5d6e..c8056ef83d7 100644 --- a/target/i386/kvm/kvm.c +++ b/target/i386/kvm/kvm.c @@ -5771,7 +5771,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) @@ -5790,7 +5790,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 Thu Sep 19 04:46:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829577 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154869wrn; Wed, 18 Sep 2024 21:52:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVT++v+sm/3yPKvIOjpTqD/bfK15sazz/c+9I8Ou1uDzQ6JyWAT//cP1GEZ9XkyzCEuW8+EZQ==@linaro.org X-Google-Smtp-Source: AGHT+IEj8NgRr80C0DtcQjSEceCy7SZoUvYDu8/LlhPH2kORjyZmKcAIGF8Gke5UrpuPCUboajPF X-Received: by 2002:ad4:41c5:0:b0:6c5:7b98:f712 with SMTP id 6a1803df08f44-6c57b98f71emr326543886d6.28.1726721553096; Wed, 18 Sep 2024 21:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721553; cv=none; d=google.com; s=arc-20240605; b=Jf2a9Xgsnyvu9N3zPWosBBTATQD0ag9DijwoqDsdJsCgOd6DmKZfIVZd+gpUbkLGQp /FONLHyrNxXBhARJSmhpNXb2pbApx6EA0I7QBsDQNNq1aGrEtNKLXFKJDDKBmLE4j9pR Sy8XUQKhNlPj67y7KIjEmHAuGi8pWQGuSS44cYWkxETgNlS0gFTeXrKOhcklzlx5HmI1 O2PZRpoJXCAEJo8ZLq0fQffowMNiZIoJH9y5q/5QZrc4u+ygNxu1zflUFpRo6J1fzPIN OO/clTe9vf0LK4R4DggEAJJBuyCh6BhTRJJPB1a8zvFC0bT1uSVFz4jZSmtv8HAvs0C6 ioHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=volzZG+VvX1cjCtnHdp2ianv+4MCm6slEtRN/0TB/Mc=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=ATOQOTtgiF6+OYkyMS8e5/6daUQO4UUvyfYJGLchzQO168jd3eeyKvdVQ0Sb6PDgVZ mUOa+zNXYjaz8RCrV1OjZDdCD9f95oQF1u0wmD2RV4chMYiL4zw3TlAFMaFcTNGoQbvo YoM1i+41vumGeXz6jzaHzT1E7bkEWRIhkcOyyYm8zTaOeUBIWmYAIkcbKtaJAPyjelxW 2moAhjfofAhdIB6ZWcHxCb3Lmejs/MyZW9uKBL0dxQ00TYzsVXJqhML+87GDfqvUqcg5 aZAQMWeh6zfiY/LkybEuLDSHB7IfIMWSeOdoBYEWqxfQhAz2wwMskYZM2HR9Qs8a5HEM R3Yg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ip7V7H38; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b178ee3ccsi10115281cf.381.2024.09.18.21.52.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:52:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ip7V7H38; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94h-0001Gr-UY; Thu, 19 Sep 2024 00:47:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94c-0000qV-D1 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:22 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94X-0007Hi-Aq for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:22 -0400 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-71970655611so369150b3a.0 for ; Wed, 18 Sep 2024 21:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721236; x=1727326036; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=volzZG+VvX1cjCtnHdp2ianv+4MCm6slEtRN/0TB/Mc=; b=Ip7V7H38W443qEe220gAK2y0JHtpjvE4P7Yq6QDSwNikSy4RvffxV0l7oAE4Ma6tN9 u0d1Af8Oa2ZA2NWtXf8V3Pf2hr3D0v/hyrhHxkN0VYIeGb/FjoQioGC2x8xZUF4tXldn tCfM81yQMvqiM7Ij+Y2RfbIS10TloWkNX86wrP4noblZcqGy6F5IQHtbIEnuvmEC50d7 m2t7Yj7fbYzg3zl7RbcTKxC/IAeOoRWkFGlI2jIJDeE4J0Ffa5GIt1r6LA9inCVoyUvc RWu1PELC55oZCOnnkA+s/P2ut9a3zB2Xbb1Ph7ga9/lMEg5/gJ2mUWafJNFRX2WNJO8T SCuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721236; x=1727326036; 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=volzZG+VvX1cjCtnHdp2ianv+4MCm6slEtRN/0TB/Mc=; b=tvpyzQlO3thUyTFqVFxnLq/Kcc+c+XBLU1R0H4TOLL4gqMwXGFNKvJVo30engxvptK HWnSL5r3uPGbiWyhk31Kr/lCvErYokenZ6Kz9g77PgZEF+NHtqScWr3O9LRA6b8CIjGE dGVFDPKpnjSo5OMvtRFboPHv7wXgVwQhRe1Gjc/ktgB/VTNiMuPjsAAlVUz90WoVNV+m eBVE8XoeXllnmEYWsgMqjV8h/8iegqgLpoJdGZh+MdgL9gfHovFjZFYRtHg7H2LjGMxf 4ht0k5tlltnAqkrBm2iAvo5toDfmzqvQrXSNYmqo+uBOsaZGSGglUltof/y/P9il3y6M Yqjg== X-Gm-Message-State: AOJu0YxexYJMQ8G1O1HFRfsQVRbMfY93uurOUP0zL1ytJ3EPKCbmalLc 9iMUM5uUbqgpMawHf8KmvW90d3EwCsEOnhR7911Fqylu4E8avbt6vmn2vfyW3Av2Hb1pQtYMXOl d3xr/dQ== X-Received: by 2002:a05:6a00:2352:b0:70d:2e24:af75 with SMTP id d2e1a72fcca58-71926210c2cmr41850428b3a.24.1726721235916; Wed, 18 Sep 2024 21:47:15 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:15 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 15/34] accel/tcg: remove break after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:22 -0700 Message-Id: <20240919044641.386068-16-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson 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 Thu Sep 19 04:46:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829567 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154115wrn; Wed, 18 Sep 2024 21:48:50 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXBS1nRTTquJaZ8RZoKghRUgzygpF/khcnzoYjS2FAtbZFnDLnsGKooq/8aDqWoeWapFFUryA==@linaro.org X-Google-Smtp-Source: AGHT+IHKbgHdBfIJjTWe/fn1Pvh5+eD8V+99wTpjXDQNf2LeyoC2F9u9VRHMy+Jetv5Lg7dJe2hK X-Received: by 2002:a05:6214:5b82:b0:6c5:bc40:9bd7 with SMTP id 6a1803df08f44-6c5bc409f66mr67603426d6.36.1726721330271; Wed, 18 Sep 2024 21:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721330; cv=none; d=google.com; s=arc-20240605; b=XdPA2dLHMhLqTbvzek5gl0iwmwMY4RpSNLYj6B3MGmCkPRo1ryn37dDFqZvHh9t8r4 ztuTO6l1RR3Bq92cvfC79aswddIVz/IqDk9RLPC7cTs4HK24R9EAgVanaqTTplV33h3B Ulip+1aADxflifq0JDspT70uJFyzbpH4IU5GsbtLvhRoVSK33tx7M4KPLUWShhVcFfTd 3m3sX7JHf4T3vf+9tNj/eblaDOSXG/RYN78dXoVmCSohrTFZfMCDLhebhYyoQzF75VAe fwqGRpv8k82QJsL23+/M/7WiSkI/h3o+NSmQDtqVnC3/P9MiHhhVp9yDZw8lsOjfQkQ9 T6JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3PbYSPAJ6rnlNnfP+6+lqxv7ue/rw4dEH/6Q+9usd0U=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=LW3CsKoDwrti8A/JcaQMUDGm9Nc8YiEGPACQiaj0/RvQL1k23tK04ZVtHnxiUL6KyO SkhaiRYrIoYV1tWc2aCQLfy+PKMhilc/fZFX/TtmWFHuHz9h82OeOcn89vKCLSipRHIB oZInienjZ6cgxkjoYXU91P+pRCCiZ6vuCgdkupzALW/78upFqyHUgpBGdeThxJ5h7HL6 mfqkiQM1ftgP+VtgBZF6AZcu9mlOEkxFaim9FqtuyQ0bJ293/51YmhTyidiaAp4v6V9j DvpHlkkBqMW9sThbCd6u8XLydvIr5qiJtjFxXHjYzQsM7B2vFA/AUTFnlg4WDjkpJ1p+ Cc0A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d8IhT31d; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6c75e5643a7si10406016d6.280.2024.09.18.21.48.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:48:50 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d8IhT31d; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94m-0001cQ-7M; Thu, 19 Sep 2024 00:47:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94e-000137-U2 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:24 -0400 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94Z-0007Ij-5i for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:24 -0400 Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-7c3e1081804so95012a12.3 for ; Wed, 18 Sep 2024 21:47:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721238; x=1727326038; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3PbYSPAJ6rnlNnfP+6+lqxv7ue/rw4dEH/6Q+9usd0U=; b=d8IhT31dlD9nqG7Jr77XL0TfTShRtN9693+0ugU/8uq+5SfiILyQ7cmz6sKWvHHdMC I3oDnRWoCsIjzVEKCHuDyGDJykXUU3gZCLIFNjTQWbS84Wsg40ad4vUazOunpc4EIOu8 tHD+1hJeRjSaju3dAR1S17gQDpcK81lqnuOYYe/+boOiC0CVGaUjnsSj6SXHRdllFzy9 PrdpLSfX0JybB69/9GGBDmh90P+dVjifWz0dXISQ8G076Ua0uUYO/MT2Xp2w4RC9+sfO 7zTreCxwZfxSd5SU8teqRJ7sKE15IqLsT1n5pSg7IAB2hxA3IPK/MxjmU1ofq9dniCwL 0k3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721238; x=1727326038; 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=3PbYSPAJ6rnlNnfP+6+lqxv7ue/rw4dEH/6Q+9usd0U=; b=nho6XoNAfRF3guHnB6ITNHCBFcNtT4A+PkBGrIv9b4dGKe/SA9j3jFRlQTM4hlOOea nzeZ4avMRRO7wxNY58zkTckq5NURF1GbsFXs7jmvlYZ7hb4P8AGWpcpNP5TaV83BpIJe rDoeyFL+wMLtuoVHLYHZelVJNPTBVNCkN82S04Q0b5rcHc8XRoOB4/ciunVALzb6vt8q 04xu4Jfk5PW9NGumCYrcLQ/FlD4U//USPlQlwoy/R/tImjDnDYaUpoT0cyKUGJSDH2wn 8lLZWy3lMr+bFAV/gWzeL1ItxejCaW7NZ8udf0hwlLBiTG1KFEW3C2XYoG9xmOzx+muw RAMA== X-Gm-Message-State: AOJu0YzjUk0pEmdMJ6uq3oSzA2Qx+tjVeq+i5UH3snWRRlTuuce1qMGH gqGNttBTqeBZGqfNSRYtNNB8jC+sAx2gDdBBgVXYOSSXEwVdwV2ugHttJttsdsguXoi3tqU/ZY6 CJuPiQg== X-Received: by 2002:a05:6a20:43a0:b0:1d2:e8f6:7e6 with SMTP id adf61e73a8af0-1d2e8f60a4bmr8759330637.13.1726721237824; Wed, 18 Sep 2024 21:47:17 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:17 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 16/34] block: remove break after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:23 -0700 Message-Id: <20240919044641.386068-17-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x535.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Reviewed-by: Richard W.M. Jones Reviewed-by: Kevin Wolf Signed-off-by: Pierrick Bouvier --- 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 Thu Sep 19 04:46:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829592 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155391wrn; Wed, 18 Sep 2024 21:55:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWgMYWXL17JFXQQsdK8TJXZhf3HhrtlLzC6xGQsXHoSHSHxij5B3+y/AzAC7tXGE/+pS64bpg==@linaro.org X-Google-Smtp-Source: AGHT+IE5odBmHdKJpQ4NJofJbPH9wy6cFIiUtL88LiMaNOL2/fXTf4eAAbvVsvpq8G310xet8ku3 X-Received: by 2002:ac8:5d47:0:b0:458:51ea:e36b with SMTP id d75a77b69052e-4599d22546fmr325617621cf.5.1726721701758; Wed, 18 Sep 2024 21:55:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721701; cv=none; d=google.com; s=arc-20240605; b=SXPHPEDko8c8YJkvKtvLq/PKdvG2+AAAfiTW0RnhCe0q7DXTVObhYf3eH2mzWEQ2/0 vQQwl2SyQvSVIj9a9Dj9+LLy9k1b3efJPmw5R8rRe8l8z9uWIXddsurxA2+QqJ17MQWq v1Bf1FnTIfHN4pxpRx2cjIPvecMAf3iplat7FTSDJQUpWfZ86bpcva69ki/l1++aQASU BMImX65kK8923ByDwoN/iiRzzgbNqmth5YA8/o/f81Wss0pDK07VjlpQFNUR5GYPRBS0 +KZ5t4IvH67h4i/GDaYhLR/rsecuvtrn101fFGpyo2toRM9hFOhBYizIrcYkb5joPGEW +lpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=P31I3C44WXD62nQdqJ/4LHYU5tGPmQzloTc3BsmhhAw=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=PpTC90Fg3sq/iO7b9tyWats9RKTVX7tsAfcg9VNbXsIFTRRY9peRSNpJRuBovZx4FI caYX+RqCEr0Tgf+qNvVE2kkIlepFe7dziAIyb9OHVfUQXlwhHLdJXsPcj4BcBspPaWQ5 OU/S4KC+LRKiaDrnb+6BsCR2aKB02VxQjGRpcarELBYFlCqPP5IeYEyeTXf0tiTUKYfb XWT2E8RGCtKtn+rx7auA+UIZ0TqQRsYIOI4MGTmLYtnZRwztHiIG6nVxuAwwDDjqMl/S iEnnKmHBB/2/oUjwx/KE9IdX9T/W3V6LWfy+yc7X6DPzR5wNECt5MN+sFfnh+RQE7FvS P+Dg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PCQRUVBW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b178ed84bsi10774451cf.278.2024.09.18.21.55.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:55:01 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PCQRUVBW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94p-0001sC-KT; Thu, 19 Sep 2024 00:47:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94h-0001GA-LH for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:27 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94b-0007KD-Mt for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:27 -0400 Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-70b2421471aso242951a12.0 for ; Wed, 18 Sep 2024 21:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721240; x=1727326040; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=P31I3C44WXD62nQdqJ/4LHYU5tGPmQzloTc3BsmhhAw=; b=PCQRUVBWRoTL9Aw6shuvnOUOJ/oVrDv1LJWIj7KFAzxw2x4dBTaeuOPJ9in5XFMnIg kZ+lqMXxSH0YG/YFxgYBri6JI5AoyVFko8jK017KXq5NXg84kRS52c1e/awgeLH/SpNJ jmeS5u7Hxukr/BVkq9HnHj5PhFs1T0Y9zsFwMEGkPFr74gqXes4U3464ZaG6e0Ua9ZYd 8HJpTyJbRMzLGXncadyXDKm946xB1CDGvY9SwRYynaSOfXttLJNcmlo5sDQqYGiIOyCl 04WhCAK7yOzIYwJd6QyhwLaug43/rgbNY+19balMW8TB0IX/nHGmF8bZ1WAmmADBhKDW bCpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721240; x=1727326040; 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=P31I3C44WXD62nQdqJ/4LHYU5tGPmQzloTc3BsmhhAw=; b=UFuq3u2cpoBY58Hofi3qyDMhgRAYaAdXRzYIxc7/fZTZeRXv6Bu4ftahBtV19kjPcT T5obYrhESAAZ5V3SNw4Gxx+TqcMSvn7aWdOrbETKPTipa3ZfRRuE0+qGZ2CbYH1HFDu6 zrO5mZyV/5fNDdd9ZOj4byDKlahMLSurDYJgahYH3KmjYuDNniz+/W/4XXl3Jx6rb21R IYCr6z+DJKC1O+gaOpSDdVLxdIva3W0h5lm5dWeke/LVrV+CADRzfJ3HhdOPUXEar3iw XsWqgstXVrnI3ltK70lsLcLKvNzW8exgSIpHpj5ZGdY+kgRcXdFW7nttpmFW8Y5fId/k bW2g== X-Gm-Message-State: AOJu0YzEBfs8J0sPcmT0ZUeLIndQOHOExGxRfWUce21jxTQDH0OHx+Fr PG9JR+e8Y8aFjaEhr/8DUCpX69ckWAOQ/IdAtxgFAW6xqI7VdrSK52O45gTLnDhqkmQcz9Bivnn 56pR/JA== X-Received: by 2002:a05:6a20:304a:b0:1d1:1795:4b43 with SMTP id adf61e73a8af0-1d117954cb8mr21768562637.26.1726721239845; Wed, 18 Sep 2024 21:47:19 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:19 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 17/34] hw/acpi: remove break after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:24 -0700 Message-Id: <20240919044641.386068-18-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x533.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson 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 Thu Sep 19 04:46:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829588 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155143wrn; Wed, 18 Sep 2024 21:53:59 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXW0L1vGqDw5aUSyHvaiY3coarBOT0mnhkJWuB+PQePGWwhPOIT/r79Tc1aO6OiQX/uY/Ye/w==@linaro.org X-Google-Smtp-Source: AGHT+IEq27Ds9VfSygF3NRVqaZH705hReyqgO9TQcwaHFNZCP1R+R7rWzt0p8zk2EKsZqbwjegak X-Received: by 2002:ac8:5a84:0:b0:458:37c6:46ee with SMTP id d75a77b69052e-4599d29f81fmr306786131cf.47.1726721638749; Wed, 18 Sep 2024 21:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721638; cv=none; d=google.com; s=arc-20240605; b=bEUvSuZ0CBLdOo1eGPAIijWdQuAGIuAUPjLZ/871Ag4lOx4eZsVDE6dyzc54ybxZcN yasRmT0g4mxNlCDPGMnDxF3WZ+3W0uLLFapZb1kVd4yOsUdYPjPjJJqsXBXbLAGrxdLH O8jJf8dy+20yavUg8XAVVsmg3hWulMI0uo5mCLKmtiJKVw8qjW0wJxTDDicgR3xXyWTH jsuiSskX2vcakHDcv0yHGeFXIF6Kq2d7o42FLu+wUSxfXLOPVrsHw1qiOUFSuaqMIzad KuQEwSwiGugwb5Ln4BQvRF+wmFa0Bfc9hA/rbVykwxGPT93TpkCW6fqTWEgXKyXd09jz oWBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XTfod+luVyICpEfgZ8Uh3DA36M6kM7v+mrR6MBDF7uk=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=eILjd70KB+97zH6FqYU+jxWgSsEbvF0p4rGX5hNNlzIed4tIdZey6cJjA5Aowjvc97 J2OXZ6cZh0k4q3IJxQ84jokr8BnsMuh74Nr3xcVA14b/lHjy3ILUqHW7VfeUbemM/sNg EFd2cYhviLd5QPbDORntpKITEUx+0uFEJ4lGhGuJc8YV5shgIuOEqxtcb2TxMRZ3XLkm 32BThIENINgC8EXy2Kzye3UgvBSfDCMCB4xLcpqZaMoQ/3psvg8EnSS83+2mJ7eIhdEG k48zJVoDe5oJj/Oj6m39N68BHfgjIAhNmN1MX9oxqeTO8gZTzTTt4wZac3TQEFvxDp78 5hLg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gySmbAwF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b178698e4si11114821cf.90.2024.09.18.21.53.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:53:58 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gySmbAwF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94r-00022M-SY; Thu, 19 Sep 2024 00:47:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94j-0001OY-BQ for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:29 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94d-0007LO-GO for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:29 -0400 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-718e285544fso294421b3a.1 for ; Wed, 18 Sep 2024 21:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721242; x=1727326042; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XTfod+luVyICpEfgZ8Uh3DA36M6kM7v+mrR6MBDF7uk=; b=gySmbAwF3yQ1JULozXtkfqpb9Wyrr64X1tk3Ncjgb7LgUXzQHQuOlP/Lo7JdhEJzkh iSpJgxjYmkYDPFy+GYc5xfFUyokT8AAPAJoJ9uXEXQAiVU6WPJ9o9ZjKUvj8IQawXB4l qNPypWqK8+HxBpWtqEDPBL7UtUPHk05qndYzYF03W9tiaq1Os3gCnE/+J79UxveA9cvx W9/DpnSNW7ziz8PoRm3u8Ftx0utqMToO8cm9YNClrnPswptgFoUjFD56i0IUJnRJH739 vz5xox2J6cnKRXaEm8TRP+W6KvYGhBcHk5XR9WKf6zVRph5LsFtPVZbuliAHxXv996ni VIqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721242; x=1727326042; 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=XTfod+luVyICpEfgZ8Uh3DA36M6kM7v+mrR6MBDF7uk=; b=MXo46Qn2pGMVZhTktB5nUFL0gWXZSn1igeFZBiaA2w/ls8yeqgx2hT750NuH5iIC4A rd6UGPU0qn2RaGdnZNR2Z14E7QFxYaRM5Y1XN+yleuf7U/6Ae4FfgLe8bVyabfEV4I41 O1PjM6DQLckOCu2KM99WqxhdK05oiPdKSHCg1jtv0SBobNXkTSXAEMWejJUio0GZyYP0 qSuM4TdnyS9+HTItkMlgZR46Hn5MHetPwR8AW5+P4qo0SMixq9PxBrHVpJIK7xkZNhCS 8C661se1tFs+CVsV8YAmBdEH6TLLyjX2qA1PlvAtEMX9HjJwMmWy40M67y0BaNfzxqew ZUew== X-Gm-Message-State: AOJu0YxGpZIoDK7Mpw0l2yTAqcVLi0CwfI5q/CrZhRwbjKoBbZ8tZcWa M4ZNGqtnEABTB2Xd3e6hvLmWGsvSqV9fmVqUqcsHFRYFLbOL1q78rFDwwOWjJuiadmiLEyyQhF/ 5ToPlfA== X-Received: by 2002:a05:6a00:2d10:b0:717:9462:8bda with SMTP id d2e1a72fcca58-71936a5fb10mr30684467b3a.12.1726721242032; Wed, 18 Sep 2024 21:47:22 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:21 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 18/34] hw/net: remove break after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:25 -0700 Message-Id: <20240919044641.386068-19-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson 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 Thu Sep 19 04:46:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829583 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155050wrn; Wed, 18 Sep 2024 21:53:28 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWcRad0bn2fmvBzgEOFmLABGJ/hVLbArvddEqX2gnFlcS12YDpxQgeK+5aVNn7vvhDag5jZrQ==@linaro.org X-Google-Smtp-Source: AGHT+IGT3NgBm/TBqujSy+IlzYt2+dWPBfJkvjrJ3IgeMBAjcG7q4VOVoiQYeSdCrzJWMoWynzEj X-Received: by 2002:a05:622a:52:b0:458:5161:e0ca with SMTP id d75a77b69052e-4599d2b8ecbmr312513521cf.41.1726721608163; Wed, 18 Sep 2024 21:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721608; cv=none; d=google.com; s=arc-20240605; b=G778dglT1PHhxE1/DURMIrwb6e//kqBJrYzLvla4Jw+TNkStUzbwHLRZEYPfSxcO68 31jWMh8s+xo5Nki+KEs2EP6wJy/54ax6p2EeXOYJX5HiXFRVhEewpTIASHddBvv1wVgo eFRxZ7GLlYz78jlhtrBmUFeC6MwHqdA4tI4YJklIhc8GmAla/53SRXUMpxIK9S5uC5F/ /n1kujXx5K/l2aQSX8TE05M/hX6ADaMkUfvBQkHf2OIvwgegIA78/7ArHeexLZA6Dwae /52IvOZEfzDiu/CpHAjZvkYkG1tdKn8ZPhg+PiOJEMfsuCv4tt8/P70PUmWWu5MKRSWt c6UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XHltE5X3jHFpn43VYV0IEXfKWmPwceAvVFkYvY3AXAY=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=Jv2W2n0eeZ5S1z81TmGJQZ2lDLRUNClqD4W3skpv3b8UH+aHV/iooH1sfrFFYIvTU0 75hMef8e3dCxTYSB17KHgK/GqzCp6Zc9Edd4ZK0Pd5x42XvIspN0kDRSRcUHjbsOACRd nsLod3NAjbLF6HxxOkQkcnM6jpTw6EEzwgry+LRtMnXMviJM34eblHWxXU+ppm1T028z JjSJLDsiRiekkPSHZw813rrNIEVDueqqdPX6oIKqpyS4J0FZn6RGSfK/NnVFD7bmPPsN bgtxYTF9uiKbMugMve7bf+rvLDcDES3+IU8jSMV3F8pgWcwniZSedmJ7kCoQDixuyJj6 xd+g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zs7o5zQk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1790efb3si9947551cf.457.2024.09.18.21.53.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:53:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zs7o5zQk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94o-0001p7-VP; Thu, 19 Sep 2024 00:47:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94m-0001e8-I2 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:32 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94f-0007MF-Eo for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:32 -0400 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-7179802b8fcso280453b3a.1 for ; Wed, 18 Sep 2024 21:47:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721244; x=1727326044; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XHltE5X3jHFpn43VYV0IEXfKWmPwceAvVFkYvY3AXAY=; b=Zs7o5zQk0R5zDWs3r/rxohTLdxbqnH4l6Jmx1YyM+kPyDzie7f6vBe8pjoNVY6O0jL kx50+ZWSHDHGz1JCO3w7YdMMQYcgGdY96CaCFhrrXiZeskf4KF/CYGbhVyrWA++SpN06 lwaYx1bMLZ9Asmbgbuh576BmTkaT6VvcKpOBbRaDbqTkrYKwyUodPlTzfNC73B2oQ1hj mxJqpYpI1qcfqLW4Hr9syZrYUIlQj/xxQLe567CvIHHKKatniqTKR5bcMLTIyNqttEVc ZSm/n3022ss5xlEDpTMfuHkqoWv2SSjivFCkKj6TlBEG9f42lYkFQRQcBHfkVAUasj/7 +JQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721244; x=1727326044; 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=XHltE5X3jHFpn43VYV0IEXfKWmPwceAvVFkYvY3AXAY=; b=pHVd74OyQaWyR4GUf118OVqFD6pRAjn03P22P2RmrOzm5FJtH1jmxNLs+QzuO7/QSo BZ/TGMPm0AA4Q3xS85I+tc4jeWDiFAHxC6Zo63KJtWd4A95kRdxsvhalGWBVT5IIVEMM C2nz2nS/SMuyejfi+2ALjtjxRBQjWJV+C4rEoVr5JGQZMND3aPlJJ5PtbZktn2PypfkJ 1I6CIyxq+k6H4zP8C3cqEmVztM+dPkdqYL552uP+alonVN8V6oR8VZLQfLHNWDEZFe1m E8SMs2GBB7Guzj+9pWyc9obw+mFbQ2jCmeeCgwCUPwRmW103PQQUaCYvPSJAn4/WutHN k4iQ== X-Gm-Message-State: AOJu0YyyI4nsVImXEjIol6OxVSLzzB+MChKIu6bRkg5/GQjXfLZmvcIB bB2We7S4pwaGj/OMm4o4PUUWlB5OchJyKdXrKHHRGNcMisrBMASy/5qH+62XOu3/6aZJJEAywir gJxU44Q== X-Received: by 2002:a05:6a20:1918:b0:1cf:37bd:b548 with SMTP id adf61e73a8af0-1d112e8bf2cmr21148987637.37.1726721244023; Wed, 18 Sep 2024 21:47:24 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:23 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 19/34] hw/scsi: remove break after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:26 -0700 Message-Id: <20240919044641.386068-20-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Reviewed-by: Kevin Wolf Signed-off-by: Pierrick Bouvier --- 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 Thu Sep 19 04:46:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829576 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154838wrn; Wed, 18 Sep 2024 21:52:24 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW/2efaLgUlyuQXHd7WSSlPuGPYLwDfRH/Ct4/6thKgWRgSkm37oqMxtKYuOUgLS2WkcaaMww==@linaro.org X-Google-Smtp-Source: AGHT+IFpsF1vpnU/ITZIgpd9WDrGTe7LuAAwwIlym6TwNa9uVEhVtqZB7ioFiv6DcQhr1neBNxGN X-Received: by 2002:a05:622a:1898:b0:446:4c0f:ef03 with SMTP id d75a77b69052e-458602bf78fmr456188211cf.10.1726721544366; Wed, 18 Sep 2024 21:52:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721544; cv=none; d=google.com; s=arc-20240605; b=bpUTc+qGimfoyjieMxDoHlfe7lKHxXh62HSlGZ7SfBgI5JW7JgQvDHntE5YxDmOfgA ifyFRMFSUJEb7hXlHvOQ81jPsnzG3OsjhzjmsMvZIGEeiCylp9bkUckOqPXZecuERVp6 zFLn8r5O65dVzdbw1djUsQZYgREHhEzEYb8fxGs/YPHewH44135x5NmJYaTbHvEByogp z/pe5qImp2EOkpwOK4034iURQ1D3Czel9UeON4GVLNSWR6lbLvmpN7brXU19HHCiZg2E +ROvsTsP6tw7VkDQf+Ri0R6o/ykClWDeHdDA4G6Nw7tsTqNAuBJc5qBVrlZsx/jLIedY 32tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kRUr7Rigd7KXsxIxUKl75LNzfJl8HLKhUx0dIIEBKEI=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=TtfGBEiJ7IUowLVOT2YUuqcHxcfNwTQ/oE7m51ZKHEUGpjNyE35BJjt+uEHqQNF9qa Zj+gJG/NqcQSuyRsC45qDVYxajHrjuh8TErT2Hqf1bQpQ3iuxh+5S0VwN3dwE8Z1UFmm JV2kpXjcps3Jj7Lu82HjDKDaJDJSGLt7mzLgtD0OPVRzi6Ei/T7AvDSh3tV8nc+vmEhZ g5lS4HizG3KQU25h7XloC/hyeVxnF0MwetDlHMhh2/s+TKDGeIW/dLBdC16ANY8OQJ3G JYUj8wrw33nXl3mOke5LZGf+q64HpCPhkjPC3aEFJPN2d7yx/IGXyncNM+gJkhlf5eYR QTKg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Iie9R8s/"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1793d75bsi10765731cf.660.2024.09.18.21.52.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:52:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Iie9R8s/"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94z-0002bj-Ii; Thu, 19 Sep 2024 00:47:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94p-0001qn-8e for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:35 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94h-0007NB-Dn for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:34 -0400 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-7d4f85766f0so296314a12.2 for ; Wed, 18 Sep 2024 21:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721246; x=1727326046; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kRUr7Rigd7KXsxIxUKl75LNzfJl8HLKhUx0dIIEBKEI=; b=Iie9R8s/mGs6pOIb+fjkjPZLhwHE8/fh8FbDSToEjvUEk0tR92gxIx0TvBJ0LKhP5X dLdfDFBpNdddZpiN+/r6hNrV8sIHqGPOaw86FiMtmTtFmEljqnvuRr0QewYIkejv9fSM BoRtcMbhTaCve11N1C2lphdkCKp/+1P8HcLDexM5rKfB+SJUmXjZQE0a800nw570lhhM WKxaJPPw/M0f9MpEjxd+ILaG6abXsaNP2euay+JA0xa9lTsfBaMC2JQ5W789FO//nJDv E9hgfrFB9Z9JzRymuDP5dhKnwxchwg7gejxfICe8ZkzVUUAI4qldoCbZh7cFbdh0PcCN r6ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721246; x=1727326046; 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=kRUr7Rigd7KXsxIxUKl75LNzfJl8HLKhUx0dIIEBKEI=; b=aYUeVn1QuIo/ceM4FpAK3RJhlDfE/IM2p3L9unnLlSSTcX733hIm64MsxXgXO4WKDf B4A7jQ4+ko/X3RNnDlMP2ekRJ6rlgDq+9TIGYrW4Ci95HA5uffBDUHc+xTHH+NeTLdyT rSZmsdrgrCgSAmQJVs6FK4jYlGgrcJPpgdJoWBa8+SbK0kI7FkjIhJEWUoy2A0jr6CZU zlDGHpgngoATS3erlxKy1xOYMDSvpb1z9w2qDAmMiPxGm6936GAlzHqjItOBUOOyx+Cq nuNVWPXP6BnICLHwCD7U9O43ELzo0vBk28djlozyInZ0dxIj6peVjuGLVMV0XkUzw5gg ARng== X-Gm-Message-State: AOJu0Yyer5JnBdb3CDsc6fBNi039Qt6SXEZq4N80qq4DimQKeHnAATXn aHMw4LGyQeLYECpaja14M0BraLvJEAfNDsxJnjL8t3hQ+AGEeBwBty2SmYEIR9qLiIO9cDXTV7n deMdl7Q== X-Received: by 2002:a05:6a21:2d8a:b0:1cf:1217:ce87 with SMTP id adf61e73a8af0-1cf75ea2251mr39237052637.2.1726721245964; Wed, 18 Sep 2024 21:47:25 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:25 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 20/34] hw/tpm: remove break after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:27 -0700 Message-Id: <20240919044641.386068-21-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x52a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson 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 Thu Sep 19 04:46: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: 829580 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155011wrn; Wed, 18 Sep 2024 21:53:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWUU0Zl6IZqLv5wowmiE6m0QEeOKe6tWgLY/zsOyNJZ//LaONl1CugZogYdfAUHqDaJO9Q2XQ==@linaro.org X-Google-Smtp-Source: AGHT+IGTvLONv7hXVSpD/13ON7oadYaHKP9qjY8GvmL9KYEkXeAC53k+SVp/hK2vyKcxbZ6zbgXe X-Received: by 2002:a05:620a:4729:b0:7a9:bd59:8de6 with SMTP id af79cd13be357-7a9e5f18563mr4307092385a.27.1726721595031; Wed, 18 Sep 2024 21:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721595; cv=none; d=google.com; s=arc-20240605; b=Tyjw1lGvPP9mJpTpPsgRETBNXsrACA+3uYDBlTrE0XTAX6L5/YZMcTvCm3kiaEqKHB gxn75W+2vdSrsdnzXB2ySUqTfN5TW2ZFLt989k5YQQwinKovtHbxnxwmdXBwFD4sIrNu rTnhTpBmOnGwVaSTIzluxb6QqAUSWmRWEgEl8U1EYcqMbxPn2tkyOaF5NR0588OreaFi AePLnND6rWLo8jhtJjFLWVbSDE9v6j5fYtn0MDrlWgeTt1RvdSEw0TIeK/2PiQiYOa7d E9FsFjJFvSMmwDQ3spJDQG9jwxrSTvUX4aSSDwk9NBYsxCPOy+Dpe82V7LLwSPSmVKw4 8fEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fOTDlymCoYoChOB3X8FuVGmcdRWIYVQOru1+/fCCr8A=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=Y0pI0cxv9XhM1YNxBHp841iMDCMvrBAZrUDmkv+JIwsndNWzYg+UagPQPP3uZW+IVC jj9LtGFSbMKeYZDHbU2KyTw++n1pVUpjLeOUMhhr7J4lB4xowhm7xzjKMERwIPR4ySr+ xEn4N0Mftg0F3bF0DAFGBC4UZR79qviyfeozuhdoI8ZL0hBq6EOWYtIdGnNFmqYBADr3 kizwrUVFPrvZ9pMLvUzOHe13pwg90iH5NLo0+F7LkxYWk78NDtwEbl14MUnfzPhVSb/9 mI4P/emhIqm6Rvpsu08MEfWGH7r2E6gE9LWuR7x1BKM7dR+CUjNsOjudgnSY1WCRHPLY 7kYA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZaC+YqWm; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7acb07f81f9si114958485a.150.2024.09.18.21.53.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:53:15 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZaC+YqWm; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94y-0002Vy-DK; Thu, 19 Sep 2024 00:47:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94p-0001qN-5g for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:35 -0400 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94j-0007OY-6y for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:34 -0400 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-7db637d1e4eso259228a12.2 for ; Wed, 18 Sep 2024 21:47:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721248; x=1727326048; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fOTDlymCoYoChOB3X8FuVGmcdRWIYVQOru1+/fCCr8A=; b=ZaC+YqWmznBoMCMkfDLMaw7G5TyLwN2c6Szpv2AClIQUQv0CP6NOz7YoRRv3g+GFas Bzh84/ilO1Wcx6OUa6jtI4iTtWJKPW/mKlZOHKaaB0ktTA0/iZfWbFvNCjPrssr1o9aM thVrG2+PM+wGCuF3uECxKRliVuT3vRz6gOlEVaqqitNu73z6h7VYD4Rf9tAbjupmp76n aeZLF1wiVirhIpqJsHUP9cUlFJmgwx44ZyqiqtgjfwRJ6PctFxMQYcFSCIl7J3UAvSSD CmgroWqe6i2S3MM/mIJAKJAjbLZMr6sQGm9G53tqDlZDl8/dSrVNKMxAVUNF7d/FE9Cc vh5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721248; x=1727326048; 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=fOTDlymCoYoChOB3X8FuVGmcdRWIYVQOru1+/fCCr8A=; b=LM0+x9iO50feACGYgDM4Z/Te2NxW1Meh7RYhkhwGfJoLgiDBZp6en7K+ytyWPDQkVz MYmom7eEeRpcnXeCOpF9WsieHhtqsNXIGAYAdaaWkFbtRQ8bMW3sA5k7RvTmpP33XR3W XSql25UT3O0AJjjNpW2hSYvZmd1hAJh/ytyc1yZlvok78EllTsUQk/KX9zLcSZSGI4xD SJXK2Kg7Fhttf3rgMo2HdarhHJRIcBtxOm+V0NylismHQorg8Gp3tA19FeymlLwgRuMI MGhIlsAzjqGbyE6nrUBv4x6fMiPoFyuCzrZqMkD34WzWOITLxscvORQn4Z5yRMw+rpzX 2XDg== X-Gm-Message-State: AOJu0Yy3Od9c33njuQEBdIbxd/nu4DC74l2GpBh5NXMvo/s0YHMaKYEW Bi7BSuirw90use6TabJSEA73Wx6GJLLhklF1dDuhEMPM/jJKgw+iI5okHvcQCADGJUWh9af8bO6 1a24q4A== X-Received: by 2002:a05:6a21:2d86:b0:1cf:5437:e768 with SMTP id adf61e73a8af0-1cf75d7fe57mr34834771637.7.1726721247872; Wed, 18 Sep 2024 21:47:27 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:27 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 21/34] target/arm: remove break after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:28 -0700 Message-Id: <20240919044641.386068-22-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x52f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson 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 Thu Sep 19 04:46: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: 829578 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154952wrn; Wed, 18 Sep 2024 21:52:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXkn//RNdnX2GYYBaUHige7RTwJ6mfCE24G2wFUHiqnrhHXzH2XsZxmnV696Fn1CY4JyUc4Ew==@linaro.org X-Google-Smtp-Source: AGHT+IHcE7iVUYNCutLk9CaY06GhHLnQMiI6xn+xqaKeMVMh3Bj2OmGfebgnZMH9ZSIPmdPuxT8d X-Received: by 2002:ac8:7d11:0:b0:458:5ea0:c791 with SMTP id d75a77b69052e-458602b4e8amr426965971cf.3.1726721577769; Wed, 18 Sep 2024 21:52:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721577; cv=none; d=google.com; s=arc-20240605; b=A9hr495F+W/1X4xiP9OwJIEjtJk+c1dhS1XEKd/ee5oph+wm70IuNIMcZDdcccA1og lheFZuiDvh5+Jud4R07A0Z8ecTPwwlZlWO21xVpEJd6OHg4pVY77SEA2wfMr984affe6 XiLJXwXcgtm+mAwfukROAVcWYc784eM3iRUfcWg4AFN+Tpu2lMS0bfPj18NpzZXy8Dr9 DbPHps/YL12e3Rl9InJy1aa34mdc/013hQ3adgv3B5hpy1+eursjY4i+r/B8lpE1iWqw wIHVobm3lSwUDav1k1jhVB2dCa3Vc2+jHLBmWWETx6CEidWN4LONE4lsu23One79CLcS 6lyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=l5Ewnrr/qjz52ggXP5z2OAFJ85TodMlAQJmzdk5fJ2U=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=cMLL8XanhYaF3UrlOA85LTH6BEqQon4iScEoCv/4IC0zPCxfA6Wu7B9WuHQz/PpXTo CV1iCpppi9t6jEH4GCrOnqfAOroq9XQmbN//0BsXjCSxrWEEOhtLC+TRSDlvKDkKu8yg R1r1lhD2ge2ZNBEOnCDN/jq8iKFfAi2BSGwZPAgn+CjxSt8rLSXkSdqGdyS9Axly32TS MriH5W5MNAgfpSLrVaQ7rLBOjrt/1QyrP32mAgZwV19PfMlvjqCvA/YGPqcUwzaThJkt jOFRYEApPdiJvh08f+8YZfkA0//X/rqIpnZ52pFX7bVMIl3OLnxsQXJx+orPHZqkV52C agaA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G7fby94g; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1793bcabsi10070781cf.693.2024.09.18.21.52.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:52:57 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G7fby94g; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94y-0002RW-23; Thu, 19 Sep 2024 00:47:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94s-00023q-5l for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:38 -0400 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94l-0007Pd-2U for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:37 -0400 Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-7db637d1e4eso259265a12.2 for ; Wed, 18 Sep 2024 21:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721250; x=1727326050; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=l5Ewnrr/qjz52ggXP5z2OAFJ85TodMlAQJmzdk5fJ2U=; b=G7fby94guwakQ/YJZiU1hAHXDdeUahYgfU+6B+871e1M/As5gVA2LXg8I2OrXKTffv m450Ne/TC9NMmBn/ddx17G/B3KwRiyF3c+oxSKxdJzxUbuYV0OGFTZcfHeCoaMkGRjjo 7odTlRY1SS73T/hgmMDg0ahrNYwIwd5D4wW862vqP80qWhBpyUnkjDKkOKRkULlGtGOd 7+PxZitXqbZUKpyKIaOe9lW5r77cugESNDYPOfikGf0fFLOFTd+7deHsJ3aJ/PCDBVfw AANpBBTRF41D5uEftiE4buy0LS9eJjHor8fcDVAR35fSISKCJrUaG8Q0DueZR+PgfNVN PXZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721250; x=1727326050; 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=l5Ewnrr/qjz52ggXP5z2OAFJ85TodMlAQJmzdk5fJ2U=; b=Y6GvNk5Ot+9iumo4iI7Jr6iKruSAMWjMHjLU1dxhBOxMCSJQ7LwpfzKMag5TLDJEif TIMc8S91/Ky0iFuXLgIudQs5pVkuy3l1IxSe9PsNpERbG1GG3JyjPq6SUbxyj9PpDhaP AU3YRm89m5FNhw3tmoEa6Ag2N5soWZvvydtJlVLdXT9PL6wQ+99VEw1jedAL4H8Ha7w5 dLr3O9tWAZPCuszW4anHvEe0eelf4YSY5zJe5kDJmW2JQnJMEBB4EtWLDp8JNqORim3c XnyyvpAYHJUtC650AcanldXsdCByKD9+ssV/FMNJ8tO/F5Uq78o7YZgs0NUMVqWA6+xw Z6Gw== X-Gm-Message-State: AOJu0YzsNpXRwmBA2O/4WYycm+Ru3FggvMc2LQeLUkD/QKWh7J1esGGl hiG10Y7x/Nu4BpZKhW9eSPiVyPKTdwzFf4jJ8l3r7nXi31xASK361PmwhnLVg+Y3KACHvL2Ed1O K4Jt83A== X-Received: by 2002:a05:6a20:b58b:b0:1cf:3838:1ed9 with SMTP id adf61e73a8af0-1cf76239c73mr33120242637.50.1726721249781; Wed, 18 Sep 2024 21:47:29 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:29 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 22/34] target/riscv: remove break after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:29 -0700 Message-Id: <20240919044641.386068-23-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Reviewed-by: Daniel Henrique Barboza Signed-off-by: Pierrick Bouvier --- 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 Thu Sep 19 04:46: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: 829581 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155012wrn; Wed, 18 Sep 2024 21:53:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVCjAUifekR+pgc3prMPWf19YbNUXVPG3G9bn2lEq9nWWRVEMR2mkmjksN+sKGm+MJEGWOOhg==@linaro.org X-Google-Smtp-Source: AGHT+IHkdyhy3kop9QZYClTeg1RnF6XqUDXem5MRJ9cW1azpdvkBaq5TCRI26sQyxQe8T8iAPMtu X-Received: by 2002:a05:6214:3c8c:b0:6c5:afc6:7f42 with SMTP id 6a1803df08f44-6c5afc67ff2mr112964586d6.34.1726721595181; Wed, 18 Sep 2024 21:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721595; cv=none; d=google.com; s=arc-20240605; b=Rd7ExfYssvQQq0n2iTQF0lbW7lF8dSFUyZczQ+jXMhdEnm48RuC7XJnoZ8r9Epj5ga LzULr/HrWHI3IaD11pG+rsx7VC5s8m+DljhPtys8B/qMovQvJH9h8+xj4emlXU9qwTsd VUjQn2IQnH+dGq8qx9NettJbYI11wukk9zksutKS7+DlijnTXM40xnECB06gjmIDJRUL V1+8bp/pOAQc6OWu+J7ZXSgITsVi5s0gAWLMh9IH6y08ofhEPjNsFHwDiZjWQpUycPC5 ysCicGR2Pz71fOnmUjvOez6Y91g+yY+g97AiKL+2wApYPvoJmFBtE+0OhOctMkCU57XV avaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=htcD0BwVI8E53kI5D4tk23OSCVl4GJymUerem5Vd+Nc=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=Nz74zDYqSQVqIndSKXI8co9ziMI4UUTpBzX/A4a/9s+ir1C4LS4uwbCcDsCPieSgXv qy3RYynYO6tCOz1oZRIxlpmT1pGUSOllLM6+ZtqkO7UUK1isZiN8/8aw+oTx8XKh5amJ yV8wM2igVXsfJTFFdDwoyAxA53LmZJL1r144i8/XZ7yrlo4s1VOIrRpdtQF3lv5a4CTT MNd0wff4fdjyBO6rlweAOrXFYdFpdNXCdEmXoUJyuzx+cl1fe/+w0n+tp9L8C3sqfD5A WYhvS1KzW5xEtQkelf56WjrWTM6rFVBbNObc3GItNq+H3bFlF9pMctjn/NlXnIzcVrlQ J6vw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EaEVxZ0H; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6c75e4573afsi10737016d6.47.2024.09.18.21.53.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:53:15 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EaEVxZ0H; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr94y-0002Ro-23; Thu, 19 Sep 2024 00:47:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94u-0002Fv-NY for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:41 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94o-0007QT-8z for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:40 -0400 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-718d8d6af8fso288200b3a.3 for ; Wed, 18 Sep 2024 21:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721252; x=1727326052; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=htcD0BwVI8E53kI5D4tk23OSCVl4GJymUerem5Vd+Nc=; b=EaEVxZ0HLuprq6O1npqaLYBKvyWVVjcPPKlZp1EZgi5Jnv+qr6bVNCr8n/gVWJVHoD YuvuOGAkKDSVzBBOfpXkT44uOxaZqW36cYkhgSjt/PenTgk7ofbinulF4r6Byvp3W9fR +83HCo+PKAd9oMyrvaeHWIAGysVuUWoMD5ufcj2frDkBMENRtxeN5tvGCN0yT0xg90El CNWkeMAxBZmz+aHxviCVB3FQrSGiDd41FEFEnehfFF+7H7p+xzSoi6hma5yl1ZcEcoi9 BrevB3I07iC0r4zI4gZwRFzFr5p7BtmaI0JxzfrJ4HNoSKaqmCMnik2eWjyloTLj6frC 6L3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721252; x=1727326052; 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=htcD0BwVI8E53kI5D4tk23OSCVl4GJymUerem5Vd+Nc=; b=O9WpdEq2+W2x5d9fdz9gQfJ4FeYaTOaIebLEMFhmr3tZltjZ/m3IggEvZUmrScKzGC VJXTONT63c4lax7NW5B3u8aupLOLEpOeXVEUYv/8+EA18+1Sw8kqM/lYURBzZuCRlXzL JVJB68NUQSJKmzxR6vA+jJ6JVhApv8Od3fw9sir7AMaHgzEVHK2dsPH7jl3rFujFVSK5 wtL5enXE6ro8QsivpqMdN1E99pvekX4vgRYE/kWcGQ6dEV6O2ozHtECwK6RWFc6DCobm d5FiDRpJHmm3ksyV4XT4jjz0uFVb2u3rPkFwhgkXXohq9BTK9/BuOrh7tXAJxFBOxtsO 11YA== X-Gm-Message-State: AOJu0Yz915xa/XJkl+S4uPHWYskvBd7V4R5aGUZYMjrmY7kNN0PhZxNe 4MasqO5vsFQP6gbB6yJvk3DNx+wqa66dbFDpkyro29VVP+ObefCum39MKxX/k9vHYVn4odqwagX wlcu40g== X-Received: by 2002:a05:6a00:124f:b0:714:1e28:da95 with SMTP id d2e1a72fcca58-7192608198cmr37650198b3a.7.1726721251825; Wed, 18 Sep 2024 21:47:31 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:31 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 23/34] fpu: remove break after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:30 -0700 Message-Id: <20240919044641.386068-24-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson 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 Thu Sep 19 04:46:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829594 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155564wrn; Wed, 18 Sep 2024 21:55:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWvXqU0TPe9d8XU5KwQvByjMfPtORxG2D3SonaVVIzuK/PAUcLACqW6C3fyxFMWCstHmO0iqQ==@linaro.org X-Google-Smtp-Source: AGHT+IHzp+uRIjdOjc85kjcCzbsqNrG0MkuypPLTUcq5JYba7RqEQ5xOgSf9iNvPDzIjpfIZOBzX X-Received: by 2002:a05:6214:2b90:b0:6c5:112e:4e32 with SMTP id 6a1803df08f44-6c57355a223mr280662926d6.19.1726721743736; Wed, 18 Sep 2024 21:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721743; cv=none; d=google.com; s=arc-20240605; b=TRSoflut/ASOsbOUP1mOTFV4awrGBOMNB68Q+lrA3XqN+OMkXIh/ygTmXvJy3HDhC8 v8KOIXvFqhlNaFu1mOwVY89BBa8likPojXrcuClM+W1wbCIWXrsGvN8Uk/12iFjCop5j Iye4VXb+l636A2rNIp6HOWTLtwXuScpweoFaf8Hzy9OH7rXl/sW+7eyLLp0gjEjWTCks pycd+Y1mRQFU/UlHZ1f+UtjRtkEpZRzSmUcfFMNQA2htfcCgharEFjUbNbyyUbj9NY6+ 0K7DSxnhy0rScc0KHgqw2SeGgn+qx4c/j/0BYfp60eIBK6sWSznmOGkzSc0iNVDqE5af FgBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aSSHMg0OaePxq3iPPMHVPRVV3RpF6c4DjTvgexruOiU=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=VD1yQOKwiN5xtJY993HbTn1m9AVRW5qDt+QMmJqsc1Uw/Z2dfo1vln51a1uFXraKdL L1aumjn3V/uplSAwvAr6FD5TN8pPh1MLHSfhLVEfYjJt0hvwmH5bKIRXx5aRXQPE3jgY 7+IS++U8fozVhON1hX8X5DIOWLK6TxMdDReINkmTKzPfx4QJK7XboiiF1MFzB7AmV8Jc 6bD9BRCUEbTbhIHPa0vsB+aZvFIdZTBlNR4YBPhdOO6h1eMXg7vdIEUeCNGfdXrrUj2w iKLWSkOoidRDCKObVsAOWCf8DUlTUC9s25B8wC0707jh6QsMe4xHkvs3SSJXrQKp1Pa1 rSMw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NApIDXYr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6c75e585891si10547506d6.356.2024.09.18.21.55.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:55:43 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NApIDXYr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr952-0002qf-EP; Thu, 19 Sep 2024 00:47:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94w-0002NX-BU for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:42 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94p-0007RM-Eb for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:42 -0400 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-7191df6b5f5so286942b3a.0 for ; Wed, 18 Sep 2024 21:47:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721254; x=1727326054; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aSSHMg0OaePxq3iPPMHVPRVV3RpF6c4DjTvgexruOiU=; b=NApIDXYr6eZdVp9oNskcFyhycy5+mI/OOHAcDyeXhm5sSlVzxrYuIGWC9ZlxDlq28u 2i0tJVgoZ8U/C2KCD7caN1aULmwFQKchCuIj6CMLHX+NTQFB8o+s1f2O+WfP+EkHJSCv 9UKJtrdO5cucS3oxVKTQROUxT70V6XvHjgVUoRIhQ9OeIhAo6RuWS+e1dyaaoC3ndEoi qEhBuYJYEpjtHtB44u6LfwgFOQHiqi0qa/phFoWjLh77nB2Lc9M+zua2Oeyfjfn/KkoP t7YGvd8DhjWISlbK3nUysVMpU4trrALe0/wWt+b6+Y5EjMg0axXVyiYAmhq2MYRIKtFO ZZGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721254; x=1727326054; 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=aSSHMg0OaePxq3iPPMHVPRVV3RpF6c4DjTvgexruOiU=; b=fGKy5iP8OFJ9vsPCGBVFYxmCnm3VdVt7O0fcjWRfLnqLmce47tgkz5pU39E3Dc641p N+Yd/usdfwKbRPFxePca096dXIJsKGqDZ5oOiFc1VUW+vHPm69CE8MQ0kafFrMUAEsn+ sCpWW0lCkNu7FDVvp+LQXYQjZS1sQuI7g/Ap5TOW/tLQvik+g6qf41zBx3uSIu0izaZt dfmy3bweYqBqSLiLHZOx4rzXMaSFhhoZn5ftVJbEkTa1Bfn4k6xy4OwZ7YMl4XEMofjl +yXrcEa9O6gwNO12xHoqar3GQ91Hm5C3i2QWrTWIUJCvxsz9zZb6O8WwJW3DDc/V2yrF McDQ== X-Gm-Message-State: AOJu0YwNilTkfci19t47ouNeZ94f85ob0BuI9HXk+ynQ3FUnC7297Yst CueCInCEIu2gBoLfJYlUDK1ccSTuDMI30OVp/rdObYS7OL00Oh7Zc+NxrQp9yQ4liJ47YQWuwAn j2Np36A== X-Received: by 2002:a05:6a00:1a86:b0:70d:265a:eec6 with SMTP id d2e1a72fcca58-7192609113emr31183331b3a.13.1726721253864; Wed, 18 Sep 2024 21:47:33 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:33 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 24/34] tcg/loongarch64: remove break after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:31 -0700 Message-Id: <20240919044641.386068-25-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson 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 Thu Sep 19 04:46:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829572 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154575wrn; Wed, 18 Sep 2024 21:51:07 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVKsikf9jhhK+ZbUkh/2g2sVvR1GPQ4YX7GA/zrkySkBVqw7aPWw3z4lPp8CFOWluCA6CE8+Q==@linaro.org X-Google-Smtp-Source: AGHT+IHKUsncmLk1IWUg3hjPCYl6bSPqeCI26lymqruKCIcIIw+EQdtrYHr97Sewp4HfdU3XR+cZ X-Received: by 2002:a05:622a:1902:b0:458:5b3a:9a1f with SMTP id d75a77b69052e-4599d29f8dcmr323654021cf.43.1726721467550; Wed, 18 Sep 2024 21:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721467; cv=none; d=google.com; s=arc-20240605; b=RT90Pun2OJm01eBwTQn+BDeEm6YfSVz0ucw1eITVgIbz/6oYAdHtuLE4cGRrrb0BjX s3vngo/VOzPO9WZoi0uuC30HS7rLLP1hOAljk29x2th11zhxnTHxezkWqqRH1s5Lgq3M Q+GXREhgiJq9eauTtZXo89vVN6yd6ajz+KvOq8FDMT7r+owaCMJuNbkG405sU0v7ZBzO EPIM2Jr+ECrRTYqJPKqBgwhq80ERI6uY0MOeqiJA2xelDHVRcmLt9wjyc7yPTJ1F+KBY DYPKbvERQzLwntYlmckb8OYukYO7u2ckQ1uGw8WXNKyEOwVC+M5m2f5EiM+rzp2BkfI1 tdsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eNWqkzSNCBE+28dt8xOll3Id+6eEjKMEGJfuDzGU1co=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=cJB2KuDlahnbV/X6hU3E5XJl/g1kNhXhjbaBh1HjGhnAzoIrDCgwvNZNUrcjVqypOv JjBsExc0Cnd3LVK/lWqmlmiQpnNygr4RCCrEPU+Ca2On7YQgX/qISPPpruDYn7Gs/ZQN /a/0/VHdsnRouFNhgBY76Q0n6xO/JAzY+vuxdOSBxFomuX0KB+KZIHkveHHTCN3iJHXy KpF4WPj7dHyzeORwW4kydjrT4Ehd5+F51ZrzO+DIcYLmQh7r3sUpf8ZlsWJj/skT/ND7 dzzAgFj4kRN4J8Nln/zYwfyFTpPSoL8J758VbpTkeDljVAd2sCCc5AblRO8gZZ/voaJx yd8w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zMPuRZqi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1787bae0si10405191cf.211.2024.09.18.21.51.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:51:07 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zMPuRZqi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr958-0003HS-0T; Thu, 19 Sep 2024 00:47:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94x-0002R3-73 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:43 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94r-0007SG-2M for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:42 -0400 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-71923d87be4so293079b3a.0 for ; Wed, 18 Sep 2024 21:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721256; x=1727326056; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eNWqkzSNCBE+28dt8xOll3Id+6eEjKMEGJfuDzGU1co=; b=zMPuRZqiQFk+Pu5xxrbzFNezEAif+k8yooqEH6VmXaHilyrV0Sgn2zPK/VleKxK9z0 FSXhV3LbDhjkW3BddsayLbbLCl8su5w6wdiUSEUvvuoErlUO3+Bf5g5Ao329e9I55ndc smWXu5u8aO/SiRYL3qb63yLu7oUKa9XzZrRBxakRK5TBSUDz5tbDcXEc68UdfZc7qwTe /A0/mBGIeDfAs/lPGkC0cjR+qpUhCf6kRjy7Nyl3y9Cjg1/dGrZyx98Ees7Tj0u922HV T38ID/lyHy3En+AhJkIbEVbiaw2h0wQYn+oesj+4a6f28ma1g4jU5xM+7zOJjxJyQ6PI 9ZCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721256; x=1727326056; 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=eNWqkzSNCBE+28dt8xOll3Id+6eEjKMEGJfuDzGU1co=; b=YNARJoBbK2PeDgzOidmn9vN6vnuduU81lZpVM1EiE3NABH9sre5Be80LaN8z5fx1pr DtcHtOwVWPJ3576QUgWTsE+z98c9dm7ZCds2/Nzex7a15Pd4n1UskU3/VuZknRWGumhK /Gxb7Tlto8Bn4BXDtYwSJ6YYZUNmO64gsS2+gMP773xDU9tOKXkLQ6oU7PMSX2I82r4z LdHx4PRkrqWMCEUjwOrLr6NmzEtUPnIwdYXI6g+L3cMK54J5/bCqhQIlQnk1VjsISWfn EdbRFmikF711M6YtPULhDKMvhIJycoy9zFAV/1gWXfU2piHG0w+L+gRpy7ToOQbvWJfx fMBA== X-Gm-Message-State: AOJu0YzA1N2x6o6rPncoyuUSJRyF+QLUuZUok/6rMUWXR+zLg3C6bkyj 5T0rmUWMc16Yk48nypAikN1UyptWe5oxBtDGlRvtgdSBXbhzvWMflU8kKIMFuuj4EcI0p7TPAbn PA4jV7g== X-Received: by 2002:a05:6a21:1690:b0:1cf:4348:d5c8 with SMTP id adf61e73a8af0-1d112e8bfaemr31803053637.39.1726721255788; Wed, 18 Sep 2024 21:47:35 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:35 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 25/34] include/qemu: remove return after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:32 -0700 Message-Id: <20240919044641.386068-26-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- include/qemu/pmem.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/qemu/pmem.h b/include/qemu/pmem.h index d2d7ad085cc..e12a67ba2c0 100644 --- a/include/qemu/pmem.h +++ b/include/qemu/pmem.h @@ -22,7 +22,6 @@ pmem_memcpy_persist(void *pmemdest, const void *src, size_t len) /* If 'pmem' option is 'on', we should always have libpmem support, or qemu will report a error and exit, never come here. */ g_assert_not_reached(); - return NULL; } static inline void From patchwork Thu Sep 19 04:46: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: 829596 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155623wrn; Wed, 18 Sep 2024 21:56:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW6b2Jxa4qAFzo5Pt/+B47YpJJiGBLp0ymE4ThQE+JHUD3Rs8Vbhm25xH6Uci50bVa/VYMLCA==@linaro.org X-Google-Smtp-Source: AGHT+IE5ArFtbXUnGdFze71mUiGHMXtFQNufHJhorPQuKo7lVtvtS6ZKfBPPZ1/uHdLskdwuaHVW X-Received: by 2002:ac8:5f96:0:b0:458:3162:2262 with SMTP id d75a77b69052e-45b160036edmr32700811cf.4.1726721760659; Wed, 18 Sep 2024 21:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721760; cv=none; d=google.com; s=arc-20240605; b=lSipXiBFGmWf+cayiECbM+JgNWAI7yG+T/jKIRKvKsyH8/3WXYnvdoZkepW+NVyZc5 qS/68pqv/66gL0fxs0RJP+ttxhgovO9SlD2cHUYBbjzbDrtlOgem1iTShJxX1/3btS9b vZ8YvyQsD7teHIuDm6uOEwjAnK9+QnwRQ5evs+g9igyPLVuaVQLNf0bKTM7M8obZU5Tr aG4GBqEN7B2IWTzJK8dzJTzD5f90BYRqqZawclDOQ7Yb+iYf/7ID+drzpXh8DyD2OhRi fGc/NNQo2xyueuc1DjGvssCxLjCruQNJ/4e9GfOdwqO1nvg46QkPuPoIiSvSauXZsHic g2Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eJDiyfguep+d+77wBjyKgjr0G7lr/7MmmWqca8wnD0Q=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=XDUlvW8HiT4RmBsNNbfALoI8ylYTRCBsgpEbo4E5xSQXLJoEAXGLfUCUPkwruFwSpW y2onbn9SC3h/pZbiBIeQcwZs/M69OLryPPQpUcue7eoFJY/ArTJhT2ejOOyh08lPDeS7 rXjqHk0SX+L19sHlRGtYf3t3DJmOs9C70Oc9W/yCrnM6Ni/LyOWGMLuddfLYyDOEKjnW IPwHUiWVUDumSk5bkdyDku+ZLmYVbHmLHKdjyx/E0PnaVezwC9WlRxgksUWF7XcTYwTQ P0JcnpqjuoAW9YDtyTAvkrjLgE2zKUiD97yrG/i7rUvk2izhfYd+gWh69w9pdnw/L6OC LOrQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ad43w+mJ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1790cf25si10103381cf.479.2024.09.18.21.56.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:56:00 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ad43w+mJ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr95A-0003Zm-G8; Thu, 19 Sep 2024 00:47:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr94z-0002bL-Eo for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:45 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94t-0007TK-AQ for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:45 -0400 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-718d91eef2eso279024b3a.1 for ; Wed, 18 Sep 2024 21:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721258; x=1727326058; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eJDiyfguep+d+77wBjyKgjr0G7lr/7MmmWqca8wnD0Q=; b=ad43w+mJHUtsvWsNK0NpZqcxW3jkaM2odYnmujxWZwCPvZZ79dFP342PBTqQIJORjI XWOJhlCAhjVFkhfOO2pFGiCWz4jSkjFimRX2a4x733QVHdKYqNiDfMVgDOIhQ4NeXdRo jtHo8CR99H2HBtPpObtNsIxF7F5+y+wQrPwzR5TR7Q8A9cxa09s4dARE5cZIoB45k4wU 9Rw5Sx4FuX1TBXlCgLAPwzADJ18ZpJ+yPqqRMi+ZjkjvHfO3GmxFQliqq1wh0KgyRvHf DRNJarW/KmU5Iv+6wRoPupvsN0fj5sHW3aZEXdKU/e6uQlax4IMcjAxgSqBw6rQiJlkU SuQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721258; x=1727326058; 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=eJDiyfguep+d+77wBjyKgjr0G7lr/7MmmWqca8wnD0Q=; b=knqai9QNVRyAOrPj1MQFurkvgqCYB99AS8khzXq54ZqqfRHsj+Hd29U+lKNs/6K85C rlVOTQl1l2hCLtycnMGTf9nHIBSQLEtmetsSt7XaPmwCJALWl8qBTulj7OqsgkSdvODU QBC8BlJdUUsCIwiOVa0Cl+qqnWHiV6TERlQxoDscLh5+Kbh8HNnv9D1oEg2y8gOvfy50 o91/vFnwsDT/oqmDPLDHv4dfwHl3mdQaPxE9qQrGqDe1GCbuhVEDiM6teJ6Ho64UWxJX 8b5V6N1oT7kYjVjjRQM9DOMuqcThdPmQnbmYknQRd3SKbLAALvw96G2b+uzlqP/uNvxk IZ5w== X-Gm-Message-State: AOJu0YxuNVWRti9lUzpJXXe9hH487O2SDCKdTzu77WY+zz80Mh5xvxmQ AhGwR6402ctJV7Xnmn3YwqjMjeqYKOpmxNS5+wLcVxB1u8ke1+LRTtcRVMY3pm4e8SJwGjmf3j/ 5YQ9Nyg== X-Received: by 2002:a05:6a00:4fc9:b0:717:8b4e:a17f with SMTP id d2e1a72fcca58-7198e2862cfmr2976167b3a.4.1726721257757; Wed, 18 Sep 2024 21:47:37 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:37 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 26/34] hw/hyperv: remove return after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:33 -0700 Message-Id: <20240919044641.386068-27-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x433.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- hw/hyperv/hyperv_testdev.c | 1 - hw/hyperv/vmbus.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/hw/hyperv/hyperv_testdev.c b/hw/hyperv/hyperv_testdev.c index ef50e490c4e..a630ca70476 100644 --- a/hw/hyperv/hyperv_testdev.c +++ b/hw/hyperv/hyperv_testdev.c @@ -89,7 +89,6 @@ static TestSintRoute *sint_route_find(HypervTestDev *dev, } } g_assert_not_reached(); - return NULL; } static void sint_route_destroy(HypervTestDev *dev, diff --git a/hw/hyperv/vmbus.c b/hw/hyperv/vmbus.c index 03f415bf226..b36bd3d67d5 100644 --- a/hw/hyperv/vmbus.c +++ b/hw/hyperv/vmbus.c @@ -1890,7 +1890,6 @@ static bool complete_create_gpadl(VMBus *vmbus) } g_assert_not_reached(); - return false; } static void handle_gpadl_teardown(VMBus *vmbus, @@ -1947,7 +1946,6 @@ static bool complete_teardown_gpadl(VMBus *vmbus) } g_assert_not_reached(); - return false; } static void handle_open_channel(VMBus *vmbus, vmbus_message_open_channel *msg, @@ -2021,7 +2019,6 @@ static bool complete_open_channel(VMBus *vmbus) } g_assert_not_reached(); - return false; } static void vdev_reset_on_close(VMBusDevice *vdev) From patchwork Thu Sep 19 04:46:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829573 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154618wrn; Wed, 18 Sep 2024 21:51:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUszLYIPtDHs6nhZ37ZhHTOts9JPaiJ2sjPFCEoNcCVTgwiT9ap2f7juaT+0aJzfvnAXB/IBQ==@linaro.org X-Google-Smtp-Source: AGHT+IEW1K4dz692/iLC8rffIRD4xgOnwdT9XFMhXG8QPr5vE8jp8Q8kPvyI0x2t98iAtiv6FSVj X-Received: by 2002:a05:620a:4086:b0:7a9:c160:c80b with SMTP id af79cd13be357-7a9e5ee70f9mr4403202285a.8.1726721483580; Wed, 18 Sep 2024 21:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721483; cv=none; d=google.com; s=arc-20240605; b=LaLMM5KDR0E3L48ZpQ9xodMfbEtxRDxwKWN/bewTmnA3U9hzrMndF4P0q7kQu5BX57 GE33N5yWfsb1F5n+xA4jzep4GDdLAk/1dhhUuvtGjkXOnCVYrlFkrGq5gsoVSUWvQVEF sg9jaamt4ypPJY/rzfvV4fnq0EmjSdbf6MthPalVxkKa5J9RXFg5aK7RmQ5oE9uQC9ea 0tm6X9QDPgaG489547RQg9hhOTHFsY6c5l8HBQTZKtP2j5JpV9gMHExX6XHjBEURhZ8d ATIGyoDcxpYSxN1HuGKmPwyksze+SpsFKN5d2LjLTQrZKqHG34Kj3bEiHyYGYsj6rnx6 PiVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aVLlQ1azCZTPpBP5TtwQ0P5RnlTFYhwK6Tm+S/9eUGE=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=YgFAFOQVm6GRtx4e499NgTZLG+Y1bfo7+UE6ZA3Do/0iLWTd1LbQ7zTi7a+yLZwfMz VxBaF0Z9kA9FwRLCUlcy9p+AeQAehen7yQO8A+/KcaYVvkU3gxqXbdLvjZtiRwGdE9HV wUYKn2xDuG/+KqRaZxApxoG5PRKyPJcBjz2MnU+sev2yjmgZX5grFscvt2UInkQ3pd5L lgMwldovBh8+9Eqw434amh+3HHU5zC8gNSRm59kawgz3tVV479+ujBmOkKIdd8DTnCWH rS2L+y4AAEAhq3g4/3Oc6XjsqeF8mFbmFHJ4PkJpAnAa+5SqV3m9i5wwP3PvjkgQLplN +IEA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sZmZYMIE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7acb08e273fsi101964385a.394.2024.09.18.21.51.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:51:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sZmZYMIE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr958-0003JY-3i; Thu, 19 Sep 2024 00:47:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr951-0002kf-Dp for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:47 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94v-0007UT-A1 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:47 -0400 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-7191df6b5f5so286980b3a.0 for ; Wed, 18 Sep 2024 21:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721260; x=1727326060; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aVLlQ1azCZTPpBP5TtwQ0P5RnlTFYhwK6Tm+S/9eUGE=; b=sZmZYMIEwzYkertdAhYCDFEI09bhwEWFdDjoyMnuwtc5Az44Yg7DIb4zk3jCTmPQ4G 93aTV14n+0dsWonbG5Ai/ygmW6Nt5cLjyoxH2Dw9LQnnZVtN32clgWHxlY9htoFGThki eOOmfAKE5xswVgHGztQTAf8DiyDZsjTqXiCHUBpKC4UZSaQ46S8QZxtMDx3T6uS+704K ZKCZ6nPhqyqrEmNgAq3lrQAYjRzMYFcI9Ko35NUsmqcu5opXXDDyCjuPXehahmxMk/QH yeW608UmoTuOGnauIFsSxy7z7/O1+vRd3QVSzgyioKFX/C8kxQFUO7ivN/OX+HwUj2DN 8k4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721260; x=1727326060; 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=aVLlQ1azCZTPpBP5TtwQ0P5RnlTFYhwK6Tm+S/9eUGE=; b=qh9uTjphlKrmTsrQxgaVjsEhkZ+ozDkgBxJKz/onksmseEc1vUtD20WhHDm3bvaOhC n5Me5v/H93a+NaHIEkqRf0vTWAZRh+BOZnQ+yA001/KFrwK5ufFkSCGPpvYTmP9wz+o2 0FGmX/39U9Ca0yFJ9W/zoWw5FF5jg4VXfrY8poYQRfmGH6WLB6aGzNUnlIk+tAGQoNjq oCxdDL7JrHm32MJ4UiP20al+nrby3IkEClthrBM7FX4BlFqlS4Pk3W1e4PLOkDLCM2cM U2wdtuJVAUnOMYmhzJNn5ER3bJArSFRCu8JU+HclyRhVsx22FFoqdZ93QLQkvm2J11s0 0HnQ== X-Gm-Message-State: AOJu0YxyCMnvt0ZbtHFiMkU3r48kNytX4TzNAw9rYBdi90v3FSquSdMZ vFoLX38a8QHIWXKXA+o7rxFaqHPEwIAlMIHz0IsofBBrTO+j0DK1sjY7mgrgpZHJvkHRG0U6Fyv i0xYzFQ== X-Received: by 2002:a05:6a20:cd0e:b0:1cf:476f:2d10 with SMTP id adf61e73a8af0-1cf76239c98mr35848879637.49.1726721259880; Wed, 18 Sep 2024 21:47:39 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:39 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 27/34] hw/net: remove return after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:34 -0700 Message-Id: <20240919044641.386068-28-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- hw/net/e1000e_core.c | 2 -- hw/net/igb_core.c | 2 -- hw/net/vmxnet3.c | 1 - 3 files changed, 5 deletions(-) diff --git a/hw/net/e1000e_core.c b/hw/net/e1000e_core.c index 248381f9766..2e4c50ddbaf 100644 --- a/hw/net/e1000e_core.c +++ b/hw/net/e1000e_core.c @@ -562,7 +562,6 @@ e1000e_rss_calc_hash(E1000ECore *core, break; default: g_assert_not_reached(); - return 0; } return net_rx_pkt_calc_rss_hash(pkt, type, (uint8_t *) &core->mac[RSSRK]); @@ -841,7 +840,6 @@ e1000e_ring_free_descr_num(E1000ECore *core, const E1000ERingInfo *r) } g_assert_not_reached(); - return 0; } static inline bool diff --git a/hw/net/igb_core.c b/hw/net/igb_core.c index 6be61407715..5dffa12c64b 100644 --- a/hw/net/igb_core.c +++ b/hw/net/igb_core.c @@ -398,7 +398,6 @@ igb_rss_calc_hash(IGBCore *core, struct NetRxPkt *pkt, E1000E_RSSInfo *info) break; default: g_assert_not_reached(); - return 0; } return net_rx_pkt_calc_rss_hash(pkt, type, (uint8_t *) &core->mac[RSSRK]); @@ -747,7 +746,6 @@ igb_ring_free_descr_num(IGBCore *core, const E1000ERingInfo *r) } g_assert_not_reached(); - return 0; } static inline bool diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c index bb8583c7aba..8aa8c462283 100644 --- a/hw/net/vmxnet3.c +++ b/hw/net/vmxnet3.c @@ -456,7 +456,6 @@ vmxnet3_setup_tx_offloads(VMXNET3State *s) default: g_assert_not_reached(); - return false; } return true; From patchwork Thu Sep 19 04:46: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: 829565 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154092wrn; Wed, 18 Sep 2024 21:48:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXhyHc2/OU7+8rybHZAeKDpnZItx/6oOfbsnBC1rfSPkRlWgkhSD0QstLOGV3XJxMbIhW4qOA==@linaro.org X-Google-Smtp-Source: AGHT+IGKp2HL4uM4uci+gU+kS8OpWGD4IzngjxcwW+yQchGV0I4yqoHL8HaX+1qmnjhJgp4hcqvX X-Received: by 2002:a05:622a:202:b0:458:3b22:9c2e with SMTP id d75a77b69052e-45860423338mr432545041cf.53.1726721324358; Wed, 18 Sep 2024 21:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721324; cv=none; d=google.com; s=arc-20240605; b=N9VMVKgV1tkuYtoZj3l7TE+dzoKAkB6PRFurPVGimllq/T9T1I2rQMHnajS3xKtTwV ZGcMV8IvXZfjbk3K+QPbT5HoH5fmSAsj7zqWDRO0HVe/wHuporu+PtGqV06vKhyl1Dyc 9zROTCWreJk6CQ+ILdRnoMi6t37VGkVdIeoXcKteit35Gjb+k2+bNDGe6TK3IObXQsem sBFJgbveTqmnAkBR99kVxQzlkq+aMp+KD9ZgOZmFVulBePUuFahytTjmkiwJYXHhD/sX aVg+MO57V9F31yfmeVydfPGeRNafJB0xdM4ZRtaIDFJKC/5SgwYSYwvIJ2HC1Fiw82rj CI0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Mp3yl1TjwHpJ2DET+AsHEAo67XBOppY+FOew/7+eLo4=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=cnNybY/6/D3I4rSpR9rAhfb5iPXGCR6JhStPEwhsKUnEKIOGBeHwJwHXfX+qlqn0aQ baPrFTtYVH8rkD2Q4i3bbGLy8bx/O/dGqW8qw2sQIBUhXEky3GDBsGVWJu3ChRK+PUrQ lI/CDQk0ceLWnu0fIgCHSY2QvzV9dk8Z6ZfUBxxvhxTACQ3X6fsoRcl+LnWuWp3lHQq1 1mCPELnIGOCsS/74/6kcmCopUO89bdrosTc//y9d5zu26zWWPpza1Zamw5WwBNgPJUDv yIFzlyShip22/EseFK0+QGZ6XOOHjaZXEK0xiU90nBBiO8F8SL/wiwoXMLdytgSDIv39 c5fg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tE1BxwPy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1792f786si10355901cf.604.2024.09.18.21.48.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:48:44 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tE1BxwPy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr959-0003Rd-Nc; Thu, 19 Sep 2024 00:47:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr952-0002qL-Ac for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:48 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94x-0007Vk-C7 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:47 -0400 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-7178df70f28so309275b3a.2 for ; Wed, 18 Sep 2024 21:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721262; x=1727326062; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Mp3yl1TjwHpJ2DET+AsHEAo67XBOppY+FOew/7+eLo4=; b=tE1BxwPyBoTGTKbdpek6UmorZjdhfwByDWB0563pMvAre+A9Zwz6TnzEOmAs4SWIaL ioGNgxhjSkCFJ/WaTewa30vPYQhuGtHt8vNDOBf8644ztQOmHi+hdOcd710m0nwUO7QT fSGaGa6wk3wh9uqGyTf6YEqXJkTvnQcpXLclawdeGWkyqxl/RE7HdoFfj/CML/j9oN0+ z/YVwGK5SnML2MsufugMdFUreElHvOgIKOiG/kqZFr7RPyZ9WbCiqCLYup3b4vKPpLcQ 7v3BylD00llHphvXqCy5QBMlpJJDl4tvbq/hoWDSR358+gK+Q9wc9uUUiatbhex31vYD E6KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721262; x=1727326062; 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=Mp3yl1TjwHpJ2DET+AsHEAo67XBOppY+FOew/7+eLo4=; b=FBE0ZKBRj5IEekE1m2gfJDr3WHDYwfY4UM6T7mO3zmRAuyinwsmz6LV0+mKH552pSj BY3vRyjzwCPwPGWUHPSCdhdcG6PghI7zVL5wdd5brAeaFw/4Vsf95U3mSQQgV9uezjUa rS1XjyBScfzUGfpPCEhx/cW89O1eSxiipZjN1Kg3yV5Il6V+xnVmiYD3CO8jrotp1V+c SUZN13HGyzskLuxwIHKxyNj50iYAKTrrs5QnCJXjN2jJj7J+NEn0+jGio2Nc5I5n49RT dcqrNmY2Ua6DNLAHOQWd39K8xPThNPg5WnRnfkwPWRstKzH0POisuSZ4ds6xq10TW2AO Nc8Q== X-Gm-Message-State: AOJu0YxBpLbW2mFt7geHGQ2QwGKckvbRsrpAwHW0EGJP7+ZY63aQ2/3X kOPya6Qzdy32LSKQuKdc/2hOwhNYtU9shG9ngr60t4q++a/QxGXG7ZQ0XN5+x3Wow2hp5QmS8lm kcjDWMg== X-Received: by 2002:a05:6a00:2daa:b0:717:9154:b5b6 with SMTP id d2e1a72fcca58-7192606ce9emr38950232b3a.7.1726721261958; Wed, 18 Sep 2024 21:47:41 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:41 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 28/34] hw/pci: remove return after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:35 -0700 Message-Id: <20240919044641.386068-29-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- hw/pci/pci-stub.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/pci/pci-stub.c b/hw/pci/pci-stub.c index c6950e21bd4..3397d0c82ea 100644 --- a/hw/pci/pci-stub.c +++ b/hw/pci/pci-stub.c @@ -47,13 +47,11 @@ void hmp_pcie_aer_inject_error(Monitor *mon, const QDict *qdict) MSIMessage pci_get_msi_message(PCIDevice *dev, int vector) { g_assert_not_reached(); - return (MSIMessage){}; } uint16_t pci_requester_id(PCIDevice *dev) { g_assert_not_reached(); - return 0; } /* Required by ahci.c */ From patchwork Thu Sep 19 04:46:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829589 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155261wrn; Wed, 18 Sep 2024 21:54:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWLIBBme6GGfl8D8FmfTGLwCNY+1t1zUv6IDYdM5Gkx+rn8OKsvPVYI/+6aAHxwpZbTBwg3uw==@linaro.org X-Google-Smtp-Source: AGHT+IHTu4es+hlOJxQmC7DJhCK/7RnggVykEXqT/xVVfhxI6/8PMfFcc1xrqXpuHt+ykPDroptx X-Received: by 2002:a05:622a:4b10:b0:458:34e9:a394 with SMTP id d75a77b69052e-45b16047fd3mr33268621cf.15.1726721672788; Wed, 18 Sep 2024 21:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721672; cv=none; d=google.com; s=arc-20240605; b=Ge69TBkIuDxbct0+Gd24aEA4/Eho0ZCKDl31tgTki/hrGpAeAkrLnwLkbLnirD8vln JjMn4wZt5ulaFrLqRx6j+qW0++C6Mn41cNSqfs52dH5fXxDqeiGtAPeK0u0oKGs1isw8 2a0cm+vkWedwRrbnVpSdIq+IL8W/h9IAzQuNoMJttsZrL9amb6/8AfH87/p5CmV9MYt0 nsk9qepg4ZMYRMgez1d3oSwA5AMoLlPtw1g7nD5Fo1DbGP+QhJ9D2PMVizZuYugQtK26 mUub/JpAkHYt+wji7b8hPlHftOMOsw71UylT62/tb5HmaQzYb/tQbAOV41gOZ3uCyMeP 3Wrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZHfEx5g5BzL1PX1RgAlJ8l3kVoVW/oh/s4YLt1Je16g=; fh=CMQ+W8AiU86eJalGClE0Qo0YN3i0+YCkT5pBozaB64s=; b=FwRGbApStmewfT4IfsVayoWgG97iPs4BG66HLh7iHRtCoxbUlDT9Bxv6XrBETT/7ZJ 9z0C33Eeofdm8VkSbgQteDmYAtM4iM9nhznpVMPwN99Aq3Ovz0vWX9lp9tzypJzEM4MM /flJC/1duUgV+LW2BKJT+1zVIDHCBdQB+zYVn5rf/fC/2ivu9u+FcVvba2NgfTRbPwbC s4wXp+AQZYSMipWIyJLjyjr0vFDZxUVsNJleBFPGGn5vM6RjZGJMAnNSZvd+5c9R5jha SwuiP8tHb4kU8Wd4PNw/R9B1hkEid3rcYorGfBolgrh4tBKT2daK+V7kCcxAD7530q5W C+fg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HHb826Sw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1795b08bsi10314101cf.718.2024.09.18.21.54.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:54:32 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HHb826Sw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr95R-0005Xw-Ug; Thu, 19 Sep 2024 00:48:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr95F-00047c-Do for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:48:02 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr94z-0007X8-FK for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:48:01 -0400 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-71798661a52so342043b3a.0 for ; Wed, 18 Sep 2024 21:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721264; x=1727326064; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZHfEx5g5BzL1PX1RgAlJ8l3kVoVW/oh/s4YLt1Je16g=; b=HHb826SwhZH+oEYl5D6yU4uRjwLwPoes64wjS5uAApZ+b31zTbnJ78V1hG9Xhn00BU f/i3EpPFZ1OA/7D88t6E6YZBbzIbWBax0nKdu9aX8zTxEnmGEdlg5224Yotft2hcegh+ +4vuW4H6Zj0oy/31/jAF/v3KkLrtnH5pUjtHMD+gjSqoTv6CK6ozQMZv3IduvttVHPAD n9nMOI9kFDigrsEK672o6u3UYTbzEf3iLbEZEvflTU1emg+BRrvRWjTH3FEFQYHsISOP e5IOUyhPR/2gJRuu/4m8vuvhOSyWI5d2peIxR2AvWwwz1bcyWKzVY1kAq0HjmAPvk4On udHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721264; x=1727326064; 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=ZHfEx5g5BzL1PX1RgAlJ8l3kVoVW/oh/s4YLt1Je16g=; b=P9c84iz9fQwuog3WlKbUr4nraaja/pRn8ArlQERA8XhYtQ11w5A8kztXSaEJaWQJr1 ogNIKmgK2QSV6ag/oFkRGieLAMfpDhuy0hDHi1/aehZKaEK+K/dzfbJXH97LhoDTxMAf bwahCj2WrYcNZlM6gdCrybw+110TpX2lKPd5QuYAN2EJra8YYnoqRuNeENUnm2xZXiqK qJ47mmLBMbhq/9g4FmoJbfG/XnpREOIpBzUkexUwg0arL+/K/h3sl3IUbyPsrA/7NL8Z vG3d940WqChsr/2LuDULuCCMmUAj9QwJphpUbICeM1/0V0iRCzFLYzL5g9+EjJeqV4e0 igRA== X-Gm-Message-State: AOJu0Yzx764crMkLn6t5le2Cs2+gO3gQNDtddlbeMIEqufMKDn0LwleG A2d8hNfoSBM1R0ZUg9azwT4Akw2rIZKNHP784BFdjECqPmsHWGlYYDrKR6EZVG81agKv5ECzul9 kH7FJfw== X-Received: by 2002:a05:6a00:1746:b0:70d:2a1b:422c with SMTP id d2e1a72fcca58-7198e2a8f1dmr3107578b3a.7.1726721264030; Wed, 18 Sep 2024 21:47:44 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:43 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier , =?utf-8?q?C=C3=A9dric_Le_Go?= =?utf-8?q?ater?= Subject: [PATCH v3 29/34] hw/ppc: remove return after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:36 -0700 Message-Id: <20240919044641.386068-30-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Cédric Le Goater Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- hw/ppc/ppc.c | 1 - hw/ppc/spapr_events.c | 1 - 2 files changed, 2 deletions(-) diff --git a/hw/ppc/ppc.c b/hw/ppc/ppc.c index e6fa5580c01..fde46194122 100644 --- a/hw/ppc/ppc.c +++ b/hw/ppc/ppc.c @@ -267,7 +267,6 @@ static void power9_set_irq(void *opaque, int pin, int level) break; default: g_assert_not_reached(); - return; } } diff --git a/hw/ppc/spapr_events.c b/hw/ppc/spapr_events.c index 38ac1cb7866..4dbf8e2e2ef 100644 --- a/hw/ppc/spapr_events.c +++ b/hw/ppc/spapr_events.c @@ -646,7 +646,6 @@ static void spapr_hotplug_req_event(uint8_t hp_id, uint8_t hp_action, * that don't support them */ g_assert_not_reached(); - return; } if (hp_id == RTAS_LOG_V6_HP_ID_DRC_COUNT) { From patchwork Thu Sep 19 04:46:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 829568 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp154244wrn; Wed, 18 Sep 2024 21:49:28 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWx9eA+IWXlR51Aw3L4PaSm7TgqdXKUNjrW69DUDxoQ3ETdNrx49hxJ9Fl0i8LQHfU82qoc/A==@linaro.org X-Google-Smtp-Source: AGHT+IEg5thE14dgg2I1GmgZm1JxRbENTFscyyaV3rbInvSrb3UvpZyFGM5LM2dbLQuwQotIQCZD X-Received: by 2002:a05:6214:4604:b0:6c3:5ebb:9524 with SMTP id 6a1803df08f44-6c57370123emr358814416d6.48.1726721368398; Wed, 18 Sep 2024 21:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721368; cv=none; d=google.com; s=arc-20240605; b=lgqmzHRZWIdCNw8lBuEsrT4iJ5Zcp4pvqik+b7i/53qO3pWCD75EgsHlyNF3w00+xL MZJr+yanNGti1f3V5mzIe9mrLjga9xxpWnHGO+ic97VVfbalb3yitWGOdqczd7GAQEwk N6m9UrsTTvcKT8EIGW1QJEYsd1TnduhIvV71Uk7uoOoTTx2Rx1KGt2a0JdDweQYGDbmn K7J0TBDyFZB9katDpPnhSkguUXORVTTMU+kBQvXLxUQDvuiwlhoS1L6MRcsoJtwPR8A8 1B+dTkKApQMebSw28DjIB0TQmnCvqtPwnqKgTZcuuWFP0NysM3rUJd6AMO8k7oNy8Tj5 3pCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ozWlgV20eXCZ0c9b/13N/LAwE/BLpMMoDcMJfurfVNw=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=F0QO+hke347t6oOgb7KT7efSrHAEdCyb0JSliyqc6StUK+koBTHPBLwWJrPSApks1z kRRiIlqfA6/hgEA1e1EbnZ3i26eY/g7ATeTUCzWJHF6fSZaF1iaxTsjpSA2KjqjZv4Ey KivIzgtRAM2jjAmGzZcylkfkfUEp42dhYlNbE3uJy2sABJkaCI/nwgPsblQsO4W07ru2 t0XhBbOqRDzP+1pwzPUocn17C/cTcKCChXHrQ47axKb+qBseOqjvnp9rbkLrKk3KJfRx VaNPMcuE0WfRw9SLPBAq3nSruBO/4G3zUe8xW3zK9gwW30iVDvtZdMWLdoTiqqm/b9NM K2mA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pTyfUHFO; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6c75e561e0fsi10173436d6.277.2024.09.18.21.49.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:49:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pTyfUHFO; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr95L-0004dZ-1n; Thu, 19 Sep 2024 00:48:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr958-0003Nb-Ow for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:54 -0400 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr951-0007Y6-VQ for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:54 -0400 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-7db1f13b14aso302952a12.1 for ; Wed, 18 Sep 2024 21:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721266; x=1727326066; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ozWlgV20eXCZ0c9b/13N/LAwE/BLpMMoDcMJfurfVNw=; b=pTyfUHFOarO4HD5UZoMTnHS+DyzveHU8Bpv/maYRKbx3sjczZoDu80G4grXw+uKgSB ZBaEKsMrt93cu3uxDk3dKdxRLwmi4bE/xnaTH4RjN52e3ruHat+TBeTRgSyupFFxgLEk 4WkwZMBg30B6KXojHFOqc9yMyfEKAsjMh5JE39J6HPKqbftjg3XkPbZc/oLVnw6OjVZU aGCXP0ueF8SgEy59f8JlyCwzqECIfluZIsZZ57deMKdS1l0osUQzQ5HaDTv+Y0PXI58U cEuhjk+3gxD/9l/2kbLCIb/TXcnvBvYgXPeEDo0t4Vc00uIkFeOM13clf/+9fuQYdN4N 3meA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721266; x=1727326066; 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=ozWlgV20eXCZ0c9b/13N/LAwE/BLpMMoDcMJfurfVNw=; b=DxTYlP/6+YtKNTvLzf74+ebIqoLjbOz2FlYcv0hgvjKnHRREAiMCrXIYd4817ntajw RuagvIbKPeDI8LzLF72CcvZLhWVZsxPkOegN/dWR0oLN+JTn06+jkNxfeHE5w73gWfVt dVE6AtQMxFqQI+MMwcRyuWc/RVUjZKnJPpywSxwwJVDnAR+5ArAXC89vlv6mmuUPltbO tDP9UbvBgdGKiy4MCMEpSq54MOs4bLw9ymAIwDEiq/ABiSiV1M8NykK3oSXrdnYz7K20 plTOUws+4GKYDrc/LMJgmEhJe/CqwyO2ofDnTYkx0b7SUmXE3n1USTXyH8NDZOfPLLJ/ U0yQ== X-Gm-Message-State: AOJu0YyUd/KK0zZg9XTwqr06Uv2luR0UY1ZQksJQpvnHGfff37hu8c84 dyUHzKfxVqZMuQYMTk0kjTUBHdO7BP6idPkknxHccKl6ZhK6+Gee/p0rCygKbA8aODAOs1S14B6 xSMbcoA== X-Received: by 2002:a05:6a21:38d:b0:1d2:e945:77c4 with SMTP id adf61e73a8af0-1d2e94578b5mr9976706637.2.1726721266025; Wed, 18 Sep 2024 21:47:46 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:45 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 30/34] migration: remove return after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:37 -0700 Message-Id: <20240919044641.386068-31-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x531.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Signed-off-by: Pierrick Bouvier Reviewed-by: Thomas Huth --- migration/dirtyrate.c | 1 - migration/postcopy-ram.c | 7 ------- migration/ram.c | 2 -- 3 files changed, 10 deletions(-) diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c index c03b13b624f..5478d58de36 100644 --- a/migration/dirtyrate.c +++ b/migration/dirtyrate.c @@ -229,7 +229,6 @@ static int time_unit_to_power(TimeUnit time_unit) return -3; default: g_assert_not_reached(); - return 0; } } diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c index f431bbc0d4f..0fe9d83d44a 100644 --- a/migration/postcopy-ram.c +++ b/migration/postcopy-ram.c @@ -1412,40 +1412,34 @@ int postcopy_ram_incoming_init(MigrationIncomingState *mis) int postcopy_ram_incoming_cleanup(MigrationIncomingState *mis) { g_assert_not_reached(); - return -1; } int postcopy_ram_prepare_discard(MigrationIncomingState *mis) { g_assert_not_reached(); - return -1; } int postcopy_request_shared_page(struct PostCopyFD *pcfd, RAMBlock *rb, uint64_t client_addr, uint64_t rb_offset) { g_assert_not_reached(); - return -1; } int postcopy_ram_incoming_setup(MigrationIncomingState *mis) { g_assert_not_reached(); - return -1; } int postcopy_place_page(MigrationIncomingState *mis, void *host, void *from, RAMBlock *rb) { g_assert_not_reached(); - return -1; } int postcopy_place_page_zero(MigrationIncomingState *mis, void *host, RAMBlock *rb) { g_assert_not_reached(); - return -1; } int postcopy_wake_shared(struct PostCopyFD *pcfd, @@ -1453,7 +1447,6 @@ int postcopy_wake_shared(struct PostCopyFD *pcfd, RAMBlock *rb) { g_assert_not_reached(); - return -1; } #endif diff --git a/migration/ram.c b/migration/ram.c index 0aa5d347439..81eda2736a9 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1766,13 +1766,11 @@ bool ram_write_tracking_available(void) bool ram_write_tracking_compatible(void) { g_assert_not_reached(); - return false; } int ram_write_tracking_start(void) { g_assert_not_reached(); - return -1; } void ram_write_tracking_stop(void) From patchwork Thu Sep 19 04:46: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: 829582 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155014wrn; Wed, 18 Sep 2024 21:53:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW63wVXCp08BZ2EHRhrOxj8DY4YZc8perRaqgTZB5FVnyfwGnS05CDVXCcEPWyuUwRGruF/lQ==@linaro.org X-Google-Smtp-Source: AGHT+IHcPoThrlfQKVAKhfNioN83CvNx9uGheZdkFo154Z7llRoanUq35yVyxe99V5oINX5OZ22r X-Received: by 2002:a05:620a:4153:b0:7a2:16d:8428 with SMTP id af79cd13be357-7a9e5f1cf15mr4600731685a.27.1726721595737; Wed, 18 Sep 2024 21:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721595; cv=none; d=google.com; s=arc-20240605; b=TQMIgsL5z5bwzz/aL2BJL59cf1nzpAQ3+Bo6LILpbbqQtHKFncGa5mvbMiERc3K6m0 0VgHWnV0v2fR9WegKp4ILwS/Z+bHhHrhRV+wklsnKNJ6NvkfM0NXayhh8EWXHlL5UnM8 VWq/qREcrhpEl4CEiTLXNZYsmfGfM/JC2zMVNj6Z4fszQ7DKK2K8ltul9DlcolT0edZt BOtBVoap0/XSZ8jbCMmMfBETjIzfO2gevPoUim8FpOn3zpIqb6Rbvwn9SPhRbkBQPzSA bIcza4qU/hQ/S5lLJqGs3N2f/0iplwlXUGF1adJJRat8Wj8Mc8gQlrJBCPGDy+DOzGHS lCew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lJWuRI2a+xcGlqE9ilLL21KPqsM5FE8vZBWYVBf4fqk=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=ZXeOmecP6p/mJ34y2YK3wt0s/y4N0TeGnLQnjlSg3pfkgzo36qK9ZumVHbuh5wHtDm 2ojD3+L9w57t6WFTmPbTgiRAqcATHGct/qEXfSwSnCLSSU32jqx+rAEl0hs77mvKs17h p6w7eO3QxT8zhFPESbeeDwPqoDRHwnOPo6GD9S8U2QEGk2nPvAbcqNc1cHfM22d7SDnR SCwZZl42RkEvcuK0s7M0lRj++er8jGCaZYwdxqQhw/vLIlRd+pQQVoOsRNOmqIjwMFLL 7zYDx+qXeF/KmfDuKUPm0iGr0Ai0oeXEAxrbw5sTVytmwlc/+T/P3BZeeCk+N/YkhrrM gpBw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FqnqmtXH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7acb090fc88si105131985a.736.2024.09.18.21.53.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:53:15 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FqnqmtXH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr95O-0004yx-Hm; Thu, 19 Sep 2024 00:48:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr95B-0003eP-52 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:57 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr953-0007Za-9t for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:47:56 -0400 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-7178df70f28so309316b3a.2 for ; Wed, 18 Sep 2024 21:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721268; x=1727326068; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lJWuRI2a+xcGlqE9ilLL21KPqsM5FE8vZBWYVBf4fqk=; b=FqnqmtXH52xcJ9aenpC7ZsFzTXIS89qdfvjkFQkaqp6Yn0CA2I/PNBbGN2CaznZd23 N3eArcNFEScW1SvTSCpVM9gbFoJp5cZetFWPI8qnftlm37nbYXpCbBWBV+kDZ9GEs7aB yJAqIbxnPUnpktFg9AHOuaAL577Ngud7tkg/uvJuLANMAaZGMAXtJFxyu/WynmlpE+qA ZKWt4/jjwbNF113SLYGh3WSMxCywYsXvFVhwovHVFXZlkInm2pF+FiEfhZPQ8CSdU3Uw iuo81LCGMW4vEbJQoTsVWobmffCeowvsYgl6BPDRtmd32HyZVOCYY+j5lT43VgnUYB+X 4o3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721268; x=1727326068; 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=lJWuRI2a+xcGlqE9ilLL21KPqsM5FE8vZBWYVBf4fqk=; b=RQZtxrG6MxAX7BDNZp3gm8fThuULk4hEGdrdoVx2zi23OTGMPWj8vjcKlyW0VLYO9b CCnzkOBJUWiE88/AaHHjUHLqbeMH7+53hQupP0aoQ9dO0+It/8FGUZstr1YO3JL+xus+ 8i9kblTD4Maumb1eB0iqR9mQfK9l1I+xbI0hBF0cgXihBnfRfwK3MtWDXBv/OPFu3Nyu hvLlE8384WmAmMbh5glgosMAIaRFO0JNwxz8+U5NSz0NcrUAaNEtahEVrBLT2pC0es/G KDcorUrZ6Tktj2Q/J1CZ7G8rYok7ZQ3Ymc2yZIGIJNhjcI1Ds4CObx5msKQNmgitOUrG tzTw== X-Gm-Message-State: AOJu0Yx3M6Q9pUs6EbmGKDt3xWs5eIDumymFZ/K7UWi5JdJJamGnOVjB bhboiMpn7wrmv7eVqT7eON8VbjdxwEv3EqtsbDTKLzgB6OkN+EPidKxfDwj8nAdbvk2dNieWhCH VHEfONg== X-Received: by 2002:a05:6a21:3a81:b0:1d2:e8a5:689b with SMTP id adf61e73a8af0-1d2e8a569famr9583177637.14.1726721267939; Wed, 18 Sep 2024 21:47:47 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:47 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 31/34] qobject: remove return after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:38 -0700 Message-Id: <20240919044641.386068-32-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- qobject/qnum.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qobject/qnum.c b/qobject/qnum.c index 2138b563a9f..dd8ea495655 100644 --- a/qobject/qnum.c +++ b/qobject/qnum.c @@ -86,7 +86,6 @@ bool qnum_get_try_int(const QNum *qn, int64_t *val) } g_assert_not_reached(); - return false; } /** @@ -124,7 +123,6 @@ bool qnum_get_try_uint(const QNum *qn, uint64_t *val) } g_assert_not_reached(); - return false; } /** @@ -157,7 +155,6 @@ double qnum_get_double(QNum *qn) } g_assert_not_reached(); - return 0.0; } char *qnum_to_string(QNum *qn) @@ -173,7 +170,6 @@ char *qnum_to_string(QNum *qn) } g_assert_not_reached(); - return NULL; } /** From patchwork Thu Sep 19 04:46: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: 829584 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155057wrn; Wed, 18 Sep 2024 21:53:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU5gAgFyYu5Lflv0IvrLpqKoCmvmlX9VGLs7yh6KMKdBRH2+FHDWtsxAElBC7m6qtOc8WNw/g==@linaro.org X-Google-Smtp-Source: AGHT+IEKNkYEkpu12123Vqgor4C1SNCtkaDv+8JJ8D1luuN0DUYM2J+wqmmvsuFqbDE0cPIyHwT7 X-Received: by 2002:a05:620a:298f:b0:7a2:1db:e286 with SMTP id af79cd13be357-7a9e5f7cc82mr4254447185a.52.1726721614084; Wed, 18 Sep 2024 21:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721614; cv=none; d=google.com; s=arc-20240605; b=UeXhLNbZ1x+Srhq57Li6451rWobCrm5lKPz4BMbct+RktAHM6jXsVYXHsBW++5cwmM KpSsnF/zj2DW+HGWkClaI/nueOvYfKx0ULlhOQ2hw/nU2DiyFsreD+liJXDgijNbhZRS PVwk37aB0A7oHA8tPKVihQAVVG1vVADzx1jZA01UFt03WR/rEWqtNVoSwXAg6kE2u8Ok 8O0GKKIt8nyKpJNzCJooqYwrnXaHF5Np8FXJ1/txrbxQc6jNb9nyWVK08tsWBycgR9c/ TXNo1igKf0WX10VVKXrCMRcHIZa0har/iszWaGVwrEcv80gmevKWYL9/eVUOCwHaJTFr h1tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wsHCjwrGb9kFALwWqgq3B+HDSbUQOfqxzvxaIUK0xNk=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=gtANFG7GcG398IBEBgu8C1/t8Q4GdL7RIVzAR7pO39ZN3n2tRY7CQYJss58XY7I1wA GDRZE0oSTOXtzplSnt9d5kQNEocxIJj5V5WPxHgLaf6GBfg+zQ+xTBr5OSHWrznfK3TI rVnYXTW0eQhwjAWYFUEgYFSm9qHWNkHDT5eEU2xPDkFWNXyF6Vj+iHMvReNS5i+23RxU sR52dmCFrpBwNQ/OP4fxPwCvCHGu8el30D7eMDyc6qUegzLEA1fjIW7oMODZRL5O4NLc 5fFuZPlMyiW57OwneQodQkh6Dxnm3KBPr9BMttFW6AaNeAcRZTXAKT5ag8swKvvkvgYc G8sw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="pHmfWeW/"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1790cdafsi10046091cf.473.2024.09.18.21.53.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="pHmfWeW/"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr95R-0005Xe-Sr; Thu, 19 Sep 2024 00:48:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr95E-00044Z-OD for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:48:00 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr955-0007b5-57 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:48:00 -0400 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-718d704704aso334316b3a.3 for ; Wed, 18 Sep 2024 21:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721270; x=1727326070; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wsHCjwrGb9kFALwWqgq3B+HDSbUQOfqxzvxaIUK0xNk=; b=pHmfWeW/FbkQ9KDlQ+KCFzWpK/+WnU95OyQIEhFTsgTCdwaiXmHxdcKAmLnRpIPT9Z B3QiE74Obi4+5cIS/dqxPgtz27d4X/aYYQFdkuUG+IhhHATNx1+LiguIZVdHtL80Pev+ sTGVV1fB4k0D9YHoq/UjHcXkDfM09EemkAIG4gnNYR70eBeYW9rwhPigOYdBiGoeVr6E Llw7lSOowx0zD0VNH9aH8jJ0tdzB7WDo/O/zDpMsZI/nPfpVTEhT8/Wxd5m7xZGn0EzD cORAEwr+XMFdxusiuRomHoc3I3vwhnKqrASGnkpH6Xw0xb5Pmp0jZIQAckM3L4l10wQZ SDyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721270; x=1727326070; 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=wsHCjwrGb9kFALwWqgq3B+HDSbUQOfqxzvxaIUK0xNk=; b=mntc/5wbA1xa8ERg5XiOTi2+WjFG86a4UK2Y3nv5SWaz8xWU2ByImGQaNmf9je9Irs 9MasM7Sv0QVEhoJHzQCv3h7nq4x8HoUbfy19MVV9v8Xmz3pp+ouq0teK8/XphexZHbeS Ve9LbPwCIFeQUzUJ5mCqK2T3mPvwAjEu2jurJoat9ReZeLO6O8QrrafjL/h9qjm6C4w8 Piv2Nda+O1KINA1UQqzGOu4bl5bqUuvmtQn5LIIn+ZWqFKDT/0b+tMHDhOZU5P4WPg+b s7oxrBCyuf89HvKrPWBPNlEoFfFgpQz1r/2l+2Xq6fWTR+tjb1aeek+vU1wyq5LwW7xF qrFA== X-Gm-Message-State: AOJu0YwCgkdTzQjMbY9FLzVrdxoHyRtCj9dKbmXm5/z7wMrPTImg/R8c FC81nt//qoYuDSEs20z8EUO/tlC5PWip4BDaATNmeecRZSFJTHM44eM8tsukuJKRULKuhziA2cU qCMrAQw== X-Received: by 2002:a05:6a20:cf8e:b0:1d2:bcba:70b7 with SMTP id adf61e73a8af0-1d2bcba78c6mr22172622637.27.1726721269821; Wed, 18 Sep 2024 21:47:49 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:49 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 32/34] qom: remove return after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:39 -0700 Message-Id: <20240919044641.386068-33-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- qom/object.c | 1 - 1 file changed, 1 deletion(-) diff --git a/qom/object.c b/qom/object.c index 157a45c5f8b..28c5b66eab5 100644 --- a/qom/object.c +++ b/qom/object.c @@ -2079,7 +2079,6 @@ const char *object_get_canonical_path_component(const Object *obj) /* obj had a parent but was not a child, should never happen */ g_assert_not_reached(); - return NULL; } char *object_get_canonical_path(const Object *obj) From patchwork Thu Sep 19 04:46: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: 829591 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155293wrn; Wed, 18 Sep 2024 21:54:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUSscgHSTxlek9aBBpwup87l4dNvv/xvR5t5R/AQ99sx9Lv6FlQBaA3q3Bk00CwUiBieWIrgw==@linaro.org X-Google-Smtp-Source: AGHT+IFZg768z/Mi6UXK7YBLAPZyv7e+6pD/YxS8vJqhnokgHzR+cx03iTJx0gPTRSMhE6Zm0TCG X-Received: by 2002:a05:622a:1896:b0:44f:e893:4567 with SMTP id d75a77b69052e-45b16003a10mr31254751cf.2.1726721679059; Wed, 18 Sep 2024 21:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721679; cv=none; d=google.com; s=arc-20240605; b=Nv+JCdtyvy03WNqNkUjiORDs31iO4F0+bdC/ikPIUwOHjD4Mx++CsgSfJM1WH4kOJ0 DGoN0OaBUh2qimtlCtt4abJtPdISbIjgKfyWJgpZ6qmAEa4oxl8i/ABuSmQc6i4kCCwq uKm0FiBc8tKzWv3fyZy7xQYfyxygSLFQoQV6XMpb1esua1zXTdzUC8J4KLwmv5TUCoQS tFXGOUyUG7jlEgiBDxA8iFBKQ5nkXAy2P6HCSkFtDqsaqwHGqZ58Ie54HCRL7h0WpTRB YH6SEOqjOCXNjnrGLLA6f3csu/uYloUfWB35dGtTknp6dVWVHwowADFyIXsTVDwloET5 JvhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/nGORvbHJ+qdXbStyLX4ZDxj18G9D+mDlGJ72uSFPz4=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=b1qqLsBSW+G8kPPmlTIs/mcT9m/pA2mxDxk9w9jVbmz1+WUUwbogpEPJCRJTFOCaYF zh7f7gsgP3ZTQQEvBtysoInntIU/afYWjNY3oOtBspK418R+t6a10i9FIgVULcedV8po H4LAQAG4CSlIsRtEiua/GbUYUZk7fYWM4/K7V1D/3W4ev1vXAVjIvi7ZL7MXmNEyP2ld X+spQaFMUWZsN6FrC7oMlthU9PWkw8SU6iu0p2Y73Ou4MZ88XZf/BfUaWlbPQIu0H33t cenezyrQoYJxZ5bh0HVIp347C6c8ZaEl7syKsu6JWIXHmttQjhiep1yKHfmpVQ5joGkI 0NKw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=on3wnEfA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45b1793b9d4si10891111cf.665.2024.09.18.21.54.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:54:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=on3wnEfA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr95O-00050M-Jc; Thu, 19 Sep 2024 00:48:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr95H-0004JZ-KD for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:48:03 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr957-0007c3-97 for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:48:03 -0400 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-71798661a52so342114b3a.0 for ; Wed, 18 Sep 2024 21:47:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721272; x=1727326072; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/nGORvbHJ+qdXbStyLX4ZDxj18G9D+mDlGJ72uSFPz4=; b=on3wnEfA/LUY3Ax1Ist2MYqMaO+zmDq8E1eJugjI6DfE9edoCJxrclc/Mr3Jdn5BW5 qQQpciXRWfcQ61Ls1dT9t2Z49mafjTsyftpTgAcGYiWptOKG/TKLnYPWTdiU8rASYlgV +zkWuBWdHB8AwntAANIG19xf8UssvtbI1eER703tIR7+6Iu2JouKnNRZO1Zi8/OJCogz C9Y7uheegAV7/oVEr7cvGi/hsVAXGZx2up+oJYg+fTHztGUel+mCJdjOeueLZR/O1s8x 9u+4dOtjFtBDQA6qaxqlI/uKECCosqTViMVnqPi6UCWMLGjwUvIB7/qPI7/7L/pCnXx1 96Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721272; x=1727326072; 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=/nGORvbHJ+qdXbStyLX4ZDxj18G9D+mDlGJ72uSFPz4=; b=RL8VOTNADLIuoZgvuBulGznoV9uPYaKTiXE6N7xMz+UhGnZhv6tcyOa+jq052NVlGL oMTjdd7QOr//p/q2dXWhuRgn9tjAnWcs41lNCZBPzbsu8puOgSqEPSQX7KDmyVIlIlZF 8a2vgizXv8bNPBX+WAqzLIQozKxlIYcq3C5CMHc15zLc9omCxUAkD947lVU9gM9J1QBl 3AqyuqczgIvGmyJs4UNsMBzkorknUxSUXf378sF9c6m/4lBo+Hf38AHqmO7fffu07D+W QFBhgPtCPqhSCGR+qGuxP7s0X5D6JR1SJoCEQvP2N7pxr04JbrI85pCtBjz8KrsGdvef zCfA== X-Gm-Message-State: AOJu0YzmZ6DNU7QBwE6iyPkaBN3hNK5tu8I39e3enV+IIPV7z6o1Z+Eb sLGdzOjLRUoVt1iUTSqCfxUgnM1W/dQ30vKXlJmsZWpU1bostIC7TSdYmo822FALeB8hPX/i6// yWvXpdA== X-Received: by 2002:a05:6a00:1885:b0:708:41c4:8849 with SMTP id d2e1a72fcca58-7198e2c832dmr2743657b3a.9.1726721271832; Wed, 18 Sep 2024 21:47:51 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:51 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 33/34] tests/qtest: remove return after g_assert_not_reached() Date: Wed, 18 Sep 2024 21:46:40 -0700 Message-Id: <20240919044641.386068-34-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier --- tests/qtest/acpi-utils.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/qtest/acpi-utils.c b/tests/qtest/acpi-utils.c index 673fc975862..9dc24fbe5a0 100644 --- a/tests/qtest/acpi-utils.c +++ b/tests/qtest/acpi-utils.c @@ -156,5 +156,4 @@ uint64_t acpi_find_rsdp_address_uefi(QTestState *qts, uint64_t start, g_usleep(TEST_DELAY); } g_assert_not_reached(); - return 0; } From patchwork Thu Sep 19 04:46: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: 829586 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp155078wrn; Wed, 18 Sep 2024 21:53:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUXbXcqw36aSO0EWSL0+q9VgzxicqM1ZLlC9I9DXCdAa96U5AXBRfOaRDS8+FV4IrV978ASKQ==@linaro.org X-Google-Smtp-Source: AGHT+IHzMf4Cs6m0tu3RyHI9ifpty2pAfDkric556MRYUCFE+/KhnJ6f7i/rFoLrAM4fVvxBtj3B X-Received: by 2002:a05:6214:2c04:b0:6c4:c95a:6782 with SMTP id 6a1803df08f44-6c57358fcc1mr324547346d6.51.1726721621554; Wed, 18 Sep 2024 21:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726721621; cv=none; d=google.com; s=arc-20240605; b=TfeFj3M15LSNoZedUkHnuG7foL35yowhdwhQwFo1HdmSn9myze+HT1u3l9svtKbAci w1lOJ5fsKOiyj/Dpxvd+Nptotq9FmmWHm3PySTEpEXQAvMfL5oiGwmystf5uaHhXHaIe 9kNvn4+FQvFZeBUMJySvzWCe5MCZUUc/XJ7iO3ksZqjMWcaBvynIy2n1ngP/DuDOAAIt YQCb8A61EMqSiQZumFyCV2qIeTQy4vvJ3phJ4weXYno5y9PGUhaChX8+g5HyQPO+P/0y NWCdCZlQGxzCO582EWuWh8/pPuyPyksXFsaQrmsfmfT5xt/fAfUFOaIWWJFbYywWjJHT RpSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tx1S3zr1/95ZbSlSEpzuV5Mw8JtyoYuXcwzt94aV9gc=; fh=5sUwfmYRlCXWUAcYTQtsUKL3/h5U38RKAKIQYZIY6/E=; b=Knz6lSksAVfi0LD9aM/5jZeernXvKId2hKDe9fbFyHKDRYHa1JlmfVbMZYHHrzxqI+ wBQsitbtVEoiMUvjM5dYvdRRIE3EfVDD6bqUjF2535UPf4wcfYp9z08orgxuTobZEdgF 6bCGo1yahQJEaPqMU1Y2iZp6+7L4o7KmQIyaaRkwjn/jH6S0R4sKJXNOdOWEB8jYArlD tcPIN2xAuvpnJJA5bmFAgiVn0m7VhhOBsjI4+vXmZqJfNf1FrsYMAzu5IJlqi6lWgSPx NEv0VOMNF7eRjiOIHghtpGOpBo0cs3p9qJDXJJsSxcxUPuILlQkOupdt/8alpcV6+n41 KPjA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ijMa0qxj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6c75e5acf13si10311746d6.518.2024.09.18.21.53.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Sep 2024 21:53:41 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ijMa0qxj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr95U-0005tm-OL; Thu, 19 Sep 2024 00:48:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr95K-0004d7-5I for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:48:06 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr95A-0007ct-7j for qemu-devel@nongnu.org; Thu, 19 Sep 2024 00:48:05 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-71979bf5e7aso286533b3a.1 for ; Wed, 18 Sep 2024 21:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726721274; x=1727326074; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tx1S3zr1/95ZbSlSEpzuV5Mw8JtyoYuXcwzt94aV9gc=; b=ijMa0qxjLOc4wZGyL5BJhjeWgydP8FmQJ7JMbVCgiVct3SiW9cZHzl7cAHYKWgXmMB zJj9IFzhknOjAk4Vg1g5agrkdlTyS9NDvvmfzwcXOYBgGMRTbzOh+cy7f4iKi7KEtwbZ W8Sa38byNtjvyubL4sWvDUNNcBOdyhxzImsTH1KVVrIWeRPUt1n8o7pLrf0GaME/xFue HAMqyB8gmzevSunGST39yfVaWSRfdNV1R20h3vLhdwtoVArJWCkW+QMDS/UGxqs4eqXl YD1aTA9wsnrlhhrWrrI9EbN9C/HFwfhzoe14ZYj5KITXedKKOrmX5Rd7ud56ygY8CVdF N8oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726721274; x=1727326074; 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=tx1S3zr1/95ZbSlSEpzuV5Mw8JtyoYuXcwzt94aV9gc=; b=QDiJIMxR4/7lpAGXAa+s0pg6r1oq5D0/tYT51QpWptXYov1QejlKBqskrfvocTdfeE U2/ek52GEHw0uN0PL5Ie3zvJuPYaG6RUP/ogFfKKXEMdkZ8iRxcB7t1VdCGDc+uPL336 905y1HN6MPgPpgXpatwKRdh0qKVT7VYt3luGZ3wgdM2M6E0SKyXP3ncD5Ps09QHVJHoW y5rUIJ30b37LxsAPF1SN9Mwasmb4usYe8jfUjjWq2xou6HHPN8IPzH76aUlEAYuBY6MM 4T09LvDhvvjRGzdA8JqRnvLF31HCeEcQRdhmPpcNQEEBQTHK8KYzZyS+ai+KG2bgPEfM Gs8A== X-Gm-Message-State: AOJu0YyKUa66P5O9Wnyp9q7lqQhQria53zgrpIiuzuj0zRl+bhISjiMc 82ehB92TPvuV5O1xy+DM6NgMwlA6Mw3+PNWNljdGgO4B0HUbZbcOZJ4ffjFuP8t5BB8IeepFmSn BMc/ziQ== X-Received: by 2002:a05:6a00:190d:b0:714:1e36:3bcb with SMTP id d2e1a72fcca58-7192606bcb9mr34659991b3a.9.1726721273726; Wed, 18 Sep 2024 21:47:53 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944bc279csm7478601b3a.188.2024.09.18.21.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 21:47:53 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Hyman Huang , Halil Pasic , kvm@vger.kernel.org, Bin Meng , Peter Xu , Liu Zhiwei , David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Dmitry Fleytman , Hanna Reitz , Klaus Jensen , Corey Minyard , Laurent Vivier , WANG Xuerui , Thomas Huth , Rob Herring , Eduardo Habkost , Nicholas Piggin , "Michael S. Tsirkin" , Harsh Prateek Bora , "Maciej S. Szmigiero" , Ani Sinha , Stefan Berger , Fam Zheng , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Keith Busch , Jean-Christophe Dubois , qemu-riscv@nongnu.org, Igor Mammedov , Akihiko Odaki , Sriram Yagnaraman , Jason Wang , Eric Farman , "Richard W.M. Jones" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nina Schoetterl-Glausch , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , Fabiano Rosas , Marcel Apfelbaum , qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Zhao Liu , Daniel Henrique Barboza , qemu-block@nongnu.org, Joel Stanley , Weiwei Li , Kevin Wolf , Helge Deller , Yanan Wang , Michael Rolnik , Jesper Devantier , Marcelo Tosatti , Peter Maydell , Pierrick Bouvier Subject: [PATCH v3 34/34] scripts/checkpatch.pl: emit error when using assert(false) Date: Wed, 18 Sep 2024 21:46:41 -0700 Message-Id: <20240919044641.386068-35-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240919044641.386068-1-pierrick.bouvier@linaro.org> References: <20240919044641.386068-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson 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); }