]> git.hungrycats.org Git - linux/commitdiff
[PATCH] alpha: fix build error due to __attribute_const__ conversion
authorAndrew Morton <akpm@osdl.org>
Sun, 8 Feb 2004 01:42:17 +0000 (17:42 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 8 Feb 2004 01:42:17 +0000 (17:42 -0800)
Include the needed compiler.h.  Also swizze the return type and the attribute
around to match everyone else.

include/asm-alpha/byteorder.h

index e5179c55920cf4683763f4eca87f6464c2ecc61f..7af2b8d254868ff7102f43255accd9bbd33673f5 100644 (file)
@@ -2,11 +2,12 @@
 #define _ALPHA_BYTEORDER_H
 
 #include <asm/types.h>
+#include <linux/compiler.h>
 #include <asm/compiler.h>
 
 #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