diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2010-05-13 16:32:22 -0700 |
---|---|---|
committer | Phillip Lougher <phillip@lougher.demon.co.uk> | 2010-05-17 20:06:56 +0100 |
commit | 0f87ee08564b95389e609699990725efd282021c (patch) | |
tree | 57d6655eab77057968557e2a414536cb56a7c2ba /fs | |
parent | aa5b1894cbc700d7462947c017ca9b7bcda1e8ed (diff) | |
download | kernel_samsung_smdk4412-0f87ee08564b95389e609699990725efd282021c.zip kernel_samsung_smdk4412-0f87ee08564b95389e609699990725efd282021c.tar.gz kernel_samsung_smdk4412-0f87ee08564b95389e609699990725efd282021c.tar.bz2 |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/squashfs/xattr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/squashfs/xattr.c b/fs/squashfs/xattr.c index 147ecc3..de03889 100644 --- a/fs/squashfs/xattr.c +++ b/fs/squashfs/xattr.c @@ -34,7 +34,7 @@ #include "squashfs_fs_i.h" #include "squashfs.h" -static inline struct xattr_handler *squashfs_xattr_handler(int); +static struct xattr_handler *squashfs_xattr_handler(int); ssize_t squashfs_listxattr(struct dentry *d, char *buffer, size_t buffer_size) @@ -228,7 +228,7 @@ static int squashfs_user_get(struct dentry *d, const char *name, void *buffer, buffer, size); } -struct xattr_handler squashfs_xattr_user_handler = { +static struct xattr_handler squashfs_xattr_user_handler = { .prefix = XATTR_USER_PREFIX, .list = squashfs_user_list, .get = squashfs_user_get @@ -258,7 +258,7 @@ static int squashfs_trusted_get(struct dentry *d, const char *name, buffer, size); } -struct xattr_handler squashfs_xattr_trusted_handler = { +static struct xattr_handler squashfs_xattr_trusted_handler = { .prefix = XATTR_TRUSTED_PREFIX, .list = squashfs_trusted_list, .get = squashfs_trusted_get @@ -285,7 +285,7 @@ static int squashfs_security_get(struct dentry *d, const char *name, buffer, size); } -struct xattr_handler squashfs_xattr_security_handler = { +static struct xattr_handler squashfs_xattr_security_handler = { .prefix = XATTR_SECURITY_PREFIX, .list = squashfs_security_list, .get = squashfs_security_get |