• Arnd Bergmann's avatar
    net: fec: avoid timespec use · be7ccdc3
    Arnd Bergmann authored
    The fec_ptp_enable_pps uses an open-coded implementation of ns_to_timespec,
    which will be removed eventually as it is not y2038-safe on 32-bit
    architectures. Two more instances of the same code in this file were
    already converted to use the safe ns_to_timespec64 in commit 6630514f
    ("ptp: fec: use helpers for converting ns to timespec"), this changes
    the last one as well.
    
    The seconds portion here is actually unused and we could just remove the
    timespec variable, but using ns_to_timespec64 can still be better as the
    implementation can be hand-optimized in the future.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Cc: Richard Cochran <richardcochran@gmail.com>
    Cc: Fugang Duan <b38611@freescale.com>
    Cc: Luwei Zhou <b45643@freescale.com>
    Cc: Frank Li <Frank.Li@freescale.com>
    Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    be7ccdc3
fec_ptp.c 17.6 KB