[PATCH 1/2] include/linux/stat.h: make MIPS arch possible.

Franck JULLIEN franck.jullien at gmail.com
Mon Jun 27 03:39:20 EDT 2011


Hello,

2011/6/27 Antony Pavlov <antonynpavlov at gmail.com>

> Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
> ---
>  include/linux/stat.h |   56
> ++++++++++++++++++++++++-------------------------
>  1 files changed, 27 insertions(+), 29 deletions(-)
>
> diff --git a/include/linux/stat.h b/include/linux/stat.h
> index 10103d4..c12ff57 100644
> --- a/include/linux/stat.h
> +++ b/include/linux/stat.h
> @@ -65,34 +65,7 @@ struct stat {
>        unsigned long   __unused5;
>  };
>
> -#else
> -
> -struct stat {
> -       unsigned short st_dev;
> -       unsigned short __pad1;
> -       unsigned long st_ino;
> -       unsigned short st_mode;
> -       unsigned short st_nlink;
> -       unsigned short st_uid;
> -       unsigned short st_gid;
> -       unsigned short st_rdev;
> -       unsigned short __pad2;
> -       unsigned long  st_size;
> -       unsigned long  st_blksize;
> -       unsigned long  st_blocks;
> -       unsigned long  st_atime;
> -       unsigned long  __unused1;
> -       unsigned long  st_mtime;
> -       unsigned long  __unused2;
> -       unsigned long  st_ctime;
> -       unsigned long  __unused3;
> -       unsigned long  __unused4;
> -       unsigned long  __unused5;
> -};
> -
> -#endif /* __ARM__ */
> -
> -#if defined (__MIPS__)
> +#elif defined(__MIPS__)
>
>  struct stat {
>        dev_t           st_dev;
> @@ -121,7 +94,32 @@ struct stat {
>        long            st_pad4[14];
>  };
>
> -#endif /* __MIPS__ */
> +#else
> +
> +struct stat {
> +       unsigned short st_dev;
> +       unsigned short __pad1;
> +       unsigned long st_ino;
> +       unsigned short st_mode;
> +       unsigned short st_nlink;
> +       unsigned short st_uid;
> +       unsigned short st_gid;
> +       unsigned short st_rdev;
> +       unsigned short __pad2;
> +       unsigned long  st_size;
> +       unsigned long  st_blksize;
> +       unsigned long  st_blocks;
> +       unsigned long  st_atime;
> +       unsigned long  __unused1;
> +       unsigned long  st_mtime;
> +       unsigned long  __unused2;
> +       unsigned long  st_ctime;
> +       unsigned long  __unused3;
> +       unsigned long  __unused4;
> +       unsigned long  __unused5;
> +};
> +
> +#endif /* __ARM__ */
>
>  #ifdef __cplusplus
>  }
> --
> 1.7.5.4
>
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox



 There is still only one patch :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20110627/96c96ca8/attachment.html>


More information about the barebox mailing list