diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-11-11 19:45:58 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-29 14:58:31 -0500 |
commit | b5a062344419baeeea0cc034fe5eef88a877190e (patch) | |
tree | 0dff044f07bc245bb7a8afa570158aa14cabb2ea | |
parent | 2eed70ded4d437f55ccaaffe753770987812f8a2 (diff) |
kernfs: Declare two local data structures static
This was spotted by the 'sparse' static checker.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | fs/kernfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, | |||
335 | return simple_xattr_set(&attrs->xattrs, name, value, size, flags); | 335 | return simple_xattr_set(&attrs->xattrs, name, value, size, flags); |
336 | } | 336 | } |
337 | 337 | ||
338 | const struct xattr_handler kernfs_trusted_xattr_handler = { | 338 | static const struct xattr_handler kernfs_trusted_xattr_handler = { |
339 | .prefix = XATTR_TRUSTED_PREFIX, | 339 | .prefix = XATTR_TRUSTED_PREFIX, |
340 | .get = kernfs_xattr_get, | 340 | .get = kernfs_xattr_get, |
341 | .set = kernfs_xattr_set, | 341 | .set = kernfs_xattr_set, |
@@ -372,7 +372,7 @@ static int kernfs_security_xattr_set(const struct xattr_handler *handler, | |||
372 | return error; | 372 | return error; |
373 | } | 373 | } |
374 | 374 | ||
375 | const struct xattr_handler kernfs_security_xattr_handler = { | 375 | static const struct xattr_handler kernfs_security_xattr_handler = { |
376 | .prefix = XATTR_SECURITY_PREFIX, | 376 | .prefix = XATTR_SECURITY_PREFIX, |
377 | .get = kernfs_xattr_get, | 377 | .get = kernfs_xattr_get, |
378 | .set = kernfs_security_xattr_set, | 378 | .set = kernfs_security_xattr_set, |