Skip to content

Commit 4e7d4f2

Browse files
bulwahnvinodkoul
authored andcommitted
dmaengine: ioatdma: remove unused function missed during dma_v2 removal
Commit 7f83264 ("dmaengine: ioatdma: remove ioatdma v2 registration") missed to remove dca2_tag_map_valid() during its removal. Hence, since then, dca2_tag_map_valid() is unused and make CC=clang W=1 warns: drivers/dma/ioat/dca.c:44:19: warning: unused function 'dca2_tag_map_valid' [-Wunused-function] So, remove this unused function and get rid of a -Wused-function warning. Signed-off-by: Lukas Bulwahn <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 8326be9 commit 4e7d4f2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/dma/ioat/dca.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,6 @@
4040
#define DCA2_TAG_MAP_BYTE3 0x82
4141
#define DCA2_TAG_MAP_BYTE4 0x82
4242

43-
/* verify if tag map matches expected values */
44-
static inline int dca2_tag_map_valid(u8 *tag_map)
45-
{
46-
return ((tag_map[0] == DCA2_TAG_MAP_BYTE0) &&
47-
(tag_map[1] == DCA2_TAG_MAP_BYTE1) &&
48-
(tag_map[2] == DCA2_TAG_MAP_BYTE2) &&
49-
(tag_map[3] == DCA2_TAG_MAP_BYTE3) &&
50-
(tag_map[4] == DCA2_TAG_MAP_BYTE4));
51-
}
52-
5343
/*
5444
* "Legacy" DCA systems do not implement the DCA register set in the
5545
* I/OAT device. Software needs direct support for their tag mappings.

0 commit comments

Comments
 (0)