Skip to contentSkip to conversation

dmaengine: ptdma: remove PT_OFFSET to avoid redefnition

PATCH Applied Sanjay R Mehta 2 participants 2 messages Aug 28, 2021 – Aug 29, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: ptdma: remove PT_OFFSET to avoid redefnition

From: Sanjay R Mehta <[email protected]>

Building on ARCH=um causes a "redefined" warning, so remove this PT_OFFSET macro to avoid the warning.

drivers/dma/ptdma/ptdma.h:34: warning: "PT_OFFSET" redefined
34 | #define PT_OFFSET 0x0
|
In file included from ./arch/um/include/asm/thread_info.h:17,
from ./include/linux/thread_info.h:60,
from ./include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from ./include/linux/preempt.h:78,
from ./include/linux/spinlock.h:55,
from ./include/linux/wait.h:9,
from ./include/linux/wait_bit.h:8,
from ./include/linux/fs.h:6,
from ./include/linux/debugfs.h:15,
from drivers/dma/ptdma/ptdma-debugfs.c:12:
./arch/x86/um/shared/sysdep/ptrace_user.h:4: note: this is the location of the previous definition 4 | #define PT_OFFSET(r) ((r) * sizeof(long))

Fixes 2a99524459ce ("dmaengine: ptdma: Initial driver for the AMD PTDMA")
---
 drivers/dma/ptdma/ptdma.h | 1 -
 1 file changed, 1 deletion(-)
drivers/dma/ptdma/ptdma.h +0 -1
index 860e302..afbf192 100644
@@ -31,7 +31,6 @@
 #define MAX_CMD_QLEN			100
 
 #define PT_ENGINE_PASSTHRU		5
-#define PT_OFFSET			0x0
 
 /* Register Mappings */
 #define IRQ_MASK_REG			0x040
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 5 lines · Sanjay R Mehta

From: Sanjay R Mehta <[email protected]>

Building on ARCH=um causes a "redefined" warning, so remove this PT_OFFSET macro to avoid the warning.

Quoted 16 lines

drivers/dma/ptdma/ptdma.h:34: warning: "PT_OFFSET" redefined
34 | #define PT_OFFSET 0x0
|
In file included from ./arch/um/include/asm/thread_info.h:17,
from ./include/linux/thread_info.h:60,
from ./include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from ./include/linux/preempt.h:78,
from ./include/linux/spinlock.h:55,
from ./include/linux/wait.h:9,
from ./include/linux/wait_bit.h:8,
from ./include/linux/fs.h:6,
from ./include/linux/debugfs.h:15,
from drivers/dma/ptdma/ptdma-debugfs.c:12:
./arch/x86/um/shared/sysdep/ptrace_user.h:4: note: this is the location of the previous definition 4 | #define PT_OFFSET(r) ((r) * sizeof(long))

Applied, thanks

Signature · 1 line
~Vinod