Skip to content

Commit 765aa6b

Browse files
author
Christoph Hellwig
committed
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>
1 parent 2dcdf8c commit 765aa6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/dma/pool.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ static int atomic_pool_expand(struct gen_pool *pool, size_t pool_size,
135135
remove_mapping:
136136
#ifdef CONFIG_DMA_DIRECT_REMAP
137137
dma_common_free_remap(addr, pool_size);
138-
#endif
139-
free_page: __maybe_unused
138+
free_page:
140139
__free_pages(page, order);
140+
#endif
141141
out:
142142
return ret;
143143
}

0 commit comments

Comments
 (0)