]> xenbits.xensource.com Git - people/dstodden/blktap.git/commitdiff
CP-1613: Fix compiler warnings
authorDaniel Stodden <daniel.stodden@citrix.com>
Mon, 5 Apr 2010 19:35:16 +0000 (12:35 -0700)
committerDaniel Stodden <daniel.stodden@citrix.com>
Mon, 5 Apr 2010 19:35:16 +0000 (12:35 -0700)
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.

vhd/lib/libvhd.c

index 761058f00a3ea1cd4be4a1ea8ba619c3065c98ca..5f499afcaf9bbc46382afce2625a81b7121a4a6b 100644 (file)
@@ -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);