X-GM-THRID: 6209280550027395072 X-Received: by 10.13.223.72 with SMTP id i69mr23804621ywe.28.1446571931609; Tue, 03 Nov 2015 09:32:11 -0800 (PST) X-BeenThere: outreachy-kernel@googlegroups.com Received: by 10.140.86.38 with SMTP id o35ls187620qgd.47.gmail; Tue, 03 Nov 2015 09:32:10 -0800 (PST) X-Received: by 10.129.148.129 with SMTP id l123mr24641550ywg.35.1446571930897; Tue, 03 Nov 2015 09:32:10 -0800 (PST) Return-Path: Received: from mail.linuxfoundation.org (mail.linuxfoundation.org. [140.211.169.12]) by gmr-mx.google.com with ESMTPS id pe1si2719883pac.2.2015.11.03.09.32.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Nov 2015 09:32:10 -0800 (PST) Received-SPF: pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) client-ip=140.211.169.12; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Received: from localhost (c-50-170-35-168.hsd1.wa.comcast.net [50.170.35.168]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 84C5190; Tue, 3 Nov 2015 17:32:10 +0000 (UTC) Date: Tue, 3 Nov 2015 09:32:10 -0800 From: Greg KH To: Arnd Bergmann Cc: y2038@lists.linaro.org, Amitoj Kaur Chawla , outreachy-kernel@googlegroups.com, Tapasweni Pathak Subject: Re: [Outreachy kernel] Re: [Y2038] [PATCH v2] staging: media: lirc: lirc_sasem: Replace timeval with ktime_t Message-ID: <20151103173210.GC31651@kroah.com> References: <20151027074702.GA26499@amitoj-Inspiron-3542> <5227439.VKfeZbEDzt@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5227439.VKfeZbEDzt@wuerfel> User-Agent: Mutt/1.5.24 (2015-08-30) On Tue, Nov 03, 2015 at 05:39:00PM +0100, Arnd Bergmann wrote: > On Tuesday 27 October 2015 13:17:02 Amitoj Kaur Chawla wrote: > > This driver uses 'struct timeval' which we are trying to remove since > > 32 bit time types will break in the year 2038 by replacing it with > > ktime_t. > > > > This patch changes do_gettimeofday() to ktime_get() because > > ktime_get() returns ktime_t while do_gettimeofday() returns struct > > timeval. > > > > This patch also uses ktime_ms_delta() to get the elapsed time in > > milliseconds. > > > > Signed-off-by: Amitoj Kaur Chawla > > --- > > The patch looks good to me, but after checking an old tree of mine, I found > that I already have a patch from Tapasweni Pathak for the same thing. > For some reason Greg did not apply it to staging back then. I'll send it out > to the list for Greg to apply now to ensure this doesn't happen again. Greg is not in charge of drivers/staging/media/* so don't send it to him, he will just ignore it :)