Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bart Van Assche and committed by
Greg Kroah-Hartman
b5a06234 2eed70de

+2 -2
+2 -2
fs/kernfs/inode.c
··· 335 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 339 .prefix = XATTR_TRUSTED_PREFIX, 340 340 .get = kernfs_xattr_get, 341 341 .set = kernfs_xattr_set, ··· 372 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 376 .prefix = XATTR_SECURITY_PREFIX, 377 377 .get = kernfs_xattr_get, 378 378 .set = kernfs_security_xattr_set,