From patchwork Thu Aug 31 10:45:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 718955 Delivered-To: patch@linaro.org Received: by 2002:adf:e5c2:0:b0:31d:da82:a3b4 with SMTP id a2csp394686wrn; Thu, 31 Aug 2023 03:46:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdxZ8dyGVH29wK/aFLRH+ge4qAaIJA+9njejqWct2G6sX0RoKY8GCEiYBqOjfA7SEU7/jx X-Received: by 2002:a05:620a:248a:b0:76c:a8a2:aad2 with SMTP id i10-20020a05620a248a00b0076ca8a2aad2mr2662813qkn.34.1693478781974; Thu, 31 Aug 2023 03:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693478781; cv=none; d=google.com; s=arc-20160816; b=d2TJRuFYf4EXYshzHOVjdT1MOMu2i8nWuJD4JBadJPuXmp7vRWfMqQl4H7wubVkLOq RAulsxT2X1BSP2hId7JxhAUZKubbZUkbVL5P17wQCxwWUk4PUyz4lZFqGuBMHAMdiUWf jvc85jiWD+YH4j+KYGk2h8EduByMLQLo+Nxa+srdkXmpvlVgmD76cEZsSJ+e52/eLYgs ISczhbjc5qPTfZsiaEKAK4c/yQTlZecBchxa3fdcAhLLJJFY0kiFaqEhyKG9RamytGBB 97hOCUmKV60iFn2DgShcNkDM8qgknJAMvPHWRoVdQAhnXCUpBx/9BF4QE+FKq+OacHjI PHJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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:to:from :dkim-signature; bh=1CYb36QZUIZDu4UGmBLcVUVYCmpeU0BzYEZkkE+tCKU=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=M5g69/VZ3Ul0U2NjdeJBNyOKrGyeBmwqS5Sti34z2uZSHBizscWLv60J7HiF4/R7Nu vJVgUxB1OB3MjZ1s2rUo8covr0K0dXE2xviztSk641JWeEjQbYpsvtLmKjcJ4F/e09HZ WO9bvbtADStvx+B9XUpnvRDiIZ6ck9x6sCMjZyd7D8q4YTPvc2HBXvZoTCy9lCWKZD9L Kw/s4tYsYtb/81Pn+MJFkp5U53vcZAmpwWnTyUDjmUxODHMn8rnoCp9phuOncnxQZBR8 LrOfQNHcQciMnvHDAs39SUJfpuIDdaecwlwsJZiKXUEUfSwiSR8r1G+HBnbPu65c4dNT aTWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o8Xsi2YT; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ql15-20020a05620a890f00b0076d7f1f203esi709400qkn.268.2023.08.31.03.46.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Aug 2023 03:46:21 -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=o8Xsi2YT; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbfBU-0004Ch-Np; Thu, 31 Aug 2023 06:45:56 -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 1qbfBB-0003df-CR for qemu-devel@nongnu.org; Thu, 31 Aug 2023 06:45:37 -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 1qbfB5-00044d-D3 for qemu-devel@nongnu.org; Thu, 31 Aug 2023 06:45:35 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-31c79850df5so498231f8f.1 for ; Thu, 31 Aug 2023 03:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693478728; x=1694083528; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=1CYb36QZUIZDu4UGmBLcVUVYCmpeU0BzYEZkkE+tCKU=; b=o8Xsi2YT9edqqf71FfZ5T9ibh21NaeXFxDQYjDjtz1SYGKIYw0z0aEYt7ziXID3rgW nW9UgfD75P2EfNPFogBztu9rII/pE7o5oYDCe9/d2cG2OzveD+nDLkaHxTeXnHrGEcZc a7GdeM8cfqU42UF+K6X7KkUaXXVzi3vZ+KA5ncMOWlf5tmi6CCRa+ckhsbcFPJWgUuzp wWsVbOCJVwXB+j4adRE8Plg3sPcypyN2ksFlqX96tMt/OYkjP4yTzRo+sczOpllpHTD0 rpTdV0v8yyD3+hpX7U6w7nEsQq5f6Gz0j1I+X8vrRB2oxzpOKekVcXNqZdqf9v8csCHj fJSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693478728; x=1694083528; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1CYb36QZUIZDu4UGmBLcVUVYCmpeU0BzYEZkkE+tCKU=; b=M1mTUWZTq5Vq/MQSRKDbiOTF4eg3kIsN+5CsFnz1k2UHQmsutUajo4rNBG/F8e9hck Md28im/KXHMJD7b4Zc+8XsTArFTL4ARkcR18UikIdS+BPAwGcGeeDS3kV0O2SU4z5jUf SXDYowfywlENTgUPLqndwgiyHGqu3HzcRqsmX5ZOBSy1GkGeQ/hKP6jcHg7+XvsIA4RH 5OSboZo138b3C0AdPc/NUjLtkQlCU2uno2WD+pbyPdgN0S50cdMxbMuPfb1EOg9zary0 6X9L1nroPM/6XvNKj6OuVu+KCsvgVglqmeRfZCGDOVH07wSiH+maFRBlt/622uWdXH3P Ifgg== X-Gm-Message-State: AOJu0YzbFKOwi7bKtZsfzxwHqHQnoIWY8RghUWYNOTvAy/kdtJGAiTEd NDur59sG10zMLSUfd2stKRmxcnFdhfdk2p3Qgbg= X-Received: by 2002:adf:e692:0:b0:319:7abf:d8e2 with SMTP id r18-20020adfe692000000b003197abfd8e2mr3892992wrm.24.1693478728686; Thu, 31 Aug 2023 03:45:28 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id l5-20020adfe585000000b0031c71693449sm1785524wrm.1.2023.08.31.03.45.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Aug 2023 03:45:28 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 19/24] hw/rtc/twl92230: Use int64_t for sec_offset and alm_sec Date: Thu, 31 Aug 2023 11:45:14 +0100 Message-Id: <20230831104519.3520658-20-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230831104519.3520658-1-peter.maydell@linaro.org> References: <20230831104519.3520658-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=peter.maydell@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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org In the twl92230 device, use int64_t for the two state fields sec_offset and alm_sec, because we set these to values that are either time_t or differences between two time_t values. These fields aren't saved in vmstate anywhere, so we can safely widen them. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé --- hw/rtc/twl92230.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/rtc/twl92230.c b/hw/rtc/twl92230.c index d8534dad949..64c61c3daeb 100644 --- a/hw/rtc/twl92230.c +++ b/hw/rtc/twl92230.c @@ -65,8 +65,8 @@ struct MenelausState { struct tm tm; struct tm new; struct tm alm; - int sec_offset; - int alm_sec; + int64_t sec_offset; + int64_t alm_sec; int next_comp; } rtc; uint16_t rtc_next_vmstate;