diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-04-27 19:01:25 -0400 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-05-02 18:08:08 -0400 |
commit | 1ca1a111b1e6be843c9ce5245dcd570312998d94 (patch) | |
tree | e9f14300df896a4c7ee4f03db09cf08ddd027471 /fs/ocfs2/export.c | |
parent | 6e4b0d5692cd27d3c9be893a9f5939a9cafbb09f (diff) |
ocfs2: fix sparse warnings in fs/ocfs2
None of these are actually harmful, but the noise makes looking for real
problems difficult.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/export.c')
-rw-r--r-- | fs/ocfs2/export.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/ocfs2/export.c b/fs/ocfs2/export.c index 56e1fefc1205..bc48177bd183 100644 --- a/fs/ocfs2/export.c +++ b/fs/ocfs2/export.c | |||
@@ -140,7 +140,7 @@ bail: | |||
140 | return parent; | 140 | return parent; |
141 | } | 141 | } |
142 | 142 | ||
143 | static int ocfs2_encode_fh(struct dentry *dentry, __be32 *fh, int *max_len, | 143 | static int ocfs2_encode_fh(struct dentry *dentry, u32 *fh_in, int *max_len, |
144 | int connectable) | 144 | int connectable) |
145 | { | 145 | { |
146 | struct inode *inode = dentry->d_inode; | 146 | struct inode *inode = dentry->d_inode; |
@@ -148,6 +148,7 @@ static int ocfs2_encode_fh(struct dentry *dentry, __be32 *fh, int *max_len, | |||
148 | int type = 1; | 148 | int type = 1; |
149 | u64 blkno; | 149 | u64 blkno; |
150 | u32 generation; | 150 | u32 generation; |
151 | __le32 *fh = (__force __le32 *) fh_in; | ||
151 | 152 | ||
152 | mlog_entry("(0x%p, '%.*s', 0x%p, %d, %d)\n", dentry, | 153 | mlog_entry("(0x%p, '%.*s', 0x%p, %d, %d)\n", dentry, |
153 | dentry->d_name.len, dentry->d_name.name, | 154 | dentry->d_name.len, dentry->d_name.name, |
@@ -199,7 +200,7 @@ bail: | |||
199 | return type; | 200 | return type; |
200 | } | 201 | } |
201 | 202 | ||
202 | static struct dentry *ocfs2_decode_fh(struct super_block *sb, __be32 *fh, | 203 | static struct dentry *ocfs2_decode_fh(struct super_block *sb, u32 *fh_in, |
203 | int fh_len, int fileid_type, | 204 | int fh_len, int fileid_type, |
204 | int (*acceptable)(void *context, | 205 | int (*acceptable)(void *context, |
205 | struct dentry *de), | 206 | struct dentry *de), |
@@ -207,6 +208,7 @@ static struct dentry *ocfs2_decode_fh(struct super_block *sb, __be32 *fh, | |||
207 | { | 208 | { |
208 | struct ocfs2_inode_handle handle, parent; | 209 | struct ocfs2_inode_handle handle, parent; |
209 | struct dentry *ret = NULL; | 210 | struct dentry *ret = NULL; |
211 | __le32 *fh = (__force __le32 *) fh_in; | ||
210 | 212 | ||
211 | mlog_entry("(0x%p, 0x%p, %d, %d, 0x%p, 0x%p)\n", | 213 | mlog_entry("(0x%p, 0x%p, %d, %d, 0x%p, 0x%p)\n", |
212 | sb, fh, fh_len, fileid_type, acceptable, context); | 214 | sb, fh, fh_len, fileid_type, acceptable, context); |