diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2012-03-01 17:00:23 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-02 15:36:13 -0500 |
commit | 88b8e133c46792d264c991065c2c395d0b3b5482 (patch) | |
tree | b1830fe3f798160a9bf430e19e9f6f7405d20717 /fs/nfs/dir.c | |
parent | 3862279a5fcf44d0c68fa54a507a5bcd2ab4f0b7 (diff) | |
download | linux-3.10-88b8e133c46792d264c991065c2c395d0b3b5482.tar.gz linux-3.10-88b8e133c46792d264c991065c2c395d0b3b5482.tar.bz2 linux-3.10-88b8e133c46792d264c991065c2c395d0b3b5482.zip |
NFS: Make nfs_cache_array.size a signed integer
Eliminate a number of implicit type casts in comparisons, and these
compiler warnings:
fs/nfs/dir.c: In function ‘nfs_readdir_clear_array’:
fs/nfs/dir.c:264:16: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
fs/nfs/dir.c: In function ‘nfs_readdir_search_for_cookie’:
fs/nfs/dir.c:352:16: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
fs/nfs/dir.c: In function ‘nfs_do_filldir’:
fs/nfs/dir.c:769:38: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
fs/nfs/dir.c:780:9: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index bb132a88f4e..9952170271b 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -207,7 +207,7 @@ struct nfs_cache_array_entry { }; struct nfs_cache_array { - unsigned int size; + int size; int eof_index; u64 last_cookie; struct nfs_cache_array_entry array[0]; |