ecryptfs: Make ecryptfs_xattr_handler static
authorYueHaibing <yuehaibing@huawei.com>
Fri, 14 Jun 2019 15:51:17 +0000 (23:51 +0800)
committerTyler Hicks <tyhicks@canonical.com>
Wed, 19 Jun 2019 05:53:49 +0000 (05:53 +0000)
Fix sparse warning:

fs/ecryptfs/inode.c:1138:28: warning:
 symbol 'ecryptfs_xattr_handler' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
fs/ecryptfs/inode.c

index 5c36ceecb5c12828ceb84a39d19c86b69713b937..c9b5b59cbd484078ae9e601fb880af0bb1a35cfd 100644 (file)
@@ -1135,7 +1135,7 @@ static int ecryptfs_xattr_set(const struct xattr_handler *handler,
        }
 }
 
-const struct xattr_handler ecryptfs_xattr_handler = {
+static const struct xattr_handler ecryptfs_xattr_handler = {
        .prefix = "",  /* match anything */
        .get = ecryptfs_xattr_get,
        .set = ecryptfs_xattr_set,