Commit f2f9bbe5 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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.
parent 1f6a1528
...@@ -2,11 +2,12 @@ ...@@ -2,11 +2,12 @@
#define _ALPHA_BYTEORDER_H #define _ALPHA_BYTEORDER_H
#include <asm/types.h> #include <asm/types.h>
#include <linux/compiler.h>
#include <asm/compiler.h> #include <asm/compiler.h>
#ifdef __GNUC__ #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 * Unfortunately, we can't use the 6 instruction sequence
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment