History

y2038: remove struct definition redirects

We now use 64-bit time_t on all architectures, so the __kernel_timex, __kernel_timeval and __kernel_timespec redirects can be removed after having served their purpose. This makes it all much less confusing, as the __kernel_* types now always refer to the same layout based on 64-bit time_t across all 32-bit and 64-bit architectures.

Arnd Bergmann committed 7 years ago

Commit c70a7721 parent 00bf25d4 files · +0 −21Browse files

Showing the changes to include/linux (2 of 4 files). Show all

Unified · Split

2 files
  1. include/linux/time64.h +0 −8
  2. include/linux/timex.h +0 −7
include/linux/time64.h+0−8
@@ -7,14 +7,6 @@ · 6 unmodified lines
7typedef __s64 time64_t;7typedef __s64 time64_t;
8typedef __u64 timeu64_t;8typedef __u64 timeu64_t;
9 9
10/* CONFIG_64BIT_TIME enables new 64 bit time_t syscalls in the compat path
11 * and 32-bit emulation.
12 */
13#ifndef CONFIG_64BIT_TIME
14#define __kernel_timespec timespec
15#define __kernel_itimerspec itimerspec
16#endif
17
18#include <uapi/linux/time.h>10#include <uapi/linux/time.h>
19 11
20struct timespec64 {12struct timespec64 {
include/linux/timex.h+0−7
@@ -53,13 +53,6 @@ · 52 unmodified lines
53#ifndef _LINUX_TIMEX_H53#ifndef _LINUX_TIMEX_H
54#define _LINUX_TIMEX_H54#define _LINUX_TIMEX_H
55 55
56/* CONFIG_64BIT_TIME enables new 64 bit time_t syscalls in the compat path
57 * and 32-bit emulation.
58 */
59#ifndef CONFIG_64BIT_TIME
60#define __kernel_timex timex
61#endif
62
63#include <uapi/linux/timex.h>56#include <uapi/linux/timex.h>
64 57
65#define ADJ_ADJTIME 0x8000 /* switch between adjtime/adjtimex modes */58#define ADJ_ADJTIME 0x8000 /* switch between adjtime/adjtimex modes */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t