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.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#ifndef _UAPI_ASM_FCNTL_H
|
||||
#define _UAPI_ASM_FCNTL_H
|
||||
|
||||
#include <asm/sgidefs.h>
|
||||
|
||||
#define O_APPEND 0x0008
|
||||
#define O_DSYNC 0x0010 /* used to be O_SYNC, see below */
|
||||
@@ -55,7 +56,8 @@
|
||||
* contain all the same fields as struct flock.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_32BIT
|
||||
#if _MIPS_SIM != _MIPS_SIM_ABI64
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
struct flock {
|
||||
@@ -70,7 +72,7 @@ struct flock {
|
||||
|
||||
#define HAVE_ARCH_STRUCT_FLOCK
|
||||
|
||||
#endif /* CONFIG_32BIT */
|
||||
#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
|
||||
|
||||
#include <asm-generic/fcntl.h>
|
||||
|
||||
|
||||
@@ -409,10 +409,11 @@ enum mm_32f_73_minor_op {
|
||||
enum mm_16c_minor_op {
|
||||
mm_lwm16_op = 0x04,
|
||||
mm_swm16_op = 0x05,
|
||||
mm_jr16_op = 0x18,
|
||||
mm_jrc_op = 0x1a,
|
||||
mm_jalr16_op = 0x1c,
|
||||
mm_jalrs16_op = 0x1e,
|
||||
mm_jr16_op = 0x0c,
|
||||
mm_jrc_op = 0x0d,
|
||||
mm_jalr16_op = 0x0e,
|
||||
mm_jalrs16_op = 0x0f,
|
||||
mm_jraddiusp_op = 0x18,
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -14,25 +14,25 @@
|
||||
|
||||
struct msqid64_ds {
|
||||
struct ipc64_perm msg_perm;
|
||||
#if defined(CONFIG_32BIT) && !defined(CONFIG_CPU_LITTLE_ENDIAN)
|
||||
#if !defined(__mips64) && defined(__MIPSEB__)
|
||||
unsigned long __unused1;
|
||||
#endif
|
||||
__kernel_time_t msg_stime; /* last msgsnd time */
|
||||
#if defined(CONFIG_32BIT) && defined(CONFIG_CPU_LITTLE_ENDIAN)
|
||||
#if !defined(__mips64) && defined(__MIPSEL__)
|
||||
unsigned long __unused1;
|
||||
#endif
|
||||
#if defined(CONFIG_32BIT) && !defined(CONFIG_CPU_LITTLE_ENDIAN)
|
||||
#if !defined(__mips64) && defined(__MIPSEB__)
|
||||
unsigned long __unused2;
|
||||
#endif
|
||||
__kernel_time_t msg_rtime; /* last msgrcv time */
|
||||
#if defined(CONFIG_32BIT) && defined(CONFIG_CPU_LITTLE_ENDIAN)
|
||||
#if !defined(__mips64) && defined(__MIPSEL__)
|
||||
unsigned long __unused2;
|
||||
#endif
|
||||
#if defined(CONFIG_32BIT) && !defined(CONFIG_CPU_LITTLE_ENDIAN)
|
||||
#if !defined(__mips64) && defined(__MIPSEB__)
|
||||
unsigned long __unused3;
|
||||
#endif
|
||||
__kernel_time_t msg_ctime; /* last change time */
|
||||
#if defined(CONFIG_32BIT) && defined(CONFIG_CPU_LITTLE_ENDIAN)
|
||||
#if !defined(__mips64) && defined(__MIPSEL__)
|
||||
unsigned long __unused3;
|
||||
#endif
|
||||
unsigned long msg_cbytes; /* current number of bytes on queue */
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* but we keep the old value on MIPS32,
|
||||
* for compatibility:
|
||||
*/
|
||||
#ifdef CONFIG_32BIT
|
||||
#ifndef __mips64
|
||||
# define RLIM_INFINITY 0x7fffffffUL
|
||||
#endif
|
||||
|
||||
|
||||
@@ -25,10 +25,10 @@ struct siginfo;
|
||||
/*
|
||||
* Careful to keep union _sifields from shifting ...
|
||||
*/
|
||||
#ifdef CONFIG_32BIT
|
||||
#if __SIZEOF_LONG__ == 4
|
||||
#define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int))
|
||||
#endif
|
||||
#ifdef CONFIG_64BIT
|
||||
#if __SIZEOF_LONG__ == 8
|
||||
#define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
|
||||
#endif
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#define __SWAB_64_THRU_32__
|
||||
|
||||
#ifdef CONFIG_CPU_MIPSR2
|
||||
#if defined(__mips_isa_rev) && (__mips_isa_rev >= 2)
|
||||
|
||||
static inline __attribute_const__ __u16 __arch_swab16(__u16 x)
|
||||
{
|
||||
@@ -39,10 +39,10 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
|
||||
#define __arch_swab32 __arch_swab32
|
||||
|
||||
/*
|
||||
* Having already checked for CONFIG_CPU_MIPSR2, enable the
|
||||
* optimized version for 64-bit kernel on r2 CPUs.
|
||||
* Having already checked for MIPS R2, enable the optimized version for
|
||||
* 64-bit kernel on r2 CPUs.
|
||||
*/
|
||||
#ifdef CONFIG_64BIT
|
||||
#ifdef __mips64
|
||||
static inline __attribute_const__ __u64 __arch_swab64(__u64 x)
|
||||
{
|
||||
__asm__(
|
||||
@@ -54,6 +54,6 @@ static inline __attribute_const__ __u64 __arch_swab64(__u64 x)
|
||||
return x;
|
||||
}
|
||||
#define __arch_swab64 __arch_swab64
|
||||
#endif /* CONFIG_64BIT */
|
||||
#endif /* CONFIG_CPU_MIPSR2 */
|
||||
#endif /* __mips64 */
|
||||
#endif /* MIPS R2 or newer */
|
||||
#endif /* _ASM_SWAB_H */
|
||||
|
||||
Reference in New Issue
Block a user