]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
LINUX: old kernel warning fixes
authorAndrew Deason <adeason@sinenomine.net>
Wed, 13 Oct 2010 16:27:03 +0000 (11:27 -0500)
committerDerrick Brashear <shadow@dementia.org>
Tue, 26 Oct 2010 00:50:17 +0000 (17:50 -0700)
 - osi_vfsop.c: struct super_block, not superblock

 - osi_vnodeops.c: initialize bypasscache

Reviewed-on: http://gerrit.openafs.org/2973
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit ba96ebba7197420b1511bd1aae9db495398e038a)
Change-Id: I3c98809bf8763c03a6f1c27e7ebe68ddb8ad1318
Reviewed-on: http://gerrit.openafs.org/3104

src/afs/LINUX/osi_vfsops.c
src/afs/LINUX/osi_vnodeops.c

index e511a92d314cd9c4f42554b5576ca9675eeabfcb..56478974a38ad623ca8068a988f7e6fcaea8281f 100644 (file)
@@ -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);
index 23f7d3b0f07da2f422293b51ba328aed16280899..de864bcb638c8fee7bc10df162ca1440882ae84a 100644 (file)
@@ -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();