Commit 5f3b321da1aa5936c85ed6dec67358239a9d3cfd
1 parent
07724586b4
Exists in
master
and in
7 other branches
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
fs/squashfs/xattr.h
... | ... | @@ -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; |