Skip to content

Commit

Permalink
ecryptfs: Make ecryptfs_xattr_handler static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YueHaibing authored and Tyler Hicks committed Jun 19, 2019
1 parent 29a51df commit c036061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ecryptfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c036061

Please sign in to comment.