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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9E7FFC433F5 for ; Thu, 5 May 2022 23:38:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 53EEF84073; Fri, 6 May 2022 01:38:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="lsjJf81F"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 31DDD8407A; Fri, 6 May 2022 01:38:23 +0200 (CEST) Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C62B584073 for ; Fri, 6 May 2022 01:38:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf35.google.com with SMTP id kj8so4221461qvb.6 for ; Thu, 05 May 2022 16:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Q+CQZM11zHouZtPxmjA9/FzmhYL+TzoIBxTqj6pcZe4=; b=lsjJf81FN6w+hXtZcajCAojjAXVMkBfFkKdpv8QYtbEor2mN/dXgBEtQabdCled8Tw hfavP2RvtBv+GOmS1q+Iz9Pyv6zbivsukn/ok5XxP9EcttQEn5+jDeAYFt4qQe+4Qnsn WmXP8hF5YHC4OjPmCd1Fbsujc7QXiW1D5o62Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Q+CQZM11zHouZtPxmjA9/FzmhYL+TzoIBxTqj6pcZe4=; b=WePQsMR2IdROYTIGGkv0pHPlS6z8uX3nViLzxMYFA3utsvbJnr6Mhc8m0h1g+e/7hV a/7nuP+fSC/dNOnAud9ldthPRQmJS/i4VQhElBNz+wW+YdmaV8KwngRM7VzXtGm/effX Bcthw01yqkOY1qhXfp3jyXgwUdiR8BZTpD9YjNJ4+k+5KT+tBqkmeI2Gon8X+yB5rxeo tAEGqUxnOtzwtwsZjXlQbA0WWPfx/37WyD8vgYHXD+b+I3QWe6NBEm3/+fTnKQJP9Xnc T9PmF9Uwf7qadv1TyxqpLoR8F0sCz9S7PDqaiZRhEepLqWIEjh0+UyVPo5zMJqcY3ICt 6F7g== X-Gm-Message-State: AOAM531VpxAkxntUOM2yfNa/UOIPCBu3In4euhFYLgWAnNJpeHL1DpBj 6bgKkAmV77deYLwd3I40H+P+HPKeuc0P9g== X-Google-Smtp-Source: ABdhPJxxLEaFV5EIqVw2cCtdmPsjPK6VvxHKM1C69O3/YMcYiR3ed+L/qLrTELnMhro0/tFiEB5YHg== X-Received: by 2002:a05:6214:29ed:b0:45a:aa8f:49 with SMTP id jv13-20020a05621429ed00b0045aaa8f0049mr387618qvb.41.1651793899644; Thu, 05 May 2022 16:38:19 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-4500-d51e-139c-40d3-a517.res6.spectrum.com. [2603:6081:7b01:4500:d51e:139c:40d3:a517]) by smtp.gmail.com with ESMTPSA id r4-20020a05620a03c400b0069fc13ce232sm1442935qkm.99.2022.05.05.16.38.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 May 2022 16:38:18 -0700 (PDT) Date: Thu, 5 May 2022 19:38:17 -0400 From: Tom Rini To: Jan Kiszka Cc: U-Boot Mailing List Subject: Re: [PATCH] lib/date: Make rtc_mktime and mktime64 Y2038-ready Message-ID: <20220505233817.GY3580959@bill-the-cat> References: <8fff2115-dcfc-a1ea-579a-74d124811869@web.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dwN3S3mscniL3FCL" Content-Disposition: inline In-Reply-To: <8fff2115-dcfc-a1ea-579a-74d124811869@web.de> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --dwN3S3mscniL3FCL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 24, 2022 at 11:34:56AM +0200, Jan Kiszka wrote: > From: Jan Kiszka >=20 > We currently overflow due to wrong types used internally in rtc_mktime, > on all platforms, and we return a too small type on 32-bit. >=20 > One consumer that directly benefits from this is mktime64. Many others > may still store the result in a wrong type. >=20 > While at it, drop the redundant cast of mon in rtc_mktime (obsoleted by > 714209832db1). >=20 > Signed-off-by: Jan Kiszka Applied to u-boot/master, thanks! --=20 Tom --dwN3S3mscniL3FCL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmJ0X+gACgkQFHw5/5Y0 tywwAQwArF/ji5G702Ha19C9iPlnOcDVnT/Wzte4z0DiOzN0BdZO4OQuQrtMb3W8 AwomQtKestQWQWwqfzulohYdoKcsKuEtT9409w+Gnwz51T0lHCDeDneW362+923I CLfqiCG1rCDE+ek1ZE+y/JHyr3Gxo6hEGLGAyY1lI89zxotiFLa7ArFBBptroelQ EucCtjpYRQj7SXMtTE/lIWlgGX4HT/9obNKDxX5ySSViiKPblQfvx7T8GlljErVg 7nN3I1Z2VMSkU8qngEZ/5b9+O6fEhw3utzIInh/XTPQ5wvQjffJZR041f2X/Rfge NwevmjjQAqzZ28IO6tU4ECO/l/lOzEPq2IfZzfy5su0lVOvO697lZDR4hrFiWi0F xjOxXDnlutRLUuBxAu1JH3JphvOirO+LZ6Gbuz2BGAuvETtvsUo2G4zqO62d0Hob zoP/CGP3JjeeacA4frMEu8MFdVY2D7KwFjbr0JSfhenjow81uIiCgD7h7hOInUqW Q/dfGN4p =sXMG -----END PGP SIGNATURE----- --dwN3S3mscniL3FCL--