Skip to content

Introduce struct __kernel_timex

Deepa Dinamani linux-alpha linux-api linux-arch linux-riscv lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 12 repliesIn review
  2. v27 patches 8 repliesSuperseded
  3. v16 patches 5 repliesSuperseded

Changes in v3 from the cover letter

* Use only generic compat.h for riscv

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7arm64: Make basic compat_* types always availablearch/arm64/include/asm/compat.h+12 -101 reply
2/7sparc: Make thread_info.h available directlyarch/sparc/include/asm/compat.h+2 -00 replies
3/7riscv: Delete asm/compat.harch/riscv/include/asm/Kbuild arch/riscv/include/asm/compat.h+1 -294 replies
4/7timex: prepare compat helpers for y2038 changesinclude/asm-generic/compat.h include/linux/compat.h include/linux/compat_time.h +2 more+104 -970 replies
5/7time: Add struct __kernel_timexinclude/linux/timex.h include/uapi/linux/timex.h+48 -03 replies
6/7timex: use __kernel_timex internallyarch/alpha/kernel/osf_sys.c drivers/ptp/ptp_clock.c include/linux/compat_time.h +9 more+28 -262 replies
7/7timex: change syscalls to use struct __kernel_timexinclude/linux/syscalls.h kernel/time/posix-timers.c kernel/time/time.c+10 -142 replies

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchDavid S. MillerRichard HendersonChristoph Hellwig
1/7
2/7A-b
3/7R-b
4/7
5/7
6/7A-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/7] Introduce struct __kernel_timex

The series introduces struct __kernel_timex as a substitute for the non y2038 safe struct timex.

The series is based on the original series posted by Arnd Bergmann in [1].

The overview of the series is as below:
1. Prepare for the compat timex interfaces to be used unconditionally.
2. Introduce struct __kernel_timex.
3. Use struct __kernel_timex in place of struct timex.
4. Switch syscalls to use struct __kernel_timex.

[1] https://sourceware.org/ml/libc-alpha/2015-05/msg00070.html

Changes since v2:
* Use only generic compat.h for riscv
Changes since v1:
* Fix riscv asm/compat.h to pick up generic compat types

Deepa Dinamani (7):
arm64: Make basic compat_* types always available
sparc: Make thread_info.h available directly
riscv: Delete asm/compat.h
timex: prepare compat helpers for y2038 changes
time: Add struct __kernel_timex
timex: use __kernel_timex internally
timex: change syscalls to use struct __kernel_timex

 arch/alpha/kernel/osf_sys.c     |  2 +-
 arch/arm64/include/asm/compat.h | 22 ++++-----
 arch/riscv/include/asm/Kbuild   |  1 +
 arch/riscv/include/asm/compat.h | 29 ------------
 arch/sparc/include/asm/compat.h |  2 +
 drivers/ptp/ptp_clock.c         |  2 +-
 include/asm-generic/compat.h    |  8 +++-
 include/linux/compat.h          | 33 --------------
 include/linux/compat_time.h     | 34 ++++++++++++++
 include/linux/posix-clock.h     |  2 +-
 include/linux/syscalls.h        |  5 +--
 include/linux/timex.h           |  9 +++-
 include/uapi/linux/timex.h      | 41 +++++++++++++++++
 kernel/compat.c                 | 63 --------------------------
 kernel/time/ntp.c               | 12 ++---
 kernel/time/ntp_internal.h      |  2 +-
 kernel/time/posix-clock.c       |  2 +-
 kernel/time/posix-timers.c      | 14 ++----
 kernel/time/posix-timers.h      |  2 +-
 kernel/time/time.c              | 80 ++++++++++++++++++++++++++++++---
 kernel/time/timekeeping.c       |  4 +-
 21 files changed, 199 insertions(+), 170 deletions(-)
 delete mode 100644 arch/riscv/include/asm/compat.h

base-commit: 526674536360a4c508e84f67314c2028e45e1bf2

Signature · 14 lines
2.17.1

Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
_______________________________________________
Y2038 mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/y2038