

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.


---

 25-akpm/include/linux/reiserfs_fs.h |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff -puN include/linux/reiserfs_fs.h~reiserfs_kfree-warning-fix include/linux/reiserfs_fs.h
--- 25/include/linux/reiserfs_fs.h~reiserfs_kfree-warning-fix	2004-03-25 00:47:58.413918976 -0800
+++ 25-akpm/include/linux/reiserfs_fs.h	2004-03-25 00:49:07.689387504 -0800
@@ -2028,8 +2028,17 @@ extern struct address_space_operations r
 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);
 #else
-#define reiserfs_kmalloc(x, y, z) kmalloc(x, y)
-#define reiserfs_kfree(x, y, z) kfree(x)
+static inline void *reiserfs_kmalloc(size_t size, int flags,
+					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
 
 int fix_nodes (int n_op_mode, struct tree_balance * p_s_tb, 

_
