ftl: map: only declare __wrap_find_block() in testing mode

tags/0.1.0
S.J.R. van Schaik 7 years ago
parent adbd045af5
commit 36971300b0
  1. 2
      source/ftl/map.c

@ -270,10 +270,10 @@ int find_block(struct ftl_map *map, struct ftl_page_group *group,
#ifdef find_block
#undef find_block
#define find_block __wrap_find_block
#endif
int find_block(struct ftl_map *map, struct ftl_page_group *group,
uint32_t *where, uint32_t block);
#endif
/* Given the block number of the first block, attempts to use binary search to
* find the last block that is in use.

Loading…
Cancel
Save