Commit b566678f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] reiserfs_kfree warning fix

fs/reiserfs/journal.c: In function `reiserfs_end_persistent_transaction':
fs/reiserfs/journal.c:2616: warning: unused variable `s'

Make the functions static inline so that typechecking is enabled if
!CONFIG_REISERFS_CHECK.
parent 77ae13bc
...@@ -2028,8 +2028,17 @@ extern struct address_space_operations reiserfs_address_space_operations ; ...@@ -2028,8 +2028,17 @@ extern struct address_space_operations reiserfs_address_space_operations ;
void * reiserfs_kmalloc (size_t size, int flags, struct super_block * s); void * reiserfs_kmalloc (size_t size, int flags, struct super_block * s);
void reiserfs_kfree (const void * vp, size_t size, struct super_block * s); void reiserfs_kfree (const void * vp, size_t size, struct super_block * s);
#else #else
#define reiserfs_kmalloc(x, y, z) kmalloc(x, y) static inline void *reiserfs_kmalloc(size_t size, int flags,
#define reiserfs_kfree(x, y, z) kfree(x) struct super_block *s)
{
return kmalloc(size, flags);
}
static inline void reiserfs_kfree(const void *vp, size_t size,
struct super_block *s)
{
kfree(vp);
}
#endif #endif
int fix_nodes (int n_op_mode, struct tree_balance * p_s_tb, int fix_nodes (int n_op_mode, struct tree_balance * p_s_tb,
......
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