Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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'.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3416
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20221212033514.5831-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Jiapeng Chong and committed by
Vinod Koul
5840c891 3f58e106

-6
-6
drivers/dma/idxd/dma.c
··· 63 63 *desc_flags |= IDXD_OP_FLAG_RCI; 64 64 } 65 65 66 - static inline void set_completion_address(struct idxd_desc *desc, 67 - u64 *compl_addr) 68 - { 69 - *compl_addr = desc->compl_dma; 70 - } 71 - 72 66 static inline void idxd_prep_desc_common(struct idxd_wq *wq, 73 67 struct dsa_hw_desc *hw, char opcode, 74 68 u64 addr_f1, u64 addr_f2, u64 len,