Skip to content

Commit 0bb7b6d

Browse files
authored
Merge pull request ceph#64137 from tchaikov/wip-rbd-with-krbd
rbd: fix unused function warning when WITH_KRBD is disabled Reviewed-by: Ilya Dryomov <[email protected]>
2 parents f2b7c04 + 9362ecc commit 0bb7b6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/rbd/action/Kernel.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ static int do_kernel_list(Formatter *f) {
270270
#endif
271271
}
272272

273+
#ifdef WITH_KRBD
273274
static int get_unsupported_features(librbd::Image &image,
274275
uint64_t *unsupported_features)
275276
{
@@ -373,6 +374,7 @@ static void print_error_description(const char *poolname,
373374
done:
374375
std::cout << "In some cases useful info is found in syslog - try \"dmesg | tail\"." << std::endl;
375376
}
377+
#endif
376378

377379
static int do_kernel_map(const char *poolname, const char *nspace_name,
378380
const char *imgname, const char *snapname,

0 commit comments

Comments
 (0)