diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-07-02 11:19:04 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-07-12 12:11:43 -0400 |
commit | 6ac5310e649df5fcd240d764503bf16a1317ea39 (patch) | |
tree | 286700815b3f30dc13cc3b2d9980b0244b244d33 /arch/mips/include/uapi | |
parent | 704e6460ab75af0735b1ca7c0dcaa4ff0a4001b2 (diff) | |
parent | 3f90b82df110ef9cb33761b56ca85ae0d0372d4a (diff) |
Merge branch '3.10-fixes' into mips-for-linux-next
This that should have been fixed but weren't, way to much, intrusive
and late.
Diffstat (limited to 'arch/mips/include/uapi')
-rw-r--r-- | arch/mips/include/uapi/asm/fcntl.h | 6 | ||||
-rw-r--r-- | arch/mips/include/uapi/asm/inst.h | 9 | ||||
-rw-r--r-- | arch/mips/include/uapi/asm/msgbuf.h | 12 | ||||
-rw-r--r-- | arch/mips/include/uapi/asm/resource.h | 2 | ||||
-rw-r--r-- | arch/mips/include/uapi/asm/siginfo.h | 4 | ||||
-rw-r--r-- | arch/mips/include/uapi/asm/swab.h | 12 |
6 files changed, 24 insertions, 21 deletions
diff --git a/arch/mips/include/uapi/asm/fcntl.h b/arch/mips/include/uapi/asm/fcntl.h index 314c79b76d2a..6ca432f00860 100644 --- a/arch/mips/include/uapi/asm/fcntl.h +++ b/arch/mips/include/uapi/asm/fcntl.h | |||
@@ -8,6 +8,7 @@ | |||
8 | #ifndef _UAPI_ASM_FCNTL_H | 8 | #ifndef _UAPI_ASM_FCNTL_H |
9 | #define _UAPI_ASM_FCNTL_H | 9 | #define _UAPI_ASM_FCNTL_H |
10 | 10 | ||
11 | #include <asm/sgidefs.h> | ||
11 | 12 | ||
12 | #define O_APPEND 0x0008 | 13 | #define O_APPEND 0x0008 |
13 | #define O_DSYNC 0x0010 /* used to be O_SYNC, see below */ | 14 | #define O_DSYNC 0x0010 /* used to be O_SYNC, see below */ |
@@ -55,7 +56,8 @@ | |||
55 | * contain all the same fields as struct flock. | 56 | * contain all the same fields as struct flock. |
56 | */ | 57 | */ |
57 | 58 | ||
58 | #ifdef CONFIG_32BIT | 59 | #if _MIPS_SIM != _MIPS_SIM_ABI64 |
60 | |||
59 | #include <linux/types.h> | 61 | #include <linux/types.h> |
60 | 62 | ||
61 | struct flock { | 63 | struct flock { |
@@ -70,7 +72,7 @@ struct flock { | |||
70 | 72 | ||
71 | #define HAVE_ARCH_STRUCT_FLOCK | 73 | #define HAVE_ARCH_STRUCT_FLOCK |
72 | 74 | ||
73 | #endif /* CONFIG_32BIT */ | 75 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
74 | 76 | ||
75 | #include <asm-generic/fcntl.h> | 77 | #include <asm-generic/fcntl.h> |
76 | 78 | ||
diff --git a/arch/mips/include/uapi/asm/inst.h b/arch/mips/include/uapi/asm/inst.h index 0f4aec2ad1e6..e5a676e3d3c0 100644 --- a/arch/mips/include/uapi/asm/inst.h +++ b/arch/mips/include/uapi/asm/inst.h | |||
@@ -409,10 +409,11 @@ enum mm_32f_73_minor_op { | |||
409 | enum mm_16c_minor_op { | 409 | enum mm_16c_minor_op { |
410 | mm_lwm16_op = 0x04, | 410 | mm_lwm16_op = 0x04, |
411 | mm_swm16_op = 0x05, | 411 | mm_swm16_op = 0x05, |
412 | mm_jr16_op = 0x18, | 412 | mm_jr16_op = 0x0c, |
413 | mm_jrc_op = 0x1a, | 413 | mm_jrc_op = 0x0d, |
414 | mm_jalr16_op = 0x1c, | 414 | mm_jalr16_op = 0x0e, |
415 | mm_jalrs16_op = 0x1e, | 415 | mm_jalrs16_op = 0x0f, |
416 | mm_jraddiusp_op = 0x18, | ||
416 | }; | 417 | }; |
417 | 418 | ||
418 | /* | 419 | /* |
diff --git a/arch/mips/include/uapi/asm/msgbuf.h b/arch/mips/include/uapi/asm/msgbuf.h index 0d6c7f14de31..df849e87d9ae 100644 --- a/arch/mips/include/uapi/asm/msgbuf.h +++ b/arch/mips/include/uapi/asm/msgbuf.h | |||
@@ -14,25 +14,25 @@ | |||
14 | 14 | ||
15 | struct msqid64_ds { | 15 | struct msqid64_ds { |
16 | struct ipc64_perm msg_perm; | 16 | struct ipc64_perm msg_perm; |
17 | #if defined(CONFIG_32BIT) && !defined(CONFIG_CPU_LITTLE_ENDIAN) | 17 | #if !defined(__mips64) && defined(__MIPSEB__) |
18 | unsigned long __unused1; | 18 | unsigned long __unused1; |
19 | #endif | 19 | #endif |
20 | __kernel_time_t msg_stime; /* last msgsnd time */ | 20 | __kernel_time_t msg_stime; /* last msgsnd time */ |
21 | #if defined(CONFIG_32BIT) && defined(CONFIG_CPU_LITTLE_ENDIAN) | 21 | #if !defined(__mips64) && defined(__MIPSEL__) |
22 | unsigned long __unused1; | 22 | unsigned long __unused1; |
23 | #endif | 23 | #endif |
24 | #if defined(CONFIG_32BIT) && !defined(CONFIG_CPU_LITTLE_ENDIAN) | 24 | #if !defined(__mips64) && defined(__MIPSEB__) |
25 | unsigned long __unused2; | 25 | unsigned long __unused2; |
26 | #endif | 26 | #endif |
27 | __kernel_time_t msg_rtime; /* last msgrcv time */ | 27 | __kernel_time_t msg_rtime; /* last msgrcv time */ |
28 | #if defined(CONFIG_32BIT) && defined(CONFIG_CPU_LITTLE_ENDIAN) | 28 | #if !defined(__mips64) && defined(__MIPSEL__) |
29 | unsigned long __unused2; | 29 | unsigned long __unused2; |
30 | #endif | 30 | #endif |
31 | #if defined(CONFIG_32BIT) && !defined(CONFIG_CPU_LITTLE_ENDIAN) | 31 | #if !defined(__mips64) && defined(__MIPSEB__) |
32 | unsigned long __unused3; | 32 | unsigned long __unused3; |
33 | #endif | 33 | #endif |
34 | __kernel_time_t msg_ctime; /* last change time */ | 34 | __kernel_time_t msg_ctime; /* last change time */ |
35 | #if defined(CONFIG_32BIT) && defined(CONFIG_CPU_LITTLE_ENDIAN) | 35 | #if !defined(__mips64) && defined(__MIPSEL__) |
36 | unsigned long __unused3; | 36 | unsigned long __unused3; |
37 | #endif | 37 | #endif |
38 | unsigned long msg_cbytes; /* current number of bytes on queue */ | 38 | unsigned long msg_cbytes; /* current number of bytes on queue */ |
diff --git a/arch/mips/include/uapi/asm/resource.h b/arch/mips/include/uapi/asm/resource.h index 87cb3085269c..b26439d4ab0b 100644 --- a/arch/mips/include/uapi/asm/resource.h +++ b/arch/mips/include/uapi/asm/resource.h | |||
@@ -26,7 +26,7 @@ | |||
26 | * but we keep the old value on MIPS32, | 26 | * but we keep the old value on MIPS32, |
27 | * for compatibility: | 27 | * for compatibility: |
28 | */ | 28 | */ |
29 | #ifdef CONFIG_32BIT | 29 | #ifndef __mips64 |
30 | # define RLIM_INFINITY 0x7fffffffUL | 30 | # define RLIM_INFINITY 0x7fffffffUL |
31 | #endif | 31 | #endif |
32 | 32 | ||
diff --git a/arch/mips/include/uapi/asm/siginfo.h b/arch/mips/include/uapi/asm/siginfo.h index 6a8714193fb9..b7a23064841f 100644 --- a/arch/mips/include/uapi/asm/siginfo.h +++ b/arch/mips/include/uapi/asm/siginfo.h | |||
@@ -25,10 +25,10 @@ struct siginfo; | |||
25 | /* | 25 | /* |
26 | * Careful to keep union _sifields from shifting ... | 26 | * Careful to keep union _sifields from shifting ... |
27 | */ | 27 | */ |
28 | #ifdef CONFIG_32BIT | 28 | #if __SIZEOF_LONG__ == 4 |
29 | #define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int)) | 29 | #define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int)) |
30 | #endif | 30 | #endif |
31 | #ifdef CONFIG_64BIT | 31 | #if __SIZEOF_LONG__ == 8 |
32 | #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) | 32 | #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) |
33 | #endif | 33 | #endif |
34 | 34 | ||
diff --git a/arch/mips/include/uapi/asm/swab.h b/arch/mips/include/uapi/asm/swab.h index 97c2f81b4b43..ac9a8f9cd1fb 100644 --- a/arch/mips/include/uapi/asm/swab.h +++ b/arch/mips/include/uapi/asm/swab.h | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | #define __SWAB_64_THRU_32__ | 14 | #define __SWAB_64_THRU_32__ |
15 | 15 | ||
16 | #ifdef CONFIG_CPU_MIPSR2 | 16 | #if defined(__mips_isa_rev) && (__mips_isa_rev >= 2) |
17 | 17 | ||
18 | static inline __attribute_const__ __u16 __arch_swab16(__u16 x) | 18 | static inline __attribute_const__ __u16 __arch_swab16(__u16 x) |
19 | { | 19 | { |
@@ -39,10 +39,10 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x) | |||
39 | #define __arch_swab32 __arch_swab32 | 39 | #define __arch_swab32 __arch_swab32 |
40 | 40 | ||
41 | /* | 41 | /* |
42 | * Having already checked for CONFIG_CPU_MIPSR2, enable the | 42 | * Having already checked for MIPS R2, enable the optimized version for |
43 | * optimized version for 64-bit kernel on r2 CPUs. | 43 | * 64-bit kernel on r2 CPUs. |
44 | */ | 44 | */ |
45 | #ifdef CONFIG_64BIT | 45 | #ifdef __mips64 |
46 | static inline __attribute_const__ __u64 __arch_swab64(__u64 x) | 46 | static inline __attribute_const__ __u64 __arch_swab64(__u64 x) |
47 | { | 47 | { |
48 | __asm__( | 48 | __asm__( |
@@ -54,6 +54,6 @@ static inline __attribute_const__ __u64 __arch_swab64(__u64 x) | |||
54 | return x; | 54 | return x; |
55 | } | 55 | } |
56 | #define __arch_swab64 __arch_swab64 | 56 | #define __arch_swab64 __arch_swab64 |
57 | #endif /* CONFIG_64BIT */ | 57 | #endif /* __mips64 */ |
58 | #endif /* CONFIG_CPU_MIPSR2 */ | 58 | #endif /* MIPS R2 or newer */ |
59 | #endif /* _ASM_SWAB_H */ | 59 | #endif /* _ASM_SWAB_H */ |