From: YueHaibing Date: Fri, 14 Jun 2019 15:51:17 +0000 (+0800) Subject: ecryptfs: Make ecryptfs_xattr_handler static X-Git-Tag: v5.3-rc1~83^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c036061be907b8bcf8c030cf4d2fb97a04d6f5d1;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: YueHaibing Signed-off-by: Tyler Hicks --- diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index 5c36ceecb5c12..c9b5b59cbd484 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,