Skip to content

Commit

Permalink
kernfs: Declare two local data structures static
Browse files Browse the repository at this point in the history
This was spotted by the 'sparse' static checker.

Signed-off-by: Bart Van Assche <[email protected]>
Cc: Andreas Gruenbacher <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Bart Van Assche authored and gregkh committed Nov 29, 2016
1 parent 2eed70d commit b5a0623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/kernfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b5a0623

Please sign in to comment.