Commit 5f3b321da1aa5936c85ed6dec67358239a9d3cfd

Authored by Phillip Lougher
1 parent 07724586b4

Squashfs: fix function prototype

The fourth argument should be unsigned.  Also add missing include
so that the function prototype is defined in xattr_id.c

This fixes a couple of sparse warnings.

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>

Showing 2 changed files with 3 additions and 2 deletions Side-by-side Diff

... ... @@ -25,7 +25,7 @@
25 25 extern __le64 *squashfs_read_xattr_id_table(struct super_block *, u64,
26 26 u64 *, int *);
27 27 extern int squashfs_xattr_lookup(struct super_block *, unsigned int, int *,
28   - int *, unsigned long long *);
  28 + unsigned int *, unsigned long long *);
29 29 #else
30 30 static inline __le64 *squashfs_read_xattr_id_table(struct super_block *sb,
31 31 u64 start, u64 *xattr_table_start, int *xattr_ids)
... ... @@ -35,7 +35,7 @@
35 35 }
36 36  
37 37 static inline int squashfs_xattr_lookup(struct super_block *sb,
38   - unsigned int index, int *count, int *size,
  38 + unsigned int index, int *count, unsigned int *size,
39 39 unsigned long long *xattr)
40 40 {
41 41 return 0;
fs/squashfs/xattr_id.c
... ... @@ -34,6 +34,7 @@
34 34 #include "squashfs_fs_sb.h"
35 35 #include "squashfs_fs_i.h"
36 36 #include "squashfs.h"
  37 +#include "xattr.h"
37 38  
38 39 /*
39 40 * Map xattr id using the xattr id look up table