Commit 0f87ee08564b95389e609699990725efd282021c
Committed by
Phillip Lougher
1 parent
aa5b1894cb
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
fs/squashfs/xattr.c
... | ... | @@ -34,7 +34,7 @@ |
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,7 +228,7 @@ |
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,7 +258,7 @@ |
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,7 +285,7 @@ |
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 |