diff options
Diffstat (limited to 'drivers/block/blkcache.c')
-rw-r--r-- | drivers/block/blkcache.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/block/blkcache.c b/drivers/block/blkcache.c index 1fa64989d3..ea40929e3e 100644 --- a/drivers/block/blkcache.c +++ b/drivers/block/blkcache.c @@ -21,13 +21,26 @@ struct block_cache_node { char *cache; }; +#ifndef CONFIG_M68K static LIST_HEAD(block_cache); +#else +static struct list_head block_cache; +#endif static struct block_cache_stats _stats = { .max_blocks_per_entry = 8, .max_entries = 32 }; +#ifdef CONFIG_M68K +int blkcache_init(void) +{ + INIT_LIST_HEAD(&block_cache); + + return 0; +} +#endif + static struct block_cache_node *cache_find(int iftype, int devnum, lbaint_t start, lbaint_t blkcnt, unsigned long blksz) |