]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/asm-ppc/byteorder.h
xpedite5370: Enable multi-core support
[karo-tx-uboot.git] / include / asm-ppc / byteorder.h
index 7b6048249c91274fedacc89051ba6ad4b282acf6..3f5bcf63a1f980eb0c5e95e458119f55f5855274 100644 (file)
@@ -39,7 +39,7 @@ extern __inline__ void st_le32(volatile unsigned *addr, const unsigned val)
 #  define __arch_swab16(x) ld_le16(&x)
 #  define __arch_swab32(x) ld_le32(&x)
 #else
-static __inline__ __const__ __u16 ___arch__swab16(__u16 value)
+static __inline__ __attribute__((const)) __u16 ___arch__swab16(__u16 value)
 {
        __u16 result;
 
@@ -49,7 +49,7 @@ static __inline__ __const__ __u16 ___arch__swab16(__u16 value)
        return result;
 }
 
-static __inline__ __const__ __u32 ___arch__swab32(__u32 value)
+static __inline__ __attribute__((const)) __u32 ___arch__swab32(__u32 value)
 {
        __u32 result;