projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f58e10
)
dmaengine: idxd: Remove the unused function set_completion_address()
author
Jiapeng Chong
<jiapeng.chong@linux.alibaba.com>
Mon, 12 Dec 2022 03:35:14 +0000
(11:35 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Wed, 28 Dec 2022 06:59:06 +0000
(12:29 +0530)
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>
drivers/dma/idxd/dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/idxd/dma.c
b/drivers/dma/idxd/dma.c
index e0874cb4721c8a58e456935bd23bde0a50bab3c2..eb35ca313684596831a60e662004538f6b5b25f4 100644
(file)
--- a/
drivers/dma/idxd/dma.c
+++ b/
drivers/dma/idxd/dma.c
@@
-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,