From 2763b928de9b79ed9e144950446e59c0cac36a03 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 21 Apr 2016 00:16:17 +0200 Subject: [PATCH] lvmetad: fix compilation without lvmetad# --- lib/cache/lvmetad.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cache/lvmetad.h b/lib/cache/lvmetad.h index 82371d99a..699c9a4b4 100644 --- a/lib/cache/lvmetad.h +++ b/lib/cache/lvmetad.h @@ -154,8 +154,8 @@ void lvmetad_clear_disabled(struct cmd_context *cmd); # else /* LVMETAD_SUPPORT */ # define lvmetad_disconnect() do { } while (0) -# define lvmetad_connect(cmd) do { } while (0) -# define lvmetad_make_unused() do { } while (0) +# define lvmetad_connect(cmd) (0) +# define lvmetad_make_unused(cmd) do { } while (0) # define lvmetad_used() (0) # define lvmetad_set_socket(a) do { } while (0) # define lvmetad_socket_present() (0) @@ -175,7 +175,7 @@ void lvmetad_clear_disabled(struct cmd_context *cmd); # define lvmetad_pvscan_single(cmd, dev, handler, ignore_obsolete) (0) # define lvmetad_pvscan_all_devs(cmd, handler, do_wait) (0) # define lvmetad_pvscan_foreign_vgs(cmd, handler) (0) -# define lvmetad_vg_clear_outdated_pvs(vg) (1) +# define lvmetad_vg_clear_outdated_pvs(vg) do { } while (0) # define lvmetad_validate_global_cache(cmd, force) do { } while (0) # define lvmetad_vg_is_foreign(cmd, vgname, vgid) (0) # define lvmetad_token_matches(cmd) (1) -- 2.43.5