aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-10-25 14:14:36 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-10-25 14:14:36 -0400
commit4dcb9239dad6cee17c538482619a5b659774ee51 (patch)
treeb2a98a00eb4e419fb363f49f179c4cbd7b5b7c87 /arch/sparc
parent3acbd2de6bc3af215c6ed7732dfc097d1e238503 (diff)
parentd59e0ba19481c0046d2ea2bd0e5344eeaf45aace (diff)
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timekeeping updates from Thomas Gleixner: "The timers and timekeeping departement provides: - Another large y2038 update with further preparations for providing the y2038 safe timespecs closer to the syscalls. - An overhaul of the SHCMT clocksource driver - SPDX license identifier updates - Small cleanups and fixes all over the place" * 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (31 commits) tick/sched : Remove redundant cpu_online() check clocksource/drivers/dw_apb: Add reset control clocksource: Remove obsolete CLOCKSOURCE_OF_DECLARE clocksource/drivers: Unify the names to timer-* format clocksource/drivers/sh_cmt: Add R-Car gen3 support dt-bindings: timer: renesas: cmt: document R-Car gen3 support clocksource/drivers/sh_cmt: Properly line-wrap sh_cmt_of_table[] initializer clocksource/drivers/sh_cmt: Fix clocksource width for 32-bit machines clocksource/drivers/sh_cmt: Fixup for 64-bit machines clocksource/drivers/sh_tmu: Convert to SPDX identifiers clocksource/drivers/sh_mtu2: Convert to SPDX identifiers clocksource/drivers/sh_cmt: Convert to SPDX identifiers clocksource/drivers/renesas-ostm: Convert to SPDX identifiers clocksource: Convert to using %pOFn instead of device_node.name tick/broadcast: Remove redundant check RISC-V: Request newstat syscalls y2038: signal: Change rt_sigtimedwait to use __kernel_timespec y2038: socket: Change recvmmsg to use __kernel_timespec y2038: sched: Change sched_rr_get_interval to use __kernel_timespec y2038: utimes: Rework #ifdef guards for compat syscalls ...
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/asm/compat.h25
-rw-r--r--arch/sparc/include/asm/unistd.h3
2 files changed, 7 insertions, 21 deletions
diff --git a/arch/sparc/include/asm/compat.h b/arch/sparc/include/asm/compat.h
index 4eb51d2dae98..30b1763580b1 100644
--- a/arch/sparc/include/asm/compat.h
+++ b/arch/sparc/include/asm/compat.h
@@ -6,38 +6,23 @@
6 */ 6 */
7#include <linux/types.h> 7#include <linux/types.h>
8 8
9#include <asm-generic/compat.h>
10
9#define COMPAT_USER_HZ 100 11#define COMPAT_USER_HZ 100
10#define COMPAT_UTS_MACHINE "sparc\0\0" 12#define COMPAT_UTS_MACHINE "sparc\0\0"
11 13
12typedef u32 compat_size_t;
13typedef s32 compat_ssize_t;
14typedef s32 compat_clock_t;
15typedef s32 compat_pid_t;
16typedef u16 __compat_uid_t; 14typedef u16 __compat_uid_t;
17typedef u16 __compat_gid_t; 15typedef u16 __compat_gid_t;
18typedef u32 __compat_uid32_t; 16typedef u32 __compat_uid32_t;
19typedef u32 __compat_gid32_t; 17typedef u32 __compat_gid32_t;
20typedef u16 compat_mode_t; 18typedef u16 compat_mode_t;
21typedef u32 compat_ino_t;
22typedef u16 compat_dev_t; 19typedef u16 compat_dev_t;
23typedef s32 compat_off_t;
24typedef s64 compat_loff_t;
25typedef s16 compat_nlink_t; 20typedef s16 compat_nlink_t;
26typedef u16 compat_ipc_pid_t; 21typedef u16 compat_ipc_pid_t;
27typedef s32 compat_daddr_t;
28typedef u32 compat_caddr_t; 22typedef u32 compat_caddr_t;
29typedef __kernel_fsid_t compat_fsid_t; 23typedef __kernel_fsid_t compat_fsid_t;
30typedef s32 compat_key_t;
31typedef s32 compat_timer_t;
32
33typedef s32 compat_int_t;
34typedef s32 compat_long_t;
35typedef s64 compat_s64; 24typedef s64 compat_s64;
36typedef u32 compat_uint_t;
37typedef u32 compat_ulong_t;
38typedef u64 compat_u64; 25typedef u64 compat_u64;
39typedef u32 compat_uptr_t;
40
41struct compat_stat { 26struct compat_stat {
42 compat_dev_t st_dev; 27 compat_dev_t st_dev;
43 compat_ino_t st_ino; 28 compat_ino_t st_ino;
@@ -47,11 +32,11 @@ struct compat_stat {
47 __compat_gid_t st_gid; 32 __compat_gid_t st_gid;
48 compat_dev_t st_rdev; 33 compat_dev_t st_rdev;
49 compat_off_t st_size; 34 compat_off_t st_size;
50 compat_time_t st_atime; 35 old_time32_t st_atime;
51 compat_ulong_t st_atime_nsec; 36 compat_ulong_t st_atime_nsec;
52 compat_time_t st_mtime; 37 old_time32_t st_mtime;
53 compat_ulong_t st_mtime_nsec; 38 compat_ulong_t st_mtime_nsec;
54 compat_time_t st_ctime; 39 old_time32_t st_ctime;
55 compat_ulong_t st_ctime_nsec; 40 compat_ulong_t st_ctime_nsec;
56 compat_off_t st_blksize; 41 compat_off_t st_blksize;
57 compat_off_t st_blocks; 42 compat_off_t st_blocks;
diff --git a/arch/sparc/include/asm/unistd.h b/arch/sparc/include/asm/unistd.h
index b2a6a955113e..00f87dbd0b17 100644
--- a/arch/sparc/include/asm/unistd.h
+++ b/arch/sparc/include/asm/unistd.h
@@ -21,6 +21,7 @@
21#else 21#else
22#define __NR_time 231 /* Linux sparc32 */ 22#define __NR_time 231 /* Linux sparc32 */
23#endif 23#endif
24#define __ARCH_WANT_NEW_STAT
24#define __ARCH_WANT_OLD_READDIR 25#define __ARCH_WANT_OLD_READDIR
25#define __ARCH_WANT_STAT64 26#define __ARCH_WANT_STAT64
26#define __ARCH_WANT_SYS_ALARM 27#define __ARCH_WANT_SYS_ALARM
@@ -33,7 +34,6 @@
33#define __ARCH_WANT_SYS_SOCKETCALL 34#define __ARCH_WANT_SYS_SOCKETCALL
34#define __ARCH_WANT_SYS_FADVISE64 35#define __ARCH_WANT_SYS_FADVISE64
35#define __ARCH_WANT_SYS_GETPGRP 36#define __ARCH_WANT_SYS_GETPGRP
36#define __ARCH_WANT_SYS_LLSEEK
37#define __ARCH_WANT_SYS_NICE 37#define __ARCH_WANT_SYS_NICE
38#define __ARCH_WANT_SYS_OLDUMOUNT 38#define __ARCH_WANT_SYS_OLDUMOUNT
39#define __ARCH_WANT_SYS_SIGPENDING 39#define __ARCH_WANT_SYS_SIGPENDING
@@ -42,6 +42,7 @@
42#define __ARCH_WANT_SYS_IPC 42#define __ARCH_WANT_SYS_IPC
43#else 43#else
44#define __ARCH_WANT_COMPAT_SYS_TIME 44#define __ARCH_WANT_COMPAT_SYS_TIME
45#define __ARCH_WANT_SYS_UTIME32
45#define __ARCH_WANT_COMPAT_SYS_SENDFILE 46#define __ARCH_WANT_COMPAT_SYS_SENDFILE
46#endif 47#endif
47 48