dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
	 Vinod Koul <vkoul@kernel.org>,
	 Gustavo Pimentel <Gustavo.Pimentel@synopsys.com>,
	 Frank Li <Frank.Li@nxp.com>, Rob Herring <robh@kernel.org>
Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org,
	 linux-arm-msm@vger.kernel.org,
	 Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Subject: [PATCH 2/5] dmaengine: fsl-dpaa2-qdma: Drop unused mc_enc()
Date: Sun, 25 May 2025 21:26:02 +0200	[thread overview]
Message-ID: <20250525-dma-fixes-v1-2-89d06dac9bcb@linaro.org> (raw)
In-Reply-To: <20250525-dma-fixes-v1-0-89d06dac9bcb@linaro.org>

Static function mc_enc() is not used, W=1 build:

  dpdmai.c:51:19: error: unused function 'mc_enc' [-Werror,-Wunused-function]

Fixes: 26a4d2aedac2 ("dmaengine: fsl-dpaa2-qdma: Remove unused function dpdmai_create()")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/dma/fsl-dpaa2-qdma/dpdmai.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/dma/fsl-dpaa2-qdma/dpdmai.c b/drivers/dma/fsl-dpaa2-qdma/dpdmai.c
index b4323d243d6de8a1ec77436ce45579914230b9b6..4be81db24a1945fde62d9d7a00b9809a65271101 100644
--- a/drivers/dma/fsl-dpaa2-qdma/dpdmai.c
+++ b/drivers/dma/fsl-dpaa2-qdma/dpdmai.c
@@ -48,11 +48,6 @@ struct dpdmai_cmd_destroy {
 	__le32 dpdmai_id;
 } __packed;
 
-static inline u64 mc_enc(int lsoffset, int width, u64 val)
-{
-	return (val & MAKE_UMASK64(width)) << lsoffset;
-}
-
 /**
  * dpdmai_open() - Open a control session for the specified object
  * @mc_io:	Pointer to MC portal's I/O object

-- 
2.45.2


  parent reply	other threads:[~2025-05-25 19:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-25 19:26 [PATCH 0/5] dmaengine: Minor fixes and cleanups Krzysztof Kozlowski
2025-05-25 19:26 ` [PATCH 1/5] dmaengine: dw-edma: Drop unused dchan2dev() and chan2dev() Krzysztof Kozlowski
2025-05-25 19:26 ` Krzysztof Kozlowski [this message]
2025-05-25 19:26 ` [PATCH 3/5] dmaengine: qcom: gpi: Drop unused gpi_write_reg_field() Krzysztof Kozlowski
2025-05-25 19:26 ` [PATCH 4/5] dmaengine: fsl-qdma: Add missing fsl_qdma_format kerneldoc Krzysztof Kozlowski
2025-05-25 19:26 ` [PATCH 5/5] dmaengine: mmp: Fix again Wvoid-pointer-to-enum-cast warning Krzysztof Kozlowski
2025-06-26 22:48 ` [PATCH 0/5] dmaengine: Minor fixes and cleanups Vinod Koul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250525-dma-fixes-v1-2-89d06dac9bcb@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=Frank.Li@nxp.com \
    --cc=Gustavo.Pimentel@synopsys.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=robh@kernel.org \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).