Skip to contentSkip to conversation

loongarch/dma: remove dma-direct.h

PATCH Applied Miao Wang 2 participants 2 messages Aug 12, 2024 – Aug 19, 2024 LoongArch

lore
Share & tools
lore

Miao Wang

author
#0 lore raw

PATCH 1/1 loongarch/dma: remove dma-direct.h

dma-direct.h is introduced in commit d4b6f1562a3c ("LoongArch:
Add Non-Uniform Memory Access (NUMA) support"). In commit c78c43fe7d42 ("LoongArch: Use acpi_arch_dma_setup() and remove ARCH_HAS_PHYS_TO_DMA"), ARCH_HAS_PHYS_TO_DMA was deselected and the coresponding phys_to_dma and dma_to_phys functions were removed. However, the unused dma-direct.h was left behind, which is removed by this patch.

Fixes c78c43fe7d42 ("LoongArch: Use acpi_arch_dma_setup() and remove ARCH_HAS_PHYS_TO_DMA")
---
 arch/loongarch/include/asm/dma-direct.h | 11 -----------
 1 file changed, 11 deletions(-)
arch/loongarch/include/asm/dma-direct.h deleted +0 -11
deleted file mode 100644
index 75ccd808a2af..000000000000
@@ -1,11 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
- */
-#ifndef _LOONGARCH_DMA_DIRECT_H
-#define _LOONGARCH_DMA_DIRECT_H
-
-dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr);
-phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr);
-
-#endif /* _LOONGARCH_DMA_DIRECT_H */

---
base-commit: 7c626ce4bae1ac14f60076d00eafe71af30450ba
change-id: 20240812-clean-dma-direct-2eef3cb0c987

Best regards,

Signature · 1 line
Miao Wang <[email protected]>
maintainer Applied
#1 lore raw

Queued, thanks.

Huacai

Quoted 44 lines · On Mon, Aug 12, 2024 at 1:30 PM Miao Wang via B4 Relay…

From: Miao Wang <[email protected]>

dma-direct.h is introduced in commit d4b6f1562a3c ("LoongArch:
Add Non-Uniform Memory Access (NUMA) support"). In commit c78c43fe7d42 ("LoongArch: Use acpi_arch_dma_setup() and remove ARCH_HAS_PHYS_TO_DMA"), ARCH_HAS_PHYS_TO_DMA was deselected and the coresponding phys_to_dma and dma_to_phys functions were removed. However, the unused dma-direct.h was left behind, which is removed by this patch.

Fixes c78c43fe7d42 ("LoongArch: Use acpi_arch_dma_setup() and remove ARCH_HAS_PHYS_TO_DMA")
---
 arch/loongarch/include/asm/dma-direct.h | 11 -----------
 1 file changed, 11 deletions(-)
arch/loongarch/include/asm/dma-direct.h deleted +0 -12
deleted file mode 100644
index 75ccd808a2af..000000000000
@@ -1,11 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
- */
-#ifndef _LOONGARCH_DMA_DIRECT_H
-#define _LOONGARCH_DMA_DIRECT_H
-
-dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr);
-phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr);
-
-#endif /* _LOONGARCH_DMA_DIRECT_H */
 
---

base-commit: 7c626ce4bae1ac14f60076d00eafe71af30450ba
change-id: 20240812-clean-dma-direct-2eef3cb0c987

Best regards,
--
Miao Wang <[email protected]>