mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
bcache: Suppress more warnings about set-but-not-used variables
This patch does not change any functionality. Reviewed-by: Michael Lyle <[email protected]> Reviewed-by: Coly Li <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
f0d3814090
commit
42361469ae
2 changed files with 3 additions and 3 deletions
|
|
@ -1072,7 +1072,7 @@ EXPORT_SYMBOL(bch_btree_iter_init);
|
|||
static inline struct bkey *__bch_btree_iter_next(struct btree_iter *iter,
|
||||
btree_iter_cmp_fn *cmp)
|
||||
{
|
||||
struct btree_iter_set unused;
|
||||
struct btree_iter_set b __maybe_unused;
|
||||
struct bkey *ret = NULL;
|
||||
|
||||
if (!btree_iter_end(iter)) {
|
||||
|
|
@ -1087,7 +1087,7 @@ static inline struct bkey *__bch_btree_iter_next(struct btree_iter *iter,
|
|||
}
|
||||
|
||||
if (iter->data->k == iter->data->end)
|
||||
heap_pop(iter, unused, cmp);
|
||||
heap_pop(iter, b, cmp);
|
||||
else
|
||||
heap_sift(iter, 0, cmp);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -493,7 +493,7 @@ static void journal_reclaim(struct cache_set *c)
|
|||
struct cache *ca;
|
||||
uint64_t last_seq;
|
||||
unsigned iter, n = 0;
|
||||
atomic_t p;
|
||||
atomic_t p __maybe_unused;
|
||||
|
||||
atomic_long_inc(&c->reclaim);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue