diff options
author | Christoph Hellwig <hch@lst.de> | 2023-08-30 11:22:59 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2023-08-31 14:12:37 +0200 |
commit | 765aa6b3a462ed69ddcb1c41a6f7f93b8abb7d43 (patch) | |
tree | 4790c8aa1da773358b33432eb4fd9464c287092a /kernel/dma/pool.c | |
parent | 2dcdf8c18d5c1835571bfa40f40ac134c8a1f0f5 (diff) |
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: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chunhui He <hchunhui@mail.ustc.edu.cn>
Reviewed-by: Robin Murphy <roin.murphy@arm.com>
Diffstat (limited to 'kernel/dma/pool.c')
-rw-r--r-- | kernel/dma/pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/dma/pool.c b/kernel/dma/pool.c index 1acec2e22827..b481c48a31a6 100644 --- a/kernel/dma/pool.c +++ b/kernel/dma/pool.c @@ -135,9 +135,9 @@ encrypt_mapping: 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; } |