From df1ecfa210ff06c354a8d247be679d8c81bd281d Mon Sep 17 00:00:00 2001 From: wangdi Date: Fri, 20 Aug 2004 04:09:19 +0000 Subject: [PATCH 1/1] minor fix for build error --- lustre/smfs/ioctl.c | 1 + lustre/smfs/smfs_internal.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/smfs/ioctl.c b/lustre/smfs/ioctl.c index 82413c3..f9d9c2c 100644 --- a/lustre/smfs/ioctl.c +++ b/lustre/smfs/ioctl.c @@ -54,6 +54,7 @@ static struct super_block *smfs_get_sb_by_path(char *path, int len) ENTRY; #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) if (path_init(path, LOOKUP_FOLLOW, &nd)) { + int error = 0; error = path_walk(path, &nd); if (error) { path_release(&nd); diff --git a/lustre/smfs/smfs_internal.h b/lustre/smfs/smfs_internal.h index dfc6446..fa8dcd0 100644 --- a/lustre/smfs/smfs_internal.h +++ b/lustre/smfs/smfs_internal.h @@ -183,7 +183,7 @@ extern int smfs_post_rec_create(struct inode *dir, struct dentry *dentry, void *data1, void *data2); /*kml.c*/ int smfs_do_rec(struct inode *inode); -int smfs_rec_cleanup(struct super_block *sb); +int smfs_rec_cleanup(struct smfs_super_info *sb); int smfs_rec_init(struct super_block *sb); extern int smfs_rec_unpack(struct smfs_proc_args *args, char *record, -- 1.8.3.1