lkml.org 
[lkml]   [2009]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/1] loop.h use __kernel_old_dev_t which is not possible use on arch which don't have it..
Date
From: Michal Simek <monstr@monstr.eu>

This patch is for incomming Microblaze arch.

Signed-off-by: Michal Simek <monstr@monstr.eu>
---
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


\
 
 \ /
  Last update: 2009-03-13 12:43    [W:0.022 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site