ubifs: Make xattr structures static
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 21 Jun 2016 16:50:43 +0000 (17:50 +0100)
committerRichard Weinberger <richard@nod.at>
Fri, 29 Jul 2016 14:19:43 +0000 (16:19 +0200)
Fix sparse warnings from the use of "struct xattr_handler"
structures that are not exported by making them static. Fixes
the following sparse warnings:

/fs/ubifs/xattr.c:595:28: warning: symbol 'ubifs_user_xattr_handler' was not declared. Should it be static?
/fs/ubifs/xattr.c:601:28: warning: symbol 'ubifs_trusted_xattr_handler' was not declared. Should it be static?
/fs/ubifs/xattr.c:607:28: warning: symbol 'ubifs_security_xattr_handler' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/xattr.c

index b5fc27969e9d31bc0a9e951cc50a83c66d9c1352..e237811f09ce5ce6139aab0951047a74dd715665 100644 (file)
@@ -592,19 +592,19 @@ static int ubifs_xattr_set(const struct xattr_handler *handler,
                return __ubifs_removexattr(inode, name);
 }
 
-const struct xattr_handler ubifs_user_xattr_handler = {
+static const struct xattr_handler ubifs_user_xattr_handler = {
        .prefix = XATTR_USER_PREFIX,
        .get = ubifs_xattr_get,
        .set = ubifs_xattr_set,
 };
 
-const struct xattr_handler ubifs_trusted_xattr_handler = {
+static const struct xattr_handler ubifs_trusted_xattr_handler = {
        .prefix = XATTR_TRUSTED_PREFIX,
        .get = ubifs_xattr_get,
        .set = ubifs_xattr_set,
 };
 
-const struct xattr_handler ubifs_security_xattr_handler = {
+static const struct xattr_handler ubifs_security_xattr_handler = {
        .prefix = XATTR_SECURITY_PREFIX,
        .get = ubifs_xattr_get,
        .set = ubifs_xattr_set,
This page took 0.027793 seconds and 5 git commands to generate.