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)
commit8ddde07a3d285a0f3cec14924446608320fdc013
tree58e4e60ea23ca5e7bd637d7838670579b1cd6a58
parent80e4390981618e290616dbd06ea190d4576f219d
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