aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2010-05-13 19:32:22 -0400
committerPhillip Lougher <phillip@lougher.demon.co.uk>2010-05-17 15:06:56 -0400
commit0f87ee08564b95389e609699990725efd282021c (patch)
tree57d6655eab77057968557e2a414536cb56a7c2ba /fs
parentaa5b1894cbc700d7462947c017ca9b7bcda1e8ed (diff)
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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/squashfs/xattr.c b/fs/squashfs/xattr.c
index 147ecc3f69e3..de03889050b1 100644
--- a/fs/squashfs/xattr.c
+++ b/fs/squashfs/xattr.c
@@ -34,7 +34,7 @@
34#include "squashfs_fs_i.h" 34#include "squashfs_fs_i.h"
35#include "squashfs.h" 35#include "squashfs.h"
36 36
37static inline struct xattr_handler *squashfs_xattr_handler(int); 37static struct xattr_handler *squashfs_xattr_handler(int);
38 38
39ssize_t squashfs_listxattr(struct dentry *d, char *buffer, 39ssize_t squashfs_listxattr(struct dentry *d, char *buffer,
40 size_t buffer_size) 40 size_t buffer_size)
@@ -228,7 +228,7 @@ static int squashfs_user_get(struct dentry *d, const char *name, void *buffer,
228 buffer, size); 228 buffer, size);
229} 229}
230 230
231struct xattr_handler squashfs_xattr_user_handler = { 231static struct xattr_handler squashfs_xattr_user_handler = {
232 .prefix = XATTR_USER_PREFIX, 232 .prefix = XATTR_USER_PREFIX,
233 .list = squashfs_user_list, 233 .list = squashfs_user_list,
234 .get = squashfs_user_get 234 .get = squashfs_user_get
@@ -258,7 +258,7 @@ static int squashfs_trusted_get(struct dentry *d, const char *name,
258 buffer, size); 258 buffer, size);
259} 259}
260 260
261struct xattr_handler squashfs_xattr_trusted_handler = { 261static struct xattr_handler squashfs_xattr_trusted_handler = {
262 .prefix = XATTR_TRUSTED_PREFIX, 262 .prefix = XATTR_TRUSTED_PREFIX,
263 .list = squashfs_trusted_list, 263 .list = squashfs_trusted_list,
264 .get = squashfs_trusted_get 264 .get = squashfs_trusted_get
@@ -285,7 +285,7 @@ static int squashfs_security_get(struct dentry *d, const char *name,
285 buffer, size); 285 buffer, size);
286} 286}
287 287
288struct xattr_handler squashfs_xattr_security_handler = { 288static struct xattr_handler squashfs_xattr_security_handler = {
289 .prefix = XATTR_SECURITY_PREFIX, 289 .prefix = XATTR_SECURITY_PREFIX,
290 .list = squashfs_security_list, 290 .list = squashfs_security_list,
291 .get = squashfs_security_get 291 .get = squashfs_security_get