From: Daniel Stodden Date: Mon, 5 Apr 2010 19:35:16 +0000 (-0700) Subject: CP-1613: Fix compiler warnings X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=be3b0fde5377ea407de45802654769b941e6a0a5;p=people%2Fdstodden%2Fblktap.git CP-1613: Fix compiler warnings The vhd_cache_init/enabled calls were redeclared inline after their original declaration, yielding an ugly warning. These are module members, not header macros. Safe to leave the inlining to the compiler. --- diff --git a/vhd/lib/libvhd.c b/vhd/lib/libvhd.c index 761058f..5f499af 100644 --- a/vhd/lib/libvhd.c +++ b/vhd/lib/libvhd.c @@ -3558,13 +3558,13 @@ vhd_io_write(vhd_context_t *ctx, char *buf, uint64_t sec, uint32_t secs) return __vhd_io_dynamic_write(ctx, buf, sec, secs); } -static inline void +static void vhd_cache_init(vhd_context_t *ctx) { INIT_LIST_HEAD(&ctx->next); } -static inline int +static int vhd_cache_enabled(vhd_context_t *ctx) { return vhd_flag_test(ctx->oflags, VHD_OPEN_CACHED);