Linux Device Mapper development
 help / color / mirror / Atom feed
From: Ritesh Raj Sarraf <rrs@debian.org>
To: christophe.varoqui@opensvc.com
Cc: "Ritesh Raj Sarraf" <rrs@debian.org>,
	dm-devel@redhat.com, "Guido Günther" <agx@sigxcpu.org>
Subject: [PATCH 1/3] explicitly include posix_types.h
Date: Wed,  9 Jan 2013 14:02:46 +0530	[thread overview]
Message-ID: <1357720368-17664-1-git-send-email-rrs@debian.org> (raw)

From: Guido Günther <agx@sigxcpu.org>

to get the correct type for __kernel_old_dev_t

Closes: #558990

Signed-off-by: Ritesh Raj Sarraf <rrs@debian.org>
Signed-off-by: Guido Gunther <agx@sigxcpu.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"
-- 
1.7.10.4

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

             reply	other threads:[~2013-01-09  8:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-09  8:32 Ritesh Raj Sarraf [this message]
2013-01-09  8:32 ` [PATCH 2/3] Minor spelling error fixes for Debian's lintian cleanliness Ritesh Raj Sarraf
2013-01-09  8:53   ` Hannes Reinecke
2013-01-09  8:32 ` [PATCH 3/3] Drop useless link to curses library Ritesh Raj Sarraf
  -- strict thread matches above, loose matches on Subject: below --
2013-01-09 10:05 [PATCH 0/3] Debian packaging fixes for multipath-tools Ritesh Raj Sarraf
2013-01-09 10:05 ` [PATCH 1/3] explicitly include posix_types.h Ritesh Raj Sarraf
2013-01-12 13:14   ` Christophe Varoqui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1357720368-17664-1-git-send-email-rrs@debian.org \
    --to=rrs@debian.org \
    --cc=agx@sigxcpu.org \
    --cc=christophe.varoqui@opensvc.com \
    --cc=dm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox