Skip to content

Commit b129125

Browse files
mrutland-armctmarinas
authored andcommitted
arm64: asm-offsets: remove DMA_{TO,FROM}_DEVICE
The DMA_TO_DEVICE and DMA_FROM_DEVICE defintitons in asm-offsets duplicate the common defintions from <linux/dma-direction.h> (which used to live in <linux/dma-mapping.h>), and haven't been used from asseembly code since commit: 7eacf18 ("arm64: mm: Remove assembly DMA cache maintenance wrappers") Remove them both. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20241007123921.549340-7-mark.rutland@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 4ce689b commit b129125

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/arm64/kernel/asm-offsets.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <linux/ftrace.h>
1313
#include <linux/kexec.h>
1414
#include <linux/mm.h>
15-
#include <linux/dma-mapping.h>
1615
#include <linux/kvm_host.h>
1716
#include <linux/preempt.h>
1817
#include <linux/suspend.h>
@@ -96,9 +95,6 @@ int main(void)
9695
DEFINE(FREGS_SIZE, sizeof(struct ftrace_regs));
9796
BLANK();
9897
#endif
99-
DEFINE(DMA_TO_DEVICE, DMA_TO_DEVICE);
100-
DEFINE(DMA_FROM_DEVICE, DMA_FROM_DEVICE);
101-
BLANK();
10298
DEFINE(PREEMPT_DISABLE_OFFSET, PREEMPT_DISABLE_OFFSET);
10399
BLANK();
104100
DEFINE(CPU_BOOT_TASK, offsetof(struct secondary_data, task));

0 commit comments

Comments
 (0)