Skip to content

Commit 3cb4503

Browse files
author
Christoph Hellwig
committed
x86: remove cruft from <asm/dma-mapping.h>
<asm/dma-mapping.h> gets pulled in by all drivers using the DMA API. Remove x86 internal variables and unnecessary includes from it. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Konrad Rzeszutek Wilk <[email protected]> Tested-by: Boris Ostrovsky <[email protected]>
1 parent 6424e31 commit 3cb4503

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

arch/x86/include/asm/dma-mapping.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@
22
#ifndef _ASM_X86_DMA_MAPPING_H
33
#define _ASM_X86_DMA_MAPPING_H
44

5-
/*
6-
* IOMMU interface. See Documentation/core-api/dma-api-howto.rst and
7-
* Documentation/core-api/dma-api.rst for documentation.
8-
*/
9-
10-
#include <linux/scatterlist.h>
11-
#include <asm/io.h>
12-
13-
extern int iommu_merge;
14-
extern int panic_on_overflow;
15-
165
extern const struct dma_map_ops *dma_ops;
176

187
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)

arch/x86/include/asm/iommu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
extern int force_iommu, no_iommu;
1010
extern int iommu_detected;
11+
extern int iommu_merge;
12+
extern int panic_on_overflow;
1113

1214
#ifdef CONFIG_SWIOTLB
1315
extern bool x86_swiotlb_enable;

0 commit comments

Comments
 (0)