lib/ftl: Fix "unused function" error under clang
This is targeted to fix the following error seen under clang: ftl_nv_cache.c:54:1: error: unused function 'nvc_data_blocks' [-Werror,-Wunused-function] nvc_data_blocks(struct ftl_nv_cache *nv_cache) ^ Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: I11d52e76df5872819770d9468b6fa4ae54d8927c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14055 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: <sebastian.brzezinka@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com>
This commit is contained in:
parent
0f068506ca
commit
5f6ce57fb2
@ -15,6 +15,8 @@
|
|||||||
#include "utils/ftl_addr_utils.h"
|
#include "utils/ftl_addr_utils.h"
|
||||||
#include "mngt/ftl_mngt.h"
|
#include "mngt/ftl_mngt.h"
|
||||||
|
|
||||||
|
static inline uint64_t nvc_data_blocks(struct ftl_nv_cache *nv_cache) __attribute__((unused));
|
||||||
|
|
||||||
static inline const struct ftl_layout_region *
|
static inline const struct ftl_layout_region *
|
||||||
nvc_data_region(
|
nvc_data_region(
|
||||||
struct ftl_nv_cache *nv_cache)
|
struct ftl_nv_cache *nv_cache)
|
||||||
|
Loading…
Reference in New Issue
Block a user