Received: by 10.223.185.116 with SMTP id b49csp5604693wrg; Wed, 7 Mar 2018 14:55:22 -0800 (PST) X-Google-Smtp-Source: AG47ELsJ8tHBiXmm7xXjDsoUAC1tXBuqEOKUR0MNKD0gUIQfrQDnZTbzTYhlwm+gfnw1KgXb7zJf X-Received: by 2002:a17:902:624:: with SMTP id 33-v6mr22354836plg.126.1520463322026; Wed, 07 Mar 2018 14:55:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520463321; cv=none; d=google.com; s=arc-20160816; b=m+dZ2npQ9olXfTKj99I6E5J0AIBmvJckXApuPZifSLws4A6lDLs+Cc9BISrq2eHXyd bgM52F4gAEea2YrIpy3M2VZ6F+DOameKXtyLhLfkvey5q3VC+L48v0qIVcPrgk9EYphs v8W9B43hc/OvN5PbqnVFJEr0bmRmtCkMtfVfm8ARCCSOTnsEUKbuHAeiVm3d7Dstn5ez /KaAUzR1OrnGVM7C5Ga9VgflzyS/Tnsm218oz7Af5Q0yi9w6TzrV7/c0mdjY6lKprTJw Vv7r3ufLriEiL87O5webMJDgzjdIGsa0D28eUFtb3xCEPjo3z0HsHvQCLw3+2jxyHzDP SAYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=LJyvd6MpjdBjIHFIbKiB2jzfuPmJsU/Ieeevw/1UWDw=; b=hdcwgStEgWQjXyY6hjhjJ7Jvin/UBMJVRvcLhtXHEiFWjQCFB3Vry//nCmcnprUiUd WadprXLw3hBrGD3mN+fzd9vU9S+MQUKQUM+0dBm8ipO//VaillFpZukrRnzx3hl1i4Bt Of0m+xCWUNqXF0puZCiumscMUaf11VjX7EYwNDq5GOp1LPo40zuVNaP9iZ9+d7B9Auaf nxd8+umSf6KX+uO6XxAsrUu8KcDQBeHt8nVaLNaoGXlo39s8k+p73Pc7SRJr4IDucYdl O44IvM0IZFcTMDW+Db6Fbd4n7S5d9qTd7GBqQBFww6aCTbYTjJ1F9Nr/AzVimqWsI/VA C7Cg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11-v6si3921678plp.253.2018.03.07.14.55.07; Wed, 07 Mar 2018 14:55:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934303AbeCGWyO (ORCPT + 99 others); Wed, 7 Mar 2018 17:54:14 -0500 Received: from mail.bootlin.com ([62.4.15.54]:56676 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933858AbeCGWyM (ORCPT ); Wed, 7 Mar 2018 17:54:12 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 364A5204AD; Wed, 7 Mar 2018 23:54:10 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [88.191.26.124]) by mail.bootlin.com (Postfix) with ESMTPSA id D5D0B2037F; Wed, 7 Mar 2018 23:54:09 +0100 (CET) Date: Wed, 7 Mar 2018 23:54:11 +0100 From: Alexandre Belloni To: Baolin Wang Cc: a.zummo@towertech.it, arnd@arndb.de, broonie@kernel.org, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH 1/3] rtc: Use time64_t to save range_max of RTC Message-ID: <20180307225411.GA20370@piout.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 26/02/2018 at 16:33:56 +0800, Baolin Wang wrote: > We need use rtc->range_max to valid if the time values are valid, > and the time values are saved by time64_t type. So change the > rtc->range_max to time64_t type for comparison correctly. > I'm not applying this one because the described issue will never happen as negative times are forbidden by the rtc subsystem. I've applied the two following patches > Signed-off-by: Baolin Wang > --- > include/linux/rtc.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/rtc.h b/include/linux/rtc.h > index bdfc0c4..8560282 100644 > --- a/include/linux/rtc.h > +++ b/include/linux/rtc.h > @@ -152,7 +152,7 @@ struct rtc_device { > struct bin_attribute *nvram; > > time64_t range_min; > - timeu64_t range_max; > + time64_t range_max; > > #ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL > struct work_struct uie_task; > -- > 1.7.9.5 > -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com