diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-06-14 23:51:17 +0800 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2019-06-19 05:53:49 +0000 |
commit | c036061be907b8bcf8c030cf4d2fb97a04d6f5d1 (patch) | |
tree | 0eeb44efc539e70a77e2272650bda96fc624e21d /fs/ecryptfs | |
parent | 29a51df0609c74e7163d41334021166d6a34d083 (diff) |
ecryptfs: Make ecryptfs_xattr_handler static
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>
Diffstat (limited to 'fs/ecryptfs')
-rw-r--r-- | fs/ecryptfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index 5c36ceecb5c1..c9b5b59cbd48 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -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, |