Skip to content

Commit 7698f2f

Browse files
iuliuxAlex Elder
authored andcommitted
libceph: Fix sparse warning
Make ceph_monc_do_poolop() static to remove the following sparse warning: * net/ceph/mon_client.c:616:5: warning: symbol 'ceph_monc_do_poolop' was not declared. Should it be static? Also drops the 'ceph_monc_' prefix, now being a private function. Signed-off-by: Iulius Curt <icurt@ixiacom.com> Signed-off-by: Sage Weil <sage@inktank.com>
1 parent 290e335 commit 7698f2f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎net/ceph/mon_client.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ static void handle_poolop_reply(struct ceph_mon_client *monc,
637637
/*
638638
* Do a synchronous pool op.
639639
*/
640-
int ceph_monc_do_poolop(struct ceph_mon_client *monc, u32 op,
640+
static int do_poolop(struct ceph_mon_client *monc, u32 op,
641641
u32 pool, u64 snapid,
642642
char *buf, int len)
643643
{
@@ -687,7 +687,7 @@ int ceph_monc_do_poolop(struct ceph_mon_client *monc, u32 op,
687687
int ceph_monc_create_snapid(struct ceph_mon_client *monc,
688688
u32 pool, u64 *snapid)
689689
{
690-
return ceph_monc_do_poolop(monc, POOL_OP_CREATE_UNMANAGED_SNAP,
690+
return do_poolop(monc, POOL_OP_CREATE_UNMANAGED_SNAP,
691691
pool, 0, (char *)snapid, sizeof(*snapid));
692692

693693
}
@@ -696,7 +696,7 @@ EXPORT_SYMBOL(ceph_monc_create_snapid);
696696
int ceph_monc_delete_snapid(struct ceph_mon_client *monc,
697697
u32 pool, u64 snapid)
698698
{
699-
return ceph_monc_do_poolop(monc, POOL_OP_CREATE_UNMANAGED_SNAP,
699+
return do_poolop(monc, POOL_OP_CREATE_UNMANAGED_SNAP,
700700
pool, snapid, 0, 0);
701701

702702
}

0 commit comments

Comments
 (0)