diff options
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/byteorder/big_endian.h | 24 | ||||
| -rw-r--r-- | include/uapi/linux/byteorder/little_endian.h | 24 | ||||
| -rw-r--r-- | include/uapi/linux/elf-em.h | 3 | ||||
| -rw-r--r-- | include/uapi/linux/swab.h | 10 | ||||
| -rw-r--r-- | include/uapi/linux/virtio_balloon.h | 3 |
5 files changed, 31 insertions, 33 deletions
diff --git a/include/uapi/linux/byteorder/big_endian.h b/include/uapi/linux/byteorder/big_endian.h index 672374450095..cdab17ab907c 100644 --- a/include/uapi/linux/byteorder/big_endian.h +++ b/include/uapi/linux/byteorder/big_endian.h | |||
| @@ -40,51 +40,51 @@ | |||
| 40 | #define __cpu_to_be16(x) ((__force __be16)(__u16)(x)) | 40 | #define __cpu_to_be16(x) ((__force __be16)(__u16)(x)) |
| 41 | #define __be16_to_cpu(x) ((__force __u16)(__be16)(x)) | 41 | #define __be16_to_cpu(x) ((__force __u16)(__be16)(x)) |
| 42 | 42 | ||
| 43 | static inline __le64 __cpu_to_le64p(const __u64 *p) | 43 | static __always_inline __le64 __cpu_to_le64p(const __u64 *p) |
| 44 | { | 44 | { |
| 45 | return (__force __le64)__swab64p(p); | 45 | return (__force __le64)__swab64p(p); |
| 46 | } | 46 | } |
| 47 | static inline __u64 __le64_to_cpup(const __le64 *p) | 47 | static __always_inline __u64 __le64_to_cpup(const __le64 *p) |
| 48 | { | 48 | { |
| 49 | return __swab64p((__u64 *)p); | 49 | return __swab64p((__u64 *)p); |
| 50 | } | 50 | } |
| 51 | static inline __le32 __cpu_to_le32p(const __u32 *p) | 51 | static __always_inline __le32 __cpu_to_le32p(const __u32 *p) |
| 52 | { | 52 | { |
| 53 | return (__force __le32)__swab32p(p); | 53 | return (__force __le32)__swab32p(p); |
| 54 | } | 54 | } |
| 55 | static inline __u32 __le32_to_cpup(const __le32 *p) | 55 | static __always_inline __u32 __le32_to_cpup(const __le32 *p) |
| 56 | { | 56 | { |
| 57 | return __swab32p((__u32 *)p); | 57 | return __swab32p((__u32 *)p); |
| 58 | } | 58 | } |
| 59 | static inline __le16 __cpu_to_le16p(const __u16 *p) | 59 | static __always_inline __le16 __cpu_to_le16p(const __u16 *p) |
| 60 | { | 60 | { |
| 61 | return (__force __le16)__swab16p(p); | 61 | return (__force __le16)__swab16p(p); |
| 62 | } | 62 | } |
| 63 | static inline __u16 __le16_to_cpup(const __le16 *p) | 63 | static __always_inline __u16 __le16_to_cpup(const __le16 *p) |
| 64 | { | 64 | { |
| 65 | return __swab16p((__u16 *)p); | 65 | return __swab16p((__u16 *)p); |
| 66 | } | 66 | } |
| 67 | static inline __be64 __cpu_to_be64p(const __u64 *p) | 67 | static __always_inline __be64 __cpu_to_be64p(const __u64 *p) |
| 68 | { | 68 | { |
| 69 | return (__force __be64)*p; | 69 | return (__force __be64)*p; |
| 70 | } | 70 | } |
| 71 | static inline __u64 __be64_to_cpup(const __be64 *p) | 71 | static __always_inline __u64 __be64_to_cpup(const __be64 *p) |
| 72 | { | 72 | { |
| 73 | return (__force __u64)*p; | 73 | return (__force __u64)*p; |
| 74 | } | 74 | } |
| 75 | static inline __be32 __cpu_to_be32p(const __u32 *p) | 75 | static __always_inline __be32 __cpu_to_be32p(const __u32 *p) |
| 76 | { | 76 | { |
| 77 | return (__force __be32)*p; | 77 | return (__force __be32)*p; |
| 78 | } | 78 | } |
| 79 | static inline __u32 __be32_to_cpup(const __be32 *p) | 79 | static __always_inline __u32 __be32_to_cpup(const __be32 *p) |
| 80 | { | 80 | { |
| 81 | return (__force __u32)*p; | 81 | return (__force __u32)*p; |
| 82 | } | 82 | } |
| 83 | static inline __be16 __cpu_to_be16p(const __u16 *p) | 83 | static __always_inline __be16 __cpu_to_be16p(const __u16 *p) |
| 84 | { | 84 | { |
| 85 | return (__force __be16)*p; | 85 | return (__force __be16)*p; |
| 86 | } | 86 | } |
| 87 | static inline __u16 __be16_to_cpup(const __be16 *p) | 87 | static __always_inline __u16 __be16_to_cpup(const __be16 *p) |
| 88 | { | 88 | { |
| 89 | return (__force __u16)*p; | 89 | return (__force __u16)*p; |
| 90 | } | 90 | } |
diff --git a/include/uapi/linux/byteorder/little_endian.h b/include/uapi/linux/byteorder/little_endian.h index d876736a0017..4b93f2b260dd 100644 --- a/include/uapi/linux/byteorder/little_endian.h +++ b/include/uapi/linux/byteorder/little_endian.h | |||
| @@ -40,51 +40,51 @@ | |||
| 40 | #define __cpu_to_be16(x) ((__force __be16)__swab16((x))) | 40 | #define __cpu_to_be16(x) ((__force __be16)__swab16((x))) |
| 41 | #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x)) | 41 | #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x)) |
| 42 | 42 | ||
| 43 | static inline __le64 __cpu_to_le64p(const __u64 *p) | 43 | static __always_inline __le64 __cpu_to_le64p(const __u64 *p) |
| 44 | { | 44 | { |
| 45 | return (__force __le64)*p; | 45 | return (__force __le64)*p; |
| 46 | } | 46 | } |
| 47 | static inline __u64 __le64_to_cpup(const __le64 *p) | 47 | static __always_inline __u64 __le64_to_cpup(const __le64 *p) |
| 48 | { | 48 | { |
| 49 | return (__force __u64)*p; | 49 | return (__force __u64)*p; |
| 50 | } | 50 | } |
| 51 | static inline __le32 __cpu_to_le32p(const __u32 *p) | 51 | static __always_inline __le32 __cpu_to_le32p(const __u32 *p) |
| 52 | { | 52 | { |
| 53 | return (__force __le32)*p; | 53 | return (__force __le32)*p; |
| 54 | } | 54 | } |
| 55 | static inline __u32 __le32_to_cpup(const __le32 *p) | 55 | static __always_inline __u32 __le32_to_cpup(const __le32 *p) |
| 56 | { | 56 | { |
| 57 | return (__force __u32)*p; | 57 | return (__force __u32)*p; |
| 58 | } | 58 | } |
| 59 | static inline __le16 __cpu_to_le16p(const __u16 *p) | 59 | static __always_inline __le16 __cpu_to_le16p(const __u16 *p) |
| 60 | { | 60 | { |
| 61 | return (__force __le16)*p; | 61 | return (__force __le16)*p; |
| 62 | } | 62 | } |
| 63 | static inline __u16 __le16_to_cpup(const __le16 *p) | 63 | static __always_inline __u16 __le16_to_cpup(const __le16 *p) |
| 64 | { | 64 | { |
| 65 | return (__force __u16)*p; | 65 | return (__force __u16)*p; |
| 66 | } | 66 | } |
| 67 | static inline __be64 __cpu_to_be64p(const __u64 *p) | 67 | static __always_inline __be64 __cpu_to_be64p(const __u64 *p) |
| 68 | { | 68 | { |
| 69 | return (__force __be64)__swab64p(p); | 69 | return (__force __be64)__swab64p(p); |
| 70 | } | 70 | } |
| 71 | static inline __u64 __be64_to_cpup(const __be64 *p) | 71 | static __always_inline __u64 __be64_to_cpup(const __be64 *p) |
| 72 | { | 72 | { |
| 73 | return __swab64p((__u64 *)p); | 73 | return __swab64p((__u64 *)p); |
| 74 | } | 74 | } |
| 75 | static inline __be32 __cpu_to_be32p(const __u32 *p) | 75 | static __always_inline __be32 __cpu_to_be32p(const __u32 *p) |
| 76 | { | 76 | { |
| 77 | return (__force __be32)__swab32p(p); | 77 | return (__force __be32)__swab32p(p); |
| 78 | } | 78 | } |
| 79 | static inline __u32 __be32_to_cpup(const __be32 *p) | 79 | static __always_inline __u32 __be32_to_cpup(const __be32 *p) |
| 80 | { | 80 | { |
| 81 | return __swab32p((__u32 *)p); | 81 | return __swab32p((__u32 *)p); |
| 82 | } | 82 | } |
| 83 | static inline __be16 __cpu_to_be16p(const __u16 *p) | 83 | static __always_inline __be16 __cpu_to_be16p(const __u16 *p) |
| 84 | { | 84 | { |
| 85 | return (__force __be16)__swab16p(p); | 85 | return (__force __be16)__swab16p(p); |
| 86 | } | 86 | } |
| 87 | static inline __u16 __be16_to_cpup(const __be16 *p) | 87 | static __always_inline __u16 __be16_to_cpup(const __be16 *p) |
| 88 | { | 88 | { |
| 89 | return __swab16p((__u16 *)p); | 89 | return __swab16p((__u16 *)p); |
| 90 | } | 90 | } |
diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index b56dfcfe922a..c3fdfe79e5cc 100644 --- a/include/uapi/linux/elf-em.h +++ b/include/uapi/linux/elf-em.h | |||
| @@ -30,7 +30,6 @@ | |||
| 30 | #define EM_X86_64 62 /* AMD x86-64 */ | 30 | #define EM_X86_64 62 /* AMD x86-64 */ |
| 31 | #define EM_S390 22 /* IBM S/390 */ | 31 | #define EM_S390 22 /* IBM S/390 */ |
| 32 | #define EM_CRIS 76 /* Axis Communications 32-bit embedded processor */ | 32 | #define EM_CRIS 76 /* Axis Communications 32-bit embedded processor */ |
| 33 | #define EM_V850 87 /* NEC v850 */ | ||
| 34 | #define EM_M32R 88 /* Renesas M32R */ | 33 | #define EM_M32R 88 /* Renesas M32R */ |
| 35 | #define EM_MN10300 89 /* Panasonic/MEI MN10300, AM33 */ | 34 | #define EM_MN10300 89 /* Panasonic/MEI MN10300, AM33 */ |
| 36 | #define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */ | 35 | #define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */ |
| @@ -50,8 +49,6 @@ | |||
| 50 | */ | 49 | */ |
| 51 | #define EM_ALPHA 0x9026 | 50 | #define EM_ALPHA 0x9026 |
| 52 | 51 | ||
| 53 | /* Bogus old v850 magic number, used by old tools. */ | ||
| 54 | #define EM_CYGNUS_V850 0x9080 | ||
| 55 | /* Bogus old m32r magic number, used by old tools. */ | 52 | /* Bogus old m32r magic number, used by old tools. */ |
| 56 | #define EM_CYGNUS_M32R 0x9041 | 53 | #define EM_CYGNUS_M32R 0x9041 |
| 57 | /* This is the old interim value for S/390 architecture */ | 54 | /* This is the old interim value for S/390 architecture */ |
diff --git a/include/uapi/linux/swab.h b/include/uapi/linux/swab.h index 0e011eb91b5d..3f10e5317b46 100644 --- a/include/uapi/linux/swab.h +++ b/include/uapi/linux/swab.h | |||
| @@ -151,7 +151,7 @@ static inline __attribute_const__ __u32 __fswahb32(__u32 val) | |||
| 151 | * __swab16p - return a byteswapped 16-bit value from a pointer | 151 | * __swab16p - return a byteswapped 16-bit value from a pointer |
| 152 | * @p: pointer to a naturally-aligned 16-bit value | 152 | * @p: pointer to a naturally-aligned 16-bit value |
| 153 | */ | 153 | */ |
| 154 | static inline __u16 __swab16p(const __u16 *p) | 154 | static __always_inline __u16 __swab16p(const __u16 *p) |
| 155 | { | 155 | { |
| 156 | #ifdef __arch_swab16p | 156 | #ifdef __arch_swab16p |
| 157 | return __arch_swab16p(p); | 157 | return __arch_swab16p(p); |
| @@ -164,7 +164,7 @@ static inline __u16 __swab16p(const __u16 *p) | |||
| 164 | * __swab32p - return a byteswapped 32-bit value from a pointer | 164 | * __swab32p - return a byteswapped 32-bit value from a pointer |
| 165 | * @p: pointer to a naturally-aligned 32-bit value | 165 | * @p: pointer to a naturally-aligned 32-bit value |
| 166 | */ | 166 | */ |
| 167 | static inline __u32 __swab32p(const __u32 *p) | 167 | static __always_inline __u32 __swab32p(const __u32 *p) |
| 168 | { | 168 | { |
| 169 | #ifdef __arch_swab32p | 169 | #ifdef __arch_swab32p |
| 170 | return __arch_swab32p(p); | 170 | return __arch_swab32p(p); |
| @@ -177,7 +177,7 @@ static inline __u32 __swab32p(const __u32 *p) | |||
| 177 | * __swab64p - return a byteswapped 64-bit value from a pointer | 177 | * __swab64p - return a byteswapped 64-bit value from a pointer |
| 178 | * @p: pointer to a naturally-aligned 64-bit value | 178 | * @p: pointer to a naturally-aligned 64-bit value |
| 179 | */ | 179 | */ |
| 180 | static inline __u64 __swab64p(const __u64 *p) | 180 | static __always_inline __u64 __swab64p(const __u64 *p) |
| 181 | { | 181 | { |
| 182 | #ifdef __arch_swab64p | 182 | #ifdef __arch_swab64p |
| 183 | return __arch_swab64p(p); | 183 | return __arch_swab64p(p); |
| @@ -232,7 +232,7 @@ static inline void __swab16s(__u16 *p) | |||
| 232 | * __swab32s - byteswap a 32-bit value in-place | 232 | * __swab32s - byteswap a 32-bit value in-place |
| 233 | * @p: pointer to a naturally-aligned 32-bit value | 233 | * @p: pointer to a naturally-aligned 32-bit value |
| 234 | */ | 234 | */ |
| 235 | static inline void __swab32s(__u32 *p) | 235 | static __always_inline void __swab32s(__u32 *p) |
| 236 | { | 236 | { |
| 237 | #ifdef __arch_swab32s | 237 | #ifdef __arch_swab32s |
| 238 | __arch_swab32s(p); | 238 | __arch_swab32s(p); |
| @@ -245,7 +245,7 @@ static inline void __swab32s(__u32 *p) | |||
| 245 | * __swab64s - byteswap a 64-bit value in-place | 245 | * __swab64s - byteswap a 64-bit value in-place |
| 246 | * @p: pointer to a naturally-aligned 64-bit value | 246 | * @p: pointer to a naturally-aligned 64-bit value |
| 247 | */ | 247 | */ |
| 248 | static inline void __swab64s(__u64 *p) | 248 | static __always_inline void __swab64s(__u64 *p) |
| 249 | { | 249 | { |
| 250 | #ifdef __arch_swab64s | 250 | #ifdef __arch_swab64s |
| 251 | __arch_swab64s(p); | 251 | __arch_swab64s(p); |
diff --git a/include/uapi/linux/virtio_balloon.h b/include/uapi/linux/virtio_balloon.h index d7f1cbc3766c..343d7ddefe04 100644 --- a/include/uapi/linux/virtio_balloon.h +++ b/include/uapi/linux/virtio_balloon.h | |||
| @@ -51,7 +51,8 @@ struct virtio_balloon_config { | |||
| 51 | #define VIRTIO_BALLOON_S_MINFLT 3 /* Number of minor faults */ | 51 | #define VIRTIO_BALLOON_S_MINFLT 3 /* Number of minor faults */ |
| 52 | #define VIRTIO_BALLOON_S_MEMFREE 4 /* Total amount of free memory */ | 52 | #define VIRTIO_BALLOON_S_MEMFREE 4 /* Total amount of free memory */ |
| 53 | #define VIRTIO_BALLOON_S_MEMTOT 5 /* Total amount of memory */ | 53 | #define VIRTIO_BALLOON_S_MEMTOT 5 /* Total amount of memory */ |
| 54 | #define VIRTIO_BALLOON_S_NR 6 | 54 | #define VIRTIO_BALLOON_S_AVAIL 6 /* Available memory as in /proc */ |
| 55 | #define VIRTIO_BALLOON_S_NR 7 | ||
| 55 | 56 | ||
| 56 | /* | 57 | /* |
| 57 | * Memory statistics structure. | 58 | * Memory statistics structure. |
