Skip to content

Commit

Permalink
dma-pool: remove a __maybe_unused label in atomic_pool_expand
Browse files Browse the repository at this point in the history
Move the #endif a line so that free_page label is only seen by the
compile pass when actually used.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chunhui He <hchunhui@mail.ustc.edu.cn>
Reviewed-by: Robin Murphy <roin.murphy@arm.com>
  • Loading branch information
Christoph Hellwig committed Aug 31, 2023
1 parent 2dcdf8c commit 765aa6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/dma/pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ static int atomic_pool_expand(struct gen_pool *pool, size_t pool_size,
remove_mapping:
#ifdef CONFIG_DMA_DIRECT_REMAP
dma_common_free_remap(addr, pool_size);
#endif
free_page: __maybe_unused
free_page:
__free_pages(page, order);
#endif
out:
return ret;
}
Expand Down

0 comments on commit 765aa6b

Please sign in to comment.