diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2015-11-06 19:32:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-06 20:50:42 -0500 |
commit | 09ef29e0f6ac9f08ba4cc501ab4a3c33be526343 (patch) | |
tree | 2b02f0596945e75e11e3c7262b4cf3b8616587c2 /fs/nilfs2/dat.c | |
parent | c35c7ac5da8ddfd7c6cd1acc29b052a15f437e24 (diff) |
nilfs2: fix gcc unused-but-set-variable warnings
Fix the following build warnings:
$ make W=1
[...]
CC [M] fs/nilfs2/btree.o
fs/nilfs2/btree.c: In function 'nilfs_btree_split':
fs/nilfs2/btree.c:923:8: warning: variable 'newptr' set but not used [-Wunused-but-set-variable]
__u64 newptr;
^
fs/nilfs2/btree.c:922:8: warning: variable 'newkey' set but not used [-Wunused-but-set-variable]
__u64 newkey;
^
CC [M] fs/nilfs2/dat.o
fs/nilfs2/dat.c: In function 'nilfs_dat_prepare_end':
fs/nilfs2/dat.c:158:8: warning: variable 'start' set but not used [-Wunused-but-set-variable]
__u64 start;
^
CC [M] fs/nilfs2/segment.o
fs/nilfs2/segment.c: In function 'nilfs_segctor_do_immediate_flush':
fs/nilfs2/segment.c:2433:6: warning: variable 'err' set but not used [-Wunused-but-set-variable]
int err;
^
CC [M] fs/nilfs2/sufile.o
fs/nilfs2/sufile.c: In function 'nilfs_sufile_alloc':
fs/nilfs2/sufile.c:320:27: warning: variable 'ncleansegs' set but not used [-Wunused-but-set-variable]
unsigned long nsegments, ncleansegs, nsus, cnt;
^
CC [M] fs/nilfs2/alloc.o
fs/nilfs2/alloc.c: In function 'nilfs_palloc_prepare_alloc_entry':
fs/nilfs2/alloc.c:478:38: warning: variable 'groups_per_desc_block' set but not used [-Wunused-but-set-variable]
unsigned long n, entries_per_group, groups_per_desc_block;
^
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2/dat.c')
-rw-r--r-- | fs/nilfs2/dat.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nilfs2/dat.c b/fs/nilfs2/dat.c index 0d5fada91191..7dc23f100e57 100644 --- a/fs/nilfs2/dat.c +++ b/fs/nilfs2/dat.c | |||
@@ -155,7 +155,6 @@ void nilfs_dat_commit_start(struct inode *dat, struct nilfs_palloc_req *req, | |||
155 | int nilfs_dat_prepare_end(struct inode *dat, struct nilfs_palloc_req *req) | 155 | int nilfs_dat_prepare_end(struct inode *dat, struct nilfs_palloc_req *req) |
156 | { | 156 | { |
157 | struct nilfs_dat_entry *entry; | 157 | struct nilfs_dat_entry *entry; |
158 | __u64 start; | ||
159 | sector_t blocknr; | 158 | sector_t blocknr; |
160 | void *kaddr; | 159 | void *kaddr; |
161 | int ret; | 160 | int ret; |
@@ -169,7 +168,6 @@ int nilfs_dat_prepare_end(struct inode *dat, struct nilfs_palloc_req *req) | |||
169 | kaddr = kmap_atomic(req->pr_entry_bh->b_page); | 168 | kaddr = kmap_atomic(req->pr_entry_bh->b_page); |
170 | entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, | 169 | entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, |
171 | req->pr_entry_bh, kaddr); | 170 | req->pr_entry_bh, kaddr); |
172 | start = le64_to_cpu(entry->de_start); | ||
173 | blocknr = le64_to_cpu(entry->de_blocknr); | 171 | blocknr = le64_to_cpu(entry->de_blocknr); |
174 | kunmap_atomic(kaddr); | 172 | kunmap_atomic(kaddr); |
175 | 173 | ||