net/ceph/crush/mapper.c:309:21: warning: unused variable 'orig_tries'
PATCH 10/10 net/ceph/crush/mapper.c:309:21: warning: unused variable 'orig_tries'
Hi caleb,
There are new compile warnings show up in
tree: git://github.com/ceph/ceph-client.git wip-tunables head: 891d71b246d89f03fce85c6503d2429fbe628114 commit: 891d71b246d89f03fce85c6503d2429fbe628114 [10/10] CRUSH: allow OSD's to decode crush tunables
All warnings:
net/ceph/crush/mapper.c: In function 'crush_choose':net/ceph/crush/mapper.c:309:21: warning: unused variable 'orig_tries' [-Wunused-variable] net/ceph/osdmap.c: In function 'crush_decode':net/ceph/osdmap.c:302:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
vim +309 net/ceph/crush/mapper.c
306 int item = 0;
307 int itemtype;
308 int collide, reject;
Quoted 1 line
309 const unsigned int
orig_tries= 5; /* attempts before we fall back to search */
310
311 dprintk("CHOOSE%s bucket %d x %d outpos %d numrep %d\n", recurse_to_leaf ? "_LEAF" : "",
312 bucket->id, x, outpos, numrep);
---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu <[email protected]> Intel Corporation