[PATCH 1/1] loop.h use __kernel_old_dev_t which is not possible use on arch which don't have it..

From: monstr
Date: Fri Mar 13 2009 - 07:39:28 EST


From: Michal Simek <monstr@xxxxxxxxx>

This patch is for incomming Microblaze arch.

Signed-off-by: Michal Simek <monstr@xxxxxxxxx>
---
include/linux/loop.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/loop.h b/include/linux/loop.h
index 6ffd6db..fdbabd2 100644
--- a/include/linux/loop.h
+++ b/include/linux/loop.h
@@ -82,6 +82,7 @@ enum {
#include <asm/posix_types.h> /* for __kernel_old_dev_t */
#include <linux/types.h> /* for __u64 */

+#ifdef __kernel_old_dev_t
/* Backwards compatibility version */
struct loop_info {
int lo_number; /* ioctl r/o */
@@ -97,6 +98,7 @@ struct loop_info {
unsigned long lo_init[2];
char reserved[4];
};
+#endif

struct loop_info64 {
__u64 lo_device; /* ioctl r/o */
--
1.5.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/