From f2f9bbe5b187b2c9f9b0fc611f29e5531c675673 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sat, 7 Feb 2004 17:42:17 -0800 Subject: [PATCH] [PATCH] alpha: fix build error due to __attribute_const__ conversion Include the needed compiler.h. Also swizze the return type and the attribute around to match everyone else. --- include/asm-alpha/byteorder.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/asm-alpha/byteorder.h b/include/asm-alpha/byteorder.h index e5179c55920cf..7af2b8d254868 100644 --- a/include/asm-alpha/byteorder.h +++ b/include/asm-alpha/byteorder.h @@ -2,11 +2,12 @@ #define _ALPHA_BYTEORDER_H #include +#include #include #ifdef __GNUC__ -static __inline __u32 __attribute_const__ __arch__swab32(__u32 x) +static __inline __attribute_const__ __u32 __arch__swab32(__u32 x) { /* * Unfortunately, we can't use the 6 instruction sequence -- 2.53.0