public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [ceph:wip-tunables 10/10] net/ceph/crush/mapper.c:309:21: warning: unused variable 'orig_tries'
@ 2012-07-12 23:42 Fengguang Wu
  0 siblings, 0 replies; only message in thread
From: Fengguang Wu @ 2012-07-12 23:42 UTC (permalink / raw)
  To: kernel-janitors

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@linux.intel.com>                     Intel Corporation

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-12 23:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-12 23:42 [ceph:wip-tunables 10/10] net/ceph/crush/mapper.c:309:21: warning: unused variable 'orig_tries' Fengguang Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox