Commit 765aa6b3 authored by Christoph Hellwig's avatar Christoph Hellwig

dma-pool: remove a __maybe_unused label in atomic_pool_expand

Move the #endif a line so that free_page label is only seen by the
compile pass when actually used.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarChunhui He <hchunhui@mail.ustc.edu.cn>
Reviewed-by: default avatarRobin Murphy <roin.murphy@arm.com>
parent 2dcdf8c1
...@@ -135,9 +135,9 @@ static int atomic_pool_expand(struct gen_pool *pool, size_t pool_size, ...@@ -135,9 +135,9 @@ static int atomic_pool_expand(struct gen_pool *pool, size_t pool_size,
remove_mapping: remove_mapping:
#ifdef CONFIG_DMA_DIRECT_REMAP #ifdef CONFIG_DMA_DIRECT_REMAP
dma_common_free_remap(addr, pool_size); dma_common_free_remap(addr, pool_size);
#endif free_page:
free_page: __maybe_unused
__free_pages(page, order); __free_pages(page, order);
#endif
out: out:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment