From: Bart Van Assche Date: Sat, 12 Nov 2016 00:45:58 +0000 (-0800) Subject: kernfs: Declare two local data structures static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b5a062344419baeeea0cc034fe5eef88a877190e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git kernfs: Declare two local data structures static This was spotted by the 'sparse' static checker. Signed-off-by: Bart Van Assche Cc: Andreas Gruenbacher Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/kernfs/inode.c b/fs/kernfs/inode.c index a1982118f92f..ac9e108ce1ea 100644 --- a/fs/kernfs/inode.c +++ b/fs/kernfs/inode.c @@ -335,7 +335,7 @@ static int kernfs_xattr_set(const struct xattr_handler *handler, return simple_xattr_set(&attrs->xattrs, name, value, size, flags); } -const struct xattr_handler kernfs_trusted_xattr_handler = { +static const struct xattr_handler kernfs_trusted_xattr_handler = { .prefix = XATTR_TRUSTED_PREFIX, .get = kernfs_xattr_get, .set = kernfs_xattr_set, @@ -372,7 +372,7 @@ static int kernfs_security_xattr_set(const struct xattr_handler *handler, return error; } -const struct xattr_handler kernfs_security_xattr_handler = { +static const struct xattr_handler kernfs_security_xattr_handler = { .prefix = XATTR_SECURITY_PREFIX, .get = kernfs_xattr_get, .set = kernfs_security_xattr_set,