diff options
author | Paul Mackerras <paulus@samba.org> | 2008-04-14 13:11:02 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-14 13:11:02 +0200 |
commit | ac7c5353b189e10cf5dd27399f64f7b013abffc6 (patch) | |
tree | 8222d92b774c256d6ec4399c716d76b3f05ddc4b /include/asm-avr32 | |
parent | [POWERPC] Remove CONFIG_PCI_LEGACY from some configs (diff) | |
parent | Linux 2.6.25-rc9 (diff) | |
download | linux-ac7c5353b189e10cf5dd27399f64f7b013abffc6.tar.xz linux-ac7c5353b189e10cf5dd27399f64f7b013abffc6.zip |
Merge branch 'linux-2.6'
Diffstat (limited to 'include/asm-avr32')
-rw-r--r-- | include/asm-avr32/byteorder.h | 6 | ||||
-rw-r--r-- | include/asm-avr32/kvm.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-avr32/byteorder.h b/include/asm-avr32/byteorder.h index 402ff4125cdc..d77b48ba7338 100644 --- a/include/asm-avr32/byteorder.h +++ b/include/asm-avr32/byteorder.h @@ -12,8 +12,14 @@ extern unsigned long __builtin_bswap_32(unsigned long x); extern unsigned short __builtin_bswap_16(unsigned short x); #endif +/* + * avr32-linux-gcc versions earlier than 4.2 improperly sign-extends + * the result. + */ +#if !(__GNUC__ == 4 && __GNUC_MINOR__ < 2) #define __arch__swab32(x) __builtin_bswap_32(x) #define __arch__swab16(x) __builtin_bswap_16(x) +#endif #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) # define __BYTEORDER_HAS_U64__ diff --git a/include/asm-avr32/kvm.h b/include/asm-avr32/kvm.h new file mode 100644 index 000000000000..8c5777020e2c --- /dev/null +++ b/include/asm-avr32/kvm.h @@ -0,0 +1,6 @@ +#ifndef __LINUX_KVM_AVR32_H +#define __LINUX_KVM_AVR32_H + +/* avr32 does not support KVM */ + +#endif |