[ceph:wip-tunables 10/10] net/ceph/crush/mapper.c:309:21: warning: unused variable 'orig_tries'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;
 > 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 <wfg@xxxxxxxxxxxxxxx>                     Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux