mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH} 2.5.3-pre5: fs/reiserfs/procfs.c
@ 2002-01-28 17:20 Nikita Gergel
  0 siblings, 0 replies; only message in thread
From: Nikita Gergel @ 2002-01-28 17:20 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds

Hello!

I've found some errors while compiling 2.5.3-pre5 with CONFIG_REISERFS_PROC_INFO=y option. Seems that I've found how to fix problem with types conversations, but I'm not fully sure that I'm right.

But I've not fixed one error. It's with conversion from le32_to_cpu(rs->x) and bdevname(kdev_t). In our case we are to convert from __u32 to kdev_t, isn't it impossible? I've no idea...

----- [PATCH] -----

diff -urN linux-2.5.3-pre5/fs/reiserfs/procfs.c linux-2.5.3-pre5-patched/fs/reiserfs/procfs.c
--- linux-2.5.3-pre5/fs/reiserfs/procfs.c   Wed Dec 16 23:20:00 2001
+++ linux-2.5.3-pre5-patched/fs/reiserfs/procfs.c   Fri Jan 11 23:11:02 2002
@@ -30,8 +30,8 @@
  */
 
-static struct super_block *procinfo_prologue( kdev_t dev )
+static struct super_block *procinfo_prologue( kdev_t *dev )
 {
 	struct super_block *result;
 
 	/* get super-block by device */
- 	result = get_super( dev );
+	result = get_super( *dev );
 	if( result != NULL ) {
@@ -78,5 +78,5 @@
 	struct super_block *sb;
 	
-	sb = procinfo_prologue( ( kdev_t ) ( int ) data );
+	sb = procinfo_prologue( ( kdev_t *) ( int ) data );
 	if( sb == NULL )
 		return -ENOENT;
@@ -135,5 +135,5 @@
 	int len = 0;
 
-	sb = procinfo_prologue( ( kdev_t ) ( int ) data );
+	sb = procinfo_prologue( ( kdev_t *) ( int ) data );
 	if( sb == NULL )
 		return -ENOENT;
@@ -215,5 +215,5 @@
 	int level;
 
-	sb = procinfo_prologue( ( kdev_t ) ( int ) data );
+	sb = procinfo_prologue( ( kdev_t *) ( int ) data );
 	if( sb == NULL )
 		return -ENOENT;
@@ -294,5 +294,5 @@
 	int len = 0;
 
-	sb = procinfo_prologue( ( kdev_t ) ( int ) data );
+	sb = procinfo_prologue( ( kdev_t *) ( int ) data );
 	if( sb == NULL )
 		return -ENOENT;
@@ -337,5 +337,5 @@
 	int len = 0;
 
-	sb = procinfo_prologue( ( kdev_t ) ( int ) data );
+	sb = procinfo_prologue( ( kdev_t *) ( int ) data );
 	if( sb == NULL )
 		return -ENOENT;
@@ -388,5 +388,5 @@
 	int exact;
 
-	sb = procinfo_prologue( ( kdev_t ) ( int ) data );
+	sb = procinfo_prologue( ( kdev_t *) ( int ) data );
 	if( sb == NULL )
 		return -ENOENT;
@@ -439,5 +439,5 @@
 	int len = 0;
 
-	sb = procinfo_prologue( ( kdev_t ) ( int ) data );
+	sb = procinfo_prologue( ( kdev_t *) ( int ) data );
 	if( sb == NULL )
 		return -ENOENT;
@@ -579,5 +579,5 @@
 	return ( sb->u.reiserfs_sb.procdir ) ? create_proc_read_entry
 		( name, 0, sb->u.reiserfs_sb.procdir, func,
-		  ( void * ) ( int ) sb -> s_dev ) : NULL;
+		  &sb->s_dev ) : NULL;
 }

----- [PATCH] ----- 

-- 
Nikita Gergel					System Administrator
Moscow, Russia					YAUZA-Telecom


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-28 17:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-28 17:20 [PATCH} 2.5.3-pre5: fs/reiserfs/procfs.c Nikita Gergel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®