[PATCH 3/4] nios2: Include asm/unaligned.h
Sascha Hauer
s.hauer at pengutronix.de
Thu Nov 24 04:36:36 EST 2011
On Wed, Nov 23, 2011 at 10:12:27PM +0100, franck.jullien at gmail.com wrote:
> From: Franck Jullien <franck.jullien at gmail.com>
Applied this one to master.
Sascha
>
> drivers/ata/disk_drive.c needs it....
>
> Signed-off-by: Franck Jullien <franck.jullien at gmail.com>
> ---
> arch/nios2/include/asm/unaligned.h | 15 +++++++++++++++
> 1 files changed, 15 insertions(+), 0 deletions(-)
> create mode 100644 arch/nios2/include/asm/unaligned.h
>
> diff --git a/arch/nios2/include/asm/unaligned.h b/arch/nios2/include/asm/unaligned.h
> new file mode 100644
> index 0000000..7615e8a
> --- /dev/null
> +++ b/arch/nios2/include/asm/unaligned.h
> @@ -0,0 +1,15 @@
> +#ifndef _ASM_NIOS_UNALIGNED_H
> +#define _ASM_NIOS_UNALIGNED_H
> +
> +#include <linux/unaligned/le_byteshift.h>
> +#include <linux/unaligned/be_byteshift.h>
> +#include <linux/unaligned/generic.h>
> +
> +/*
> + * Select endianness
> + */
> +
> +#define get_unaligned __get_unaligned_le
> +#define put_unaligned __put_unaligned_le
> +
> +#endif /* _ASM_NIOS_UNALIGNED_H */
> --
> 1.7.7
>
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
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 |
More information about the barebox
mailing list