From nobody Mon Feb 9 17:36:24 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1579795612; cv=none; d=zohomail.com; s=zohoarc; b=ByuD+EdEMYwSAnQTlbC6ECPv/xEScmBGsjzsOAD1o+GLProNg6kiZ4opa0GZPVzqcoLmeIIH3FdI6AvniQI9oFcJM365B0XzliRj0Y3lrvO42W4+mqUPEcLQ2R37e6wJrwaK/xyaE9NiYaObWS7IqZdrusAB1Jf/qmdl9NAbgCE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579795612; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=e6FP2ihGyimY4vj+dOSdMZBpX4HIMQWZAgOG4qQpKUc=; b=JUKh0kw6pfVsoCduLSQ1krOGUdvE+d8fDfSfgC3J1CETGxZoIlWPKL4VDQ6jz/QIfgtc3tlaRB+F/aUM5bNFXsoZGU1Mw8Js/yembfB9G1+chtUkeCpFFdxjjcw48MTc1H/erP9O5X7H+qFAML813Do++SS0ascuj9hh6jZqzMc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1579795612603967.468628363575; Thu, 23 Jan 2020 08:06:52 -0800 (PST) Received: from localhost ([::1]:60024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuf0N-000640-4v for importer@patchew.org; Thu, 23 Jan 2020 11:06:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51254) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iucrD-0004lg-UX for qemu-devel@nongnu.org; Thu, 23 Jan 2020 08:49:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iucrC-00036P-Tk for qemu-devel@nongnu.org; Thu, 23 Jan 2020 08:49:15 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:33948) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iucrC-000358-NJ for qemu-devel@nongnu.org; Thu, 23 Jan 2020 08:49:14 -0500 Received: by mail-wm1-x334.google.com with SMTP id s144so1922914wme.1 for ; Thu, 23 Jan 2020 05:49:14 -0800 (PST) Received: from 640k.localdomain.com ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id s15sm3073171wrp.4.2020.01.23.05.49.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jan 2020 05:49:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e6FP2ihGyimY4vj+dOSdMZBpX4HIMQWZAgOG4qQpKUc=; b=EQN9kUtpRS3FItvt7DfiHy6IyyEQD2oDGD7zuuczFNfbzVlQ8lbAv4pmpOpvdU0AMF uDdHw/RQe54jGQYPWMguWMmPmRKshBPoQWPI4Bu9jdlhXyOOV730xll3JMfplfCfl+aD J2hlw/zMTgimuNXdeSKgaU3QYhMryZz+ItVaDklMzifMchKUj8GdLJRKrEhqMhuAHv1w 7x4gSt5iqa4duqHgCs5F+NjNIXTHETvXPLsbzqxlGcJ17txgc6nHmmxoQTc7iUE5fLOC sBP0qfSJ9hclWpYShmvp6x3fieYzlKAVqN9ARiVcH21N+d7TajyNm8haAbEpY1VWI6LY ck1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=e6FP2ihGyimY4vj+dOSdMZBpX4HIMQWZAgOG4qQpKUc=; b=uhe2gNKpOWIqKO/E9ZCKg1u2VG/LRxDhugQJx7CO004KFSOlAqqyYchVh3mphGfhuu Gc6ZUXVDW/9DXwSLdr8STn4HmKtI1AEKPKoaGeS1E3cD1qpU0An9VVsbpygVyg0QqGHP l/UjhGWfvbVgMwt2WLEx8+xSjFPdgDFyw8PzBn0BOPJLg4T4x3V7XMsvopE1VQ5DokHc t8MqggAOOH8uSPsQHMN+QT0mvjjjkyHXaJyOQ03eQ5PSxc2J3QCfogeAD3dfDeEg8Zlu m/q2LRF5SInSLtXhKjPNCtd3T3gAlHChCxDPRS75DbqNvAwZ5dzu5w6Kc16v5M+f5Fok C0qQ== X-Gm-Message-State: APjAAAXcAu2XwomMzuoyb85tiGdfxDVWwgKam87BROeMJy/87GmguCS4 6DiW660XnrFlXgiwrRI9LJhBJc3L X-Google-Smtp-Source: APXvYqwDTn8oMJPb7dsuAp5iCB7OI1Q7OsICH9eiMaz6XbBIrJbgaONUHTA14OMdGJaJVG9iuslpoQ== X-Received: by 2002:a7b:cc98:: with SMTP id p24mr4381755wma.139.1579787353575; Thu, 23 Jan 2020 05:49:13 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 08/59] hw/timer/aspeed_timer: Add a fall through comment Date: Thu, 23 Jan 2020 14:48:11 +0100 Message-Id: <1579787342-27146-9-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1579787342-27146-1-git-send-email-pbonzini@redhat.com> References: <1579787342-27146-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::334 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Philippe Mathieu-Daud=C3=A9 Reported by GCC9 when building with CFLAG -Wimplicit-fallthrough=3D2: hw/timer/aspeed_timer.c: In function =E2=80=98aspeed_timer_set_value=E2= =80=99: hw/timer/aspeed_timer.c:283:24: error: this statement may fall through [-= Werror=3Dimplicit-fallthrough=3D] 283 | if (old_reload || !t->reload) { | ~~~~~~~~~~~^~~~~~~~~~~~~ hw/timer/aspeed_timer.c:287:5: note: here 287 | case TIMER_REG_STATUS: | ^~~~ cc1: all warnings being treated as errors Add the missing fall through comment. Fixes: 1403f364472 Reviewed-by: C=C3=A9dric Le Goater Reviewed-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20191218192526.13845-4-philmd@redhat.com> Signed-off-by: Paolo Bonzini --- hw/timer/aspeed_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/timer/aspeed_timer.c b/hw/timer/aspeed_timer.c index a8c38cc..c91f184 100644 --- a/hw/timer/aspeed_timer.c +++ b/hw/timer/aspeed_timer.c @@ -283,7 +283,7 @@ static void aspeed_timer_set_value(AspeedTimerCtrlState= *s, int timer, int reg, if (old_reload || !t->reload) { break; } - + /* fall through to re-enable */ case TIMER_REG_STATUS: if (timer_enabled(t)) { uint64_t now =3D qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); --=20 1.8.3.1