[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] [PATCH 1/3] explicitly include posix_types.h



On mer., 2013-01-09 at 15:35 +0530, Ritesh Raj Sarraf wrote:
> From: Guido Günther <agx sigxcpu org>
> 
> to get the correct type for __kernel_old_dev_t
> 
> Closes: #558990
> 
Merged.

> Signed-off-by: Ritesh Raj Sarraf <rrs debian org>
> ---
>  kpartx/lopart.c |   13 +------------
>  1 file changed, 1 insertion(+), 12 deletions(-)
> 
> diff --git a/kpartx/lopart.c b/kpartx/lopart.c
> index 79d8328..570c8ad 100644
> --- a/kpartx/lopart.c
> +++ b/kpartx/lopart.c
> @@ -26,18 +26,7 @@
>  #include <sys/stat.h>
>  #include <sys/mman.h>
>  #include <sysmacros.h>
> -
> -#if defined(__hppa__) || defined(__powerpc64__) || defined (__alpha__) \
> - || defined (__x86_64__)
> -typedef unsigned long __kernel_old_dev_t;
> -#elif defined(__powerpc__) || defined(__ia64__) || (defined(__sparc__) && defined (__arch64__))
> -typedef unsigned int __kernel_old_dev_t;
> -#else
> -typedef unsigned short __kernel_old_dev_t;
> -#endif
> -
> -#define dev_t __kernel_old_dev_t
> -
> +#include <asm/posix_types.h>
>  #include <linux/loop.h>
>  
>  #include "lopart.h"




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]