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

squashfs: xattr fix sparse warnings

Sparse does not like inline function declared without body,
because it is not part of the standard kernel practice.

The xattr_handler tables can be declared static.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>

authored by

Stephen Hemminger and committed by
Phillip Lougher
0f87ee08 aa5b1894

+4 -4
+4 -4
fs/squashfs/xattr.c
··· 34 34 #include "squashfs_fs_i.h" 35 35 #include "squashfs.h" 36 36 37 - static inline struct xattr_handler *squashfs_xattr_handler(int); 37 + static struct xattr_handler *squashfs_xattr_handler(int); 38 38 39 39 ssize_t squashfs_listxattr(struct dentry *d, char *buffer, 40 40 size_t buffer_size) ··· 228 228 buffer, size); 229 229 } 230 230 231 - struct xattr_handler squashfs_xattr_user_handler = { 231 + static struct xattr_handler squashfs_xattr_user_handler = { 232 232 .prefix = XATTR_USER_PREFIX, 233 233 .list = squashfs_user_list, 234 234 .get = squashfs_user_get ··· 258 258 buffer, size); 259 259 } 260 260 261 - struct xattr_handler squashfs_xattr_trusted_handler = { 261 + static struct xattr_handler squashfs_xattr_trusted_handler = { 262 262 .prefix = XATTR_TRUSTED_PREFIX, 263 263 .list = squashfs_trusted_list, 264 264 .get = squashfs_trusted_get ··· 285 285 buffer, size); 286 286 } 287 287 288 - struct xattr_handler squashfs_xattr_security_handler = { 288 + static struct xattr_handler squashfs_xattr_security_handler = { 289 289 .prefix = XATTR_SECURITY_PREFIX, 290 290 .list = squashfs_security_list, 291 291 .get = squashfs_security_get