[patch][x86] Avoid build error on "config SPI" is y

Masaki Muranaka monaka at monami-ya.jp
Fri May 31 21:56:40 EDT 2013


Hello,

In case he configures with make ARCH=x85 menuconfig,
config SPI will be set to "y". And he will got an error on spi.h.

After applied this patch, the error will be fixed.

diff --git a/arch/x86/include/asm/types.h b/arch/x86/include/asm/types.h
index b0218d2..d473405 100644
--- a/arch/x86/include/asm/types.h
+++ b/arch/x86/include/asm/types.h
@@ -29,12 +29,16 @@ typedef unsigned int __u32;
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;

+typedef signed char s8;
 typedef unsigned char u8;

+typedef signed short s16;
 typedef unsigned short u16;

+typedef signed int s32;
 typedef unsigned int u32;

+typedef signed long long s64;
 typedef unsigned long long u64;

 #endif /* __ASSEMBLY__ */


--
--
Masaki Muranaka
Monami-ya LLC, Japan.



More information about the barebox mailing list