diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-06-14 17:51:17 +0200 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2019-06-19 07:53:49 +0200 |
commit | c036061be907b8bcf8c030cf4d2fb97a04d6f5d1 (patch) | |
tree | 0eeb44efc539e70a77e2272650bda96fc624e21d /fs/ecryptfs/inode.c | |
parent | ecryptfs: remove unnessesary null check in ecryptfs_keyring_auth_tok_for_sig (diff) | |
download | linux-c036061be907b8bcf8c030cf4d2fb97a04d6f5d1.tar.xz linux-c036061be907b8bcf8c030cf4d2fb97a04d6f5d1.zip |
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/inode.c')
-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, |