]> git.baikalelectronics.ru Git - kernel.git/commit
dma-mapping: benchmark: extract a common header file for map_benchmark definition
authorTian Tao <tiantao6@hisilicon.com>
Tue, 8 Mar 2022 08:59:10 +0000 (16:59 +0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 10 Mar 2022 06:41:14 +0000 (07:41 +0100)
commitd3536ed835cb246d926a4da1548af234d434706a
tree58e4e60ea23ca5e7bd637d7838670579b1cd6a58
parent7c23ade675b71f7d9e88ffe0ab9d3f3b88b44b04
dma-mapping: benchmark: extract a common header file for map_benchmark definition

kernel/dma/map_benchmark.c and selftests/dma/dma_map_benchmark.c
have duplicate map_benchmark definitions, which tends to lead to
inconsistent changes to map_benchmark on both sides, extract a
common header file to avoid this problem.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Acked-by: Barry Song <song.bao.hua@hisilicon.com>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/map_benchmark.h [new file with mode: 0644]
kernel/dma/map_benchmark.c
tools/testing/selftests/dma/dma_map_benchmark.c