diff options
Diffstat (limited to 'include/asm-xtensa/byteorder.h')
-rw-r--r-- | include/asm-xtensa/byteorder.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/asm-xtensa/byteorder.h b/include/asm-xtensa/byteorder.h index 0b1552569aae..0f540a5f4c01 100644 --- a/include/asm-xtensa/byteorder.h +++ b/include/asm-xtensa/byteorder.h | |||
@@ -11,10 +11,9 @@ | |||
11 | #ifndef _XTENSA_BYTEORDER_H | 11 | #ifndef _XTENSA_BYTEORDER_H |
12 | #define _XTENSA_BYTEORDER_H | 12 | #define _XTENSA_BYTEORDER_H |
13 | 13 | ||
14 | #include <asm/processor.h> | ||
15 | #include <asm/types.h> | 14 | #include <asm/types.h> |
16 | 15 | ||
17 | static __inline__ __const__ __u32 ___arch__swab32(__u32 x) | 16 | static __inline__ __attribute_const__ __u32 ___arch__swab32(__u32 x) |
18 | { | 17 | { |
19 | __u32 res; | 18 | __u32 res; |
20 | /* instruction sequence from Xtensa ISA release 2/2000 */ | 19 | /* instruction sequence from Xtensa ISA release 2/2000 */ |
@@ -29,7 +28,7 @@ static __inline__ __const__ __u32 ___arch__swab32(__u32 x) | |||
29 | return res; | 28 | return res; |
30 | } | 29 | } |
31 | 30 | ||
32 | static __inline__ __const__ __u16 ___arch__swab16(__u16 x) | 31 | static __inline__ __attribute_const__ __u16 ___arch__swab16(__u16 x) |
33 | { | 32 | { |
34 | /* Given that 'short' values are signed (i.e., can be negative), | 33 | /* Given that 'short' values are signed (i.e., can be negative), |
35 | * we cannot assume that the upper 16-bits of the register are | 34 | * we cannot assume that the upper 16-bits of the register are |