Skip to content

Commit c5cd037

Browse files
author
Christoph Hellwig
committed
dma-mapping: provide a generic asm/dma-mapping.h
For architectures that just use the generic dma_noop_ops we can provide a generic version of dma-mapping.h. Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent cea9d03 commit c5cd037

8 files changed

Lines changed: 14 additions & 64 deletions

File tree

‎MAINTAINERS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4338,6 +4338,7 @@ F: lib/dma-noop.c
43384338
F: lib/dma-virt.c
43394339
F: drivers/base/dma-mapping.c
43404340
F: drivers/base/dma-coherent.c
4341+
F: include/asm-generic/dma-mapping.h
43414342
F: include/linux/dma-direct.h
43424343
F: include/linux/dma-mapping.h
43434344

‎arch/m32r/include/asm/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
generic-y += clkdev.h
22
generic-y += current.h
3+
generic-y += dma-mapping.h
34
generic-y += exec.h
45
generic-y += extable.h
56
generic-y += irq_work.h

‎arch/m32r/include/asm/dma-mapping.h‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎arch/riscv/include/asm/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ generic-y += device.h
77
generic-y += div64.h
88
generic-y += dma.h
99
generic-y += dma-contiguous.h
10+
generic-y += dma-mapping.h
1011
generic-y += emergency-restart.h
1112
generic-y += errno.h
1213
generic-y += exec.h

‎arch/riscv/include/asm/dma-mapping.h‎

Lines changed: 0 additions & 30 deletions
This file was deleted.

‎arch/s390/include/asm/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ generic-y += cacheflush.h
44
generic-y += clkdev.h
55
generic-y += device.h
66
generic-y += dma-contiguous.h
7+
generic-y += dma-mapping.h
78
generic-y += div64.h
89
generic-y += emergency-restart.h
910
generic-y += export.h

‎arch/s390/include/asm/dma-mapping.h‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎include/asm-generic/dma-mapping.h‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
#ifndef _ASM_GENERIC_DMA_MAPPING_H
3+
#define _ASM_GENERIC_DMA_MAPPING_H
4+
5+
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
6+
{
7+
return &dma_noop_ops;
8+
}
9+
10+
#endif /* _ASM_GENERIC_DMA_MAPPING_H */

0 commit comments

Comments
 (0)