History

iommu/dma: Cleanup dma-iommu.h

No need for a __KERNEL__ guard outside uapi and add a missing comment describing the #else cpp statement. Last but not least include <linux/errno.h> instead of the asm version, which is frowned upon.

Christoph Hellwig committed 7 years ago

Commit 185da891 parent cd6c84d1 file · +2 −4Browse files

Unified · Split

include/linux/dma-iommu.h+2−4
@@ -16,9 +16,8 @@ · 15 unmodified lines
1616 #ifndef __DMA_IOMMU_H
1717 #define __DMA_IOMMU_H
1818
19−#ifdef __KERNEL__
19+#include <linux/errno.h>
2020 #include <linux/types.h>
21−#include <asm/errno.h>
2221
2322 #ifdef CONFIG_IOMMU_DMA
2423 #include <linux/dma-mapping.h>
@@ -86,7 +85,7 @@ void iommu_dma_compose_msi_msg(struct msi_desc *desc, · 61 unmodified lines
8685
8786 void iommu_dma_get_resv_regions(struct device *dev, struct list_head *list);
8887
89−#else
88+#else /* CONFIG_IOMMU_DMA */
9089
9190 struct iommu_domain;
9291 struct msi_desc;
@@ -128,5 +127,4 @@ static inline void iommu_dma_get_resv_regions(struct device *dev, struct list_he · 35 unmodified lines
128127 }
129128
130129 #endif /* CONFIG_IOMMU_DMA */
131−#endif /* __KERNEL__ */
132130 #endif /* __DMA_IOMMU_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t