x86: Provide 'unaligned' macros for x86 arch as well
These macros are used in the generic partition detection code. So, x86 would fails without it.
Signed-off-by Juergen Beisert <[email protected]>
arch/x86/include/asm/types.h +2 -0
@@ -39,6 +39,8 @@ typedef unsigned short u16;typedef unsigned int u32 ; +typedef unsigned long long u64 ; +#endif /* __ASSEMBLY__ */ #endif /* __ASM_X86_TYPES_H */
arch/x86/include/asm/unaligned.h new file +11 -0
@@ -0,0 +1,11 @@ +#ifndef _ASM_X86_UNALIGNED_H +#define _ASM_X86_UNALIGNED_H + +#include <linux/unaligned/le_byteshift.h> +#include <linux/unaligned/be_byteshift.h> +#include <linux/unaligned/generic.h> + +#define get_unaligned __get_unaligned_le +#define put_unaligned __put_unaligned_le + +#endif /* _ASM_X86_UNALIGNED_H */
Signature · 7 lines
Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 2 lines · Juergen Beisert
These macros are used in the generic partition detection code. So, x86 would fails without it.
This is already fixed in master since:
commit 8d6d5d43dde84b0352195a3ce6d0b9101e651073
Author: Lucas De Marchi <[email protected]> Date: Wed Nov 9 19:39:56 2011 -0200
x86: fix build error because of missing header
Signed-off-by Lucas De Marchi <[email protected]>
Signed-off-by Sascha Hauer <[email protected]>
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox