From: Andrew Deason Date: Wed, 13 Oct 2010 16:27:03 +0000 (-0500) Subject: LINUX: old kernel warning fixes X-Git-Tag: upstream/1.8.0_pre1^2~4670 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ba96ebba7197420b1511bd1aae9db495398e038a;p=packages%2Fo%2Fopenafs.git LINUX: old kernel warning fixes - osi_vfsop.c: struct super_block, not superblock - osi_vnodeops.c: initialize bypasscache Change-Id: I8492faeda632a05c080013cef71a95c60ab7c931 Reviewed-on: http://gerrit.openafs.org/2973 Reviewed-by: Marc Dionne Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/LINUX/osi_vfsops.c b/src/afs/LINUX/osi_vfsops.c index e511a92d3..56478974a 100644 --- a/src/afs/LINUX/osi_vfsops.c +++ b/src/afs/LINUX/osi_vfsops.c @@ -65,7 +65,7 @@ afs_get_sb(struct file_system_type *fs_type, int flags, return get_sb_nodev(fs_type, flags, data, afs_fill_super, mnt); } #else -static struct superblock * +static struct super_block * afs_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name, void *data) { return get_sb_nodev(fs_type, flags, data, afs_fill_super); diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 23f7d3b0f..de864bcb6 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -588,7 +588,7 @@ afs_linux_flush(struct file *fp) cred_t *credp; int code; #if defined(AFS_CACHE_BYPASS) - int bypasscache; + int bypasscache = 0; #endif AFS_GLOCK();