• Arnd Bergmann's avatar
    staging: comedi: avoid using timeval · 70db384c
    Arnd Bergmann authored
    Comedi uses 32-bit seconds for its timestamps, on both 32-bit and
    64-bit machines. For all I can tell, this was originally meant as
    a 'timespec', which would overflow in 2038 because of the use of
    a signed 'long' on 32-bit machines, but it is now used as an
    array of two unsigned 'lsampl_t' values in comedilib, which will
    only overflow in 2106, on both 32-bit and 64-bit machines.
    
    In an effort to get rid of all uses of 'struct timeval' in the kernel,
    this replaces the internal code with a call to ktime_get_real_ts64()
    and a comment at the location of the conversion.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    70db384c
Name
Last commit
Last update
..
drivers Loading commit data...
kcomedilib Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
TODO Loading commit data...
comedi.h Loading commit data...
comedi_buf.c Loading commit data...
comedi_compat32.c Loading commit data...
comedi_compat32.h Loading commit data...
comedi_fops.c Loading commit data...
comedi_internal.h Loading commit data...
comedi_pci.c Loading commit data...
comedi_pci.h Loading commit data...
comedi_pcmcia.c Loading commit data...
comedi_pcmcia.h Loading commit data...
comedi_usb.c Loading commit data...
comedi_usb.h Loading commit data...
comedidev.h Loading commit data...
comedilib.h Loading commit data...
drivers.c Loading commit data...
proc.c Loading commit data...
range.c Loading commit data...