mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 10:40:53 +07:00
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>
This commit is contained in:
parent
2eed70ded4
commit
b5a0623444
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user