Skip to content

Commit f0368c2

Browse files
krzkvinodkoul
authored andcommitted
dmaengine: fsl-dpaa2-qdma: Drop unused mc_enc()
Static function mc_enc() is not used, W=1 build: dpdmai.c:51:19: error: unused function 'mc_enc' [-Werror,-Wunused-function] Fixes: 26a4d2a ("dmaengine: fsl-dpaa2-qdma: Remove unused function dpdmai_create()") Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 06b80ad commit f0368c2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/dma/fsl-dpaa2-qdma/dpdmai.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ struct dpdmai_cmd_destroy {
4848
__le32 dpdmai_id;
4949
} __packed;
5050

51-
static inline u64 mc_enc(int lsoffset, int width, u64 val)
52-
{
53-
return (val & MAKE_UMASK64(width)) << lsoffset;
54-
}
55-
5651
/**
5752
* dpdmai_open() - Open a control session for the specified object
5853
* @mc_io: Pointer to MC portal's I/O object

0 commit comments

Comments
 (0)