From 2328c1d6dfac8dc9891b031caa8baf2f35e0d0cb Mon Sep 17 00:00:00 2001 From: Michael Benedict Date: Tue, 27 Aug 2019 22:14:36 +1000 Subject: [PATCH] mm: silence enum conversion warnings Signed-off-by: Michael Benedict --- mm/backing-dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/backing-dev.c b/mm/backing-dev.c index de0193317682..6dbc8515ade2 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -927,7 +927,7 @@ static atomic_t nr_wb_congested[2]; void clear_wb_congested(struct bdi_writeback_congested *congested, int sync) { wait_queue_head_t *wqh = &congestion_wqh[sync]; - enum wb_state bit; + enum wb_congested_state bit; bit = sync ? WB_sync_congested : WB_async_congested; if (test_and_clear_bit(bit, &congested->state)) @@ -940,7 +940,7 @@ EXPORT_SYMBOL(clear_wb_congested); void set_wb_congested(struct bdi_writeback_congested *congested, int sync) { - enum wb_state bit; + enum wb_congested_state bit; bit = sync ? WB_sync_congested : WB_async_congested; if (!test_and_set_bit(bit, &congested->state)) -- 2.20.1