Commit 2b3cd4fd authored by Oleg Drokin's avatar Oleg Drokin

reiserfs: Fixed annoying warnings in fs/reiserfs/procfs.c

parent 35720c25
...@@ -78,7 +78,7 @@ int reiserfs_version_in_proc( char *buffer, char **start, off_t offset, ...@@ -78,7 +78,7 @@ int reiserfs_version_in_proc( char *buffer, char **start, off_t offset,
struct super_block *sb; struct super_block *sb;
char *format; char *format;
sb = procinfo_prologue((dev_t)data); sb = procinfo_prologue((int)data);
if( sb == NULL ) if( sb == NULL )
return -ENOENT; return -ENOENT;
if ( REISERFS_SB(sb)->s_properties & (1 << REISERFS_3_6) ) { if ( REISERFS_SB(sb)->s_properties & (1 << REISERFS_3_6) ) {
...@@ -136,7 +136,7 @@ int reiserfs_super_in_proc( char *buffer, char **start, off_t offset, ...@@ -136,7 +136,7 @@ int reiserfs_super_in_proc( char *buffer, char **start, off_t offset,
struct reiserfs_sb_info *r; struct reiserfs_sb_info *r;
int len = 0; int len = 0;
sb = procinfo_prologue((dev_t)data); sb = procinfo_prologue((int)data);
if( sb == NULL ) if( sb == NULL )
return -ENOENT; return -ENOENT;
r = REISERFS_SB(sb); r = REISERFS_SB(sb);
...@@ -229,7 +229,7 @@ int reiserfs_per_level_in_proc( char *buffer, char **start, off_t offset, ...@@ -229,7 +229,7 @@ int reiserfs_per_level_in_proc( char *buffer, char **start, off_t offset,
int len = 0; int len = 0;
int level; int level;
sb = procinfo_prologue((dev_t)data); sb = procinfo_prologue((int)data);
if( sb == NULL ) if( sb == NULL )
return -ENOENT; return -ENOENT;
r = REISERFS_SB(sb); r = REISERFS_SB(sb);
...@@ -308,7 +308,7 @@ int reiserfs_bitmap_in_proc( char *buffer, char **start, off_t offset, ...@@ -308,7 +308,7 @@ int reiserfs_bitmap_in_proc( char *buffer, char **start, off_t offset,
struct reiserfs_sb_info *r; struct reiserfs_sb_info *r;
int len = 0; int len = 0;
sb = procinfo_prologue((dev_t)data); sb = procinfo_prologue((int)data);
if( sb == NULL ) if( sb == NULL )
return -ENOENT; return -ENOENT;
r = REISERFS_SB(sb); r = REISERFS_SB(sb);
...@@ -352,7 +352,7 @@ int reiserfs_on_disk_super_in_proc( char *buffer, char **start, off_t offset, ...@@ -352,7 +352,7 @@ int reiserfs_on_disk_super_in_proc( char *buffer, char **start, off_t offset,
int hash_code; int hash_code;
int len = 0; int len = 0;
sb = procinfo_prologue((dev_t)data); sb = procinfo_prologue((int)data);
if( sb == NULL ) if( sb == NULL )
return -ENOENT; return -ENOENT;
sb_info = REISERFS_SB(sb); sb_info = REISERFS_SB(sb);
...@@ -409,7 +409,7 @@ int reiserfs_oidmap_in_proc( char *buffer, char **start, off_t offset, ...@@ -409,7 +409,7 @@ int reiserfs_oidmap_in_proc( char *buffer, char **start, off_t offset,
int len = 0; int len = 0;
int exact; int exact;
sb = procinfo_prologue((dev_t)data); sb = procinfo_prologue((int)data);
if( sb == NULL ) if( sb == NULL )
return -ENOENT; return -ENOENT;
sb_info = REISERFS_SB(sb); sb_info = REISERFS_SB(sb);
...@@ -461,7 +461,7 @@ int reiserfs_journal_in_proc( char *buffer, char **start, off_t offset, ...@@ -461,7 +461,7 @@ int reiserfs_journal_in_proc( char *buffer, char **start, off_t offset,
struct journal_params *jp; struct journal_params *jp;
int len = 0; int len = 0;
sb = procinfo_prologue((dev_t)data); sb = procinfo_prologue((int)data);
if( sb == NULL ) if( sb == NULL )
return -ENOENT; return -ENOENT;
r = REISERFS_SB(sb); r = REISERFS_SB(sb);
...@@ -604,7 +604,7 @@ struct proc_dir_entry *reiserfs_proc_register( struct super_block *sb, ...@@ -604,7 +604,7 @@ struct proc_dir_entry *reiserfs_proc_register( struct super_block *sb,
{ {
return ( REISERFS_SB(sb)->procdir ) ? create_proc_read_entry return ( REISERFS_SB(sb)->procdir ) ? create_proc_read_entry
( name, 0, REISERFS_SB(sb)->procdir, func, ( name, 0, REISERFS_SB(sb)->procdir, func,
( void * ) sb->s_bdev->bd_dev) : NULL; ( void * )(int) sb->s_bdev->bd_dev) : NULL;
} }
void reiserfs_proc_unregister( struct super_block *sb, const char *name ) void reiserfs_proc_unregister( struct super_block *sb, const char *name )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment