eCryptfs: Fix -Wmissing-prototypes warnings
authorTyler Hicks <tyhicks@canonical.com>
Thu, 17 Jan 2013 20:19:35 +0000 (12:19 -0800)
committerTyler Hicks <tyhicks@canonical.com>
Thu, 17 Jan 2013 20:20:47 +0000 (12:20 -0800)
Mark two inode operation fuctions as static. Fixes warnings when
building with W=1.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
fs/ecryptfs/inode.c

index cc7709e7c508d81a1429ffa25bace9c7a101a832..ddd961ba2cf96e109bed952cd4de3110dc544bd9 100644 (file)
@@ -999,8 +999,8 @@ out:
        return rc;
 }
 
-int ecryptfs_getattr_link(struct vfsmount *mnt, struct dentry *dentry,
-                         struct kstat *stat)
+static int ecryptfs_getattr_link(struct vfsmount *mnt, struct dentry *dentry,
+                                struct kstat *stat)
 {
        struct ecryptfs_mount_crypt_stat *mount_crypt_stat;
        int rc = 0;
@@ -1021,8 +1021,8 @@ int ecryptfs_getattr_link(struct vfsmount *mnt, struct dentry *dentry,
        return rc;
 }
 
-int ecryptfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
-                    struct kstat *stat)
+static int ecryptfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
+                           struct kstat *stat)
 {
        struct kstat lower_stat;
        int rc;