Re: [Y2038] Questions on some functions

2015-10-22 Thread Arnd Bergmann
On Thursday 22 October 2015 12:08:14 Amitoj Kaur Chawla wrote: > Hi Arnd, > > > A couple of doubts I had while working on some patches. Hi Amitoj, I've put the y2038 and outreachy mailing lists on Cc, I hope that's ok with you. You ask good and important questions, and it will help others to

Re: [Y2038] Questions on some functions

2015-10-22 Thread Amitoj Kaur Chawla
On Thu, Oct 22, 2015 at 1:31 PM, Arnd Bergmann wrote: > On Thursday 22 October 2015 12:08:14 Amitoj Kaur Chawla wrote: >> Hi Arnd, >> >> >> A couple of doubts I had while working on some patches. > > Hi Amitoj, > > I've put the y2038 and outreachy mailing lists on Cc, I hope that's

Re: [Y2038] [PATCH] usb: usbtest: Add new ioctl interface

2015-10-22 Thread Arnd Bergmann
On Thursday 22 October 2015 09:43:25 Deepa Dinamani wrote: > On Thu, Oct 22, 2015 at 2:36 AM, Arnd Bergmann wrote: > > On Wednesday 21 October 2015 18:03:02 Deepa Dinamani wrote: > > > On Wed, Oct 21, 2015 at 4:17 PM, Arnd Bergmann wrote: > > Yes, and that is the

Re: [Y2038] [Outreachy kernel] [PATCH] usb: usbtest: Add new ioctl interface

2015-10-22 Thread Arnd Bergmann
On Wednesday 21 October 2015 18:03:02 Deepa Dinamani wrote: > On Wed, Oct 21, 2015 at 4:17 PM, Arnd Bergmann wrote: > > On Wednesday 21 October 2015 15:17:14 Deepa Dinamani wrote: > > > Rename old ioctl and data types to COMPAT_USBTEST_REQUEST and > > > usbtest_param_compat,

[Y2038] [PATCH] mtd: tests: Replace timeval with ktime_t

2015-10-22 Thread Shraddha Barke
Change the 32-bit time type timeval to the 64-bit time type ktime_t, since 32-bit systems using struct timeval will break in the year 2038. Correspondingly change do_gettimeofday() to ktime_get() since ktime_get returns a ktime_t, but do_gettimeofday returns a struct timeval. Signed-off-by:

Re: [Y2038] [PATCH] mtd: tests: Replace timeval with ktime_t

2015-10-22 Thread Arnd Bergmann
On Thursday 22 October 2015 19:35:49 Shraddha Barke wrote: > Change the 32-bit time type timeval to the 64-bit time type > ktime_t, since 32-bit systems using struct timeval will break in the > year 2038. Correspondingly change do_gettimeofday() to ktime_get() > since ktime_get returns a ktime_t,

Re: [Y2038] [PATCH v2] mtd: tests: Replace timeval with ktime_t

2015-10-22 Thread Arnd Bergmann
On Thursday 22 October 2015 20:02:59 Shraddha Barke wrote: > Changes the 32-bit time type timeval to the 64-bit time type > ktime_t, since 32-bit systems using struct timeval will break in the > year 2038. Correspondingly change do_gettimeofday() to ktime_get() > since ktime_get returns a ktime_t,

Re: [Y2038] [PATCH] misc: ibmasm: Replace timeval with timespec64

2015-10-22 Thread Amitoj Kaur Chawla
On Fri, Oct 23, 2015 at 12:45 AM, Arnd Bergmann wrote: > On Thursday 22 October 2015 23:09:20 Amitoj Kaur Chawla wrote: >> This patch replaces timeval with timespec64 as 32 bit 'struct timeval' >> will not give current time beyond 2038. >> >> This also changes the code to use

[Y2038] [PATCH v2] ide: pdc202xx_new: Replace timeval with ktime_t

2015-10-22 Thread Amitoj Kaur Chawla
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 a ktime_t while do_gettimeofday() returns struct timeval. This patch

Re: [Y2038] [PATCH v2] firewire: Replace timeval with timespec64

2015-10-22 Thread Stefan Richter
On Oct 22 Arnd Bergmann wrote: > On Thursday 22 October 2015 04:05:00 Amitoj Kaur Chawla wrote: [...] > Reviewed-by: Arnd Bergmann > > (adding the y2038 mailing list as well) > > > Changes in v2: > > -Replaced timespec with timspec64 > > -Modified commit message >

Re: [Y2038] [PATCH v2] firewire: Replace timeval with timespec64

2015-10-22 Thread Arnd Bergmann
On Thursday 22 October 2015 15:07:50 Stefan Richter wrote: > Looks fine to me, but I have a question. It was possibly already > discussed at patch v1, though that was apparently not posted to an open > list. > > include/linux/timekeeping.h says: > #define ktime_get_real_ts64(ts)

Re: [Y2038] [PATCH v2] ide: pdc202xx_new: Replace timeval with ktime_t

2015-10-22 Thread Arnd Bergmann
On Thursday 22 October 2015 18:15:50 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()

[Y2038] [PATCH] usb: usbtest: Add new ioctl interface

2015-10-22 Thread Deepa Dinamani
On Thu, Oct 22, 2015 at 2:36 AM, Arnd Bergmann wrote: > On Wednesday 21 October 2015 18:03:02 Deepa Dinamani wrote: > > On Wed, Oct 21, 2015 at 4:17 PM, Arnd Bergmann wrote: > > > On Wednesday 21 October 2015 15:17:14 Deepa Dinamani wrote: > > > > Rename old ioctl