From 81bc07669de369208c8ef82d60de5e06f654fd6a Mon Sep 17 00:00:00 2001 From: Petr Tesarik Date: Tue, 16 Oct 2012 23:54:20 +0200 Subject: [PATCH] Fix builds without HED_CONFIG_READAHEAD Cache compaction is only needed when compiled with readahead support. --- libhed/access.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libhed/access.h b/libhed/access.h index e8258d0..b4cabde 100644 --- a/libhed/access.h +++ b/libhed/access.h @@ -142,7 +142,9 @@ static inline void remap_compact(struct remap_control *rc, struct hed_cache *cache, struct hed_block_data **preload, int n) { +#ifdef HED_CONFIG_READAHEAD cache_compact(cache, preload, n); +#endif } #define fixup_register(f) do {} while(0) -- 2.11.4.GIT