From patchwork Fri Oct 13 07:47:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manos Pitsidianakis X-Patchwork-Id: 13420246 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7BD48CDB483 for ; Fri, 13 Oct 2023 07:55:28 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrCxh-0000AZ-6N; Fri, 13 Oct 2023 03:51: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 1qrCwz-0006Fo-85 for qemu-devel@nongnu.org; Fri, 13 Oct 2023 03:51:14 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450: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 1qrCwl-0004uj-Jy for qemu-devel@nongnu.org; Fri, 13 Oct 2023 03:51:12 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-31f71b25a99so1699234f8f.2 for ; Fri, 13 Oct 2023 00:50:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697183458; x=1697788258; 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=25sCzaInjB8sFE1VeuGo95l9HKW+ig6yAUD4q7buGOU=; b=BSjwDyOtbb9EY7/hwBEdZ4ENCUq9yg/JJIqFwxu7NerjndBgy8d3gPN/Ekn2Jpulam OiH47qR86FUSx5/YdATqVU4wVg/VzE205DUCnFEjpNRJLaPZK/rGDLWu84DWlLgs9u/h mk+aSandgzW/wyC99TO3csAKE3FOSGYmMoY48yAINr9ZGn3Ne1JLF7qb1rCHsgU9WEXK 9/lnMVH5UUu326kN9qJUEAOFm1vfHwNUEgwS58vwkuHWaerSFPqGpF0OXzVxd6dgGJoK Yhkify91Q+hB4z9KW3v23iLwJi5hQmTepRaPMeZXdgRYdTMYcujS+PMFpDzazUZEKXqF A6/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697183458; x=1697788258; 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=25sCzaInjB8sFE1VeuGo95l9HKW+ig6yAUD4q7buGOU=; b=GvR3bz0HZ+UyYaa9Yb2k0FuU2e92hhh+098yW+zVBvKExZPHPTAccYDTBfpvxU/w5Y TbzDF4qpIQVumqaz3j+AIcvCeCTO0SjdFSjLFDYiA0TM55xYYVszI9qjKuIM+KjqnVvt JWj4I/h3vSsseWLAvcg55JBawoFJ8gVOKlQ2ZdHxJLlENSy6YJW7cxCen07qDuz+rWgK bao78v1Lmpkc9Xsn3hucn4rrQkMAnJWzaBJxH3pq+JIkbF3rH8Invr8b08eH8VkL6Bot lwGldUjcj93Vh24cyABOqq2oYz8+0LPFFXHdGd1d7sBzNzT5wma6qqm69ba0kDjSGBfZ /+9A== X-Gm-Message-State: AOJu0Yx/lJYJOI4ZD53pmJo2taBamYQ54TVwyKNGOkPu9Cks9RdGmvJH 09UgqarhdTYl5CM0qLqPaGFwayDDwe72OW0KunY= X-Google-Smtp-Source: AGHT+IHT7zHMnzfjYXQiH8+vPnlmdTojVGwtjLhgLWYhZpjwTVFHVMjSJ5Q64DFTjuAQWRh/BMXeXg== X-Received: by 2002:a5d:4402:0:b0:32d:8907:2b18 with SMTP id z2-20020a5d4402000000b0032d89072b18mr5574866wrq.66.1697183457886; Fri, 13 Oct 2023 00:50:57 -0700 (PDT) Received: from localhost.localdomain (adsl-170.109.242.226.tellas.gr. [109.242.226.170]) by smtp.gmail.com with ESMTPSA id m8-20020adfa3c8000000b0032d7fde2d3csm7990663wrb.79.2023.10.13.00.50.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 00:50:57 -0700 (PDT) From: Emmanouil Pitsidianakis To: qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-block@nongnu.org Cc: Emmanouil Pitsidianakis Subject: [RFC PATCH 37/75] system/rtc.c: add fallthrough pseudo-keyword Date: Fri, 13 Oct 2023 10:47:41 +0300 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=manos.pitsidianakis@linaro.org; helo=mail-wr1-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=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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Emmanouil Pitsidianakis --- system/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/rtc.c b/system/rtc.c index 4904581abe..bb406542c8 100644 --- a/system/rtc.c +++ b/system/rtc.c @@ -48,22 +48,22 @@ QEMUClockType rtc_clock; /***********************************************************/ /* RTC reference time/date access */ static time_t qemu_ref_timedate(QEMUClockType clock) { time_t value = qemu_clock_get_ms(clock) / 1000; switch (clock) { case QEMU_CLOCK_REALTIME: value -= rtc_realtime_clock_offset; - /* fall through */ + fallthrough; case QEMU_CLOCK_VIRTUAL: value += rtc_ref_start_datetime; break; case QEMU_CLOCK_HOST: if (rtc_base_type == RTC_BASE_DATETIME) { value -= rtc_host_datetime_offset; } break; default: assert(0); } return value; }