Skip to contentSkip to conversation

dmaengine: idxd: Remove the unused function set_completion_address()

PATCH Applied Jiapeng Chong 3 participants 3 messages Dec 12, 2022 – Dec 28, 2022

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

PATCH 1/1 dmaengine: idxd: Remove the unused function set_completion_address()

The function set_completion_address is defined in the dma.c file, but not called elsewhere, so remove this unused function.

drivers/dma/idxd/dma.c:66:20: warning: unused function 'set_completion_address'.

---
 drivers/dma/idxd/dma.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/dma/idxd/dma.c +0 -6
index e0874cb4721c..eb35ca313684 100644
@@ -63,12 +63,6 @@ static void op_flag_setup(unsigned long flags, u32 *desc_flags)
 		*desc_flags |= IDXD_OP_FLAG_RCI;
 }
 
-static inline void set_completion_address(struct idxd_desc *desc,
-					  u64 *compl_addr)
-{
-		*compl_addr = desc->compl_dma;
-}
-
 static inline void idxd_prep_desc_common(struct idxd_wq *wq,
 					 struct dsa_hw_desc *hw, char opcode,
 					 u64 addr_f1, u64 addr_f2, u64 len,
Signature · 1 line
2.20.1.7.g153144c
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Jiapeng Chong

The function set_completion_address is defined in the dma.c file, but not called elsewhere, so remove this unused function.

drivers/dma/idxd/dma.c:66:20: warning: unused function 'set_completion_address'.

Thanks for the cleanup

Quoted 21 lines
---
  drivers/dma/idxd/dma.c | 6 ------
  1 file changed, 6 deletions(-)
drivers/dma/idxd/dma.c +0 -6
index e0874cb4721c..eb35ca313684 100644
@@ -63,12 +63,6 @@ static void op_flag_setup(unsigned long flags, u32 *desc_flags)
  		*desc_flags |= IDXD_OP_FLAG_RCI;
  }
 
-static inline void set_completion_address(struct idxd_desc *desc,
-					  u64 *compl_addr)
-{
-		*compl_addr = desc->compl_dma;
-}
-
  static inline void idxd_prep_desc_common(struct idxd_wq *wq,
  					 struct dsa_hw_desc *hw, char opcode,
  					 u64 addr_f1, u64 addr_f2, u64 len,
maintainer Applied
#2 lore raw
In reply to Jiapeng Chong
Quoted 2 lines · Jiapeng Chong

The function set_completion_address is defined in the dma.c file, but not called elsewhere, so remove this unused function.

Applied, thanks

Signature · 1 line
~Vinod