From 99b9c5347ca416300f66df165779e06b618bdf8e Mon Sep 17 00:00:00 2001 From: Ming Lei Date: Sat, 3 Jan 2015 13:41:32 -0700 Subject: [PATCH] axmap: make axmap_first_free() static Pulled from an earlier patch from Ming, that we no longer need. Signed-off-by: Jens Axboe --- lib/axmap.c | 2 +- lib/axmap.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/axmap.c b/lib/axmap.c index 5b8cb309..68096d89 100644 --- a/lib/axmap.c +++ b/lib/axmap.c @@ -369,7 +369,7 @@ static uint64_t axmap_find_first_free(struct axmap *axmap, unsigned int level, return (uint64_t) -1ULL; } -uint64_t axmap_first_free(struct axmap *axmap) +static uint64_t axmap_first_free(struct axmap *axmap) { if (firstfree_valid(axmap)) return axmap->first_free; diff --git a/lib/axmap.h b/lib/axmap.h index edfeba80..3705a1db 100644 --- a/lib/axmap.h +++ b/lib/axmap.h @@ -11,7 +11,6 @@ void axmap_clear(struct axmap *axmap, uint64_t bit_nr); void axmap_set(struct axmap *axmap, uint64_t bit_nr); unsigned int axmap_set_nr(struct axmap *axmap, uint64_t bit_nr, unsigned int nr_bits); int axmap_isset(struct axmap *axmap, uint64_t bit_nr); -uint64_t axmap_first_free(struct axmap *axmap); uint64_t axmap_next_free(struct axmap *axmap, uint64_t bit_nr); void axmap_reset(struct axmap *axmap); -- 2.25.1