Skip to content

Commit

Permalink
ARM: 8697/1: dma-mapping: Do not pass data to gen_pool_set_algo()
Browse files Browse the repository at this point in the history
gen_pool_first_fit_order_align() does not make use of additional data,
so pass plain NULL there.

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
  • Loading branch information
Vladimir Murzin authored and Russell King committed Sep 28, 2017
1 parent 0d9ac16 commit acb6244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mm/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ static int __init atomic_pool_init(void)

gen_pool_set_algo(atomic_pool,
gen_pool_first_fit_order_align,
(void *)PAGE_SHIFT);
NULL);
pr_info("DMA: preallocated %zu KiB pool for atomic coherent allocations\n",
atomic_pool_size / 1024);
return 0;
Expand Down

0 comments on commit acb6244

Please sign in to comment.