1
0
Fork 0
alistair23-linux/arch
Deepa Dinamani ead25417f8 timex: use __kernel_timex internally
struct timex is not y2038 safe.
Replace all uses of timex with y2038 safe __kernel_timex.

Note that struct __kernel_timex is an ABI interface definition.
We could define a new structure based on __kernel_timex that
is only available internally instead. Right now, there isn't
a strong motivation for this as the structure is isolated to
a few defined struct timex interfaces and such a structure would
be exactly the same as struct timex.

The patch was generated by the following coccinelle script:

virtual patch

@depends on patch forall@
identifier ts;
expression e;
@@
(
- struct timex ts;
+ struct __kernel_timex ts;
|
- struct timex ts = {};
+ struct __kernel_timex ts = {};
|
- struct timex ts = e;
+ struct __kernel_timex ts = e;
|
- struct timex *ts;
+ struct __kernel_timex *ts;
|
(memset \| copy_from_user \| copy_to_user \)(...,
- sizeof(struct timex))
+ sizeof(struct __kernel_timex))
)

@depends on patch forall@
identifier ts;
identifier fn;
@@
fn(...,
- struct timex *ts,
+ struct __kernel_timex *ts,
...) {
...
}

@depends on patch forall@
identifier ts;
identifier fn;
@@
fn(...,
- struct timex *ts) {
+ struct __kernel_timex *ts) {
...
}

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: linux-alpha@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2019-02-07 00:13:27 +01:00
..
alpha timex: use __kernel_timex internally 2019-02-07 00:13:27 +01:00
arc arch: remove redundant UAPI generic-y defines 2019-01-06 10:22:15 +09:00
arm ipc: rename old-style shmctl/semctl/msgctl syscalls 2019-01-25 17:22:50 +01:00
arm64 ipc: rename old-style shmctl/semctl/msgctl syscalls 2019-01-25 17:22:50 +01:00
c6x arch: restore generic-y += shmparam.h for some architectures 2019-01-06 18:16:11 -08:00
csky csky: fixup compile error with CPU 810. 2019-01-10 04:37:37 -08:00
h8300 arch: restore generic-y += shmparam.h for some architectures 2019-01-06 18:16:11 -08:00
hexagon arch: restore generic-y += shmparam.h for some architectures 2019-01-06 18:16:11 -08:00
ia64 arch: add pkey and rseq syscall numbers everywhere 2019-01-25 17:22:50 +01:00
m68k arch: add pkey and rseq syscall numbers everywhere 2019-01-25 17:22:50 +01:00
microblaze ipc: rename old-style shmctl/semctl/msgctl syscalls 2019-01-25 17:22:50 +01:00
mips syscalls: remove obsolete __IGNORE_ macros 2019-02-07 00:13:27 +01:00
nds32 arch: remove redundant UAPI generic-y defines 2019-01-06 10:22:15 +09:00
nios2 arch: remove redundant UAPI generic-y defines 2019-01-06 10:22:15 +09:00
openrisc arch/openrisc: Fix issues with access_ok() 2019-01-08 18:22:30 -08:00
parisc syscalls: remove obsolete __IGNORE_ macros 2019-02-07 00:13:27 +01:00
powerpc arch: add split IPC system calls where needed 2019-01-25 17:22:50 +01:00
riscv Fix a handful of audit-related issue 2019-01-07 08:45:47 -08:00
s390 syscalls: remove obsolete __IGNORE_ macros 2019-02-07 00:13:27 +01:00
sh arch: add pkey and rseq syscall numbers everywhere 2019-01-25 17:22:50 +01:00
sparc timex: use __kernel_timex internally 2019-02-07 00:13:27 +01:00
um Merge branch 'akpm' (patches from Andrew) 2019-01-05 09:16:18 -08:00
unicore32 arch: restore generic-y += shmparam.h for some architectures 2019-01-06 18:16:11 -08:00
x86 arch: add split IPC system calls where needed 2019-01-25 17:22:50 +01:00
xtensa syscalls: remove obsolete __IGNORE_ macros 2019-02-07 00:13:27 +01:00
.gitignore
Kconfig jump_label: move 'asm goto' support test to Kconfig 2019-01-06 09:46:51 +09:00