* [PATCH] crypto: mxs-dcp: fix type of ret for wait_for_completion_timeout
@ 2015-02-07 8:09 Nicholas Mc Guire
2015-02-28 10:33 ` crypto: mxs-dcp - " Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Nicholas Mc Guire @ 2015-02-07 8:09 UTC (permalink / raw)
To: Herbert Xu; +Cc: David S. Miller, linux-crypto, linux-kernel, Nicholas Mc Guire
return type of wait_for_completion_timeout is unsigned long not int, this
patch changes the type of ret from int to unsigned long.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
---
As ret is only used here for wait_for_completion_timeout it can simply
be changed to the appropriate type.
Patch was only compile tested with mxs_defconfig
(implies CONFIG_CRYPTO_DEV_MXS_DCP=y)
Patch is against 3.19.0-rc7 (localversion-next is -next-20150204)
drivers/crypto/mxs-dcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/mxs-dcp.c b/drivers/crypto/mxs-dcp.c
index 829d639..59ed54e 100644
--- a/drivers/crypto/mxs-dcp.c
+++ b/drivers/crypto/mxs-dcp.c
@@ -153,7 +153,7 @@ static int mxs_dcp_start_dma(struct dcp_async_ctx *actx)
struct dcp *sdcp = global_sdcp;
const int chan = actx->chan;
uint32_t stat;
- int ret;
+ unsigned long ret;
struct dcp_dma_desc *desc = &sdcp->coh->desc[actx->chan];
dma_addr_t desc_phys = dma_map_single(sdcp->dev, desc, sizeof(*desc),
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: crypto: mxs-dcp - fix type of ret for wait_for_completion_timeout
2015-02-07 8:09 [PATCH] crypto: mxs-dcp: fix type of ret for wait_for_completion_timeout Nicholas Mc Guire
@ 2015-02-28 10:33 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2015-02-28 10:33 UTC (permalink / raw)
To: Nicholas Mc Guire; +Cc: David S. Miller, linux-crypto, linux-kernel
On Sat, Feb 07, 2015 at 03:09:41AM -0500, Nicholas Mc Guire wrote:
> return type of wait_for_completion_timeout is unsigned long not int, this
> patch changes the type of ret from int to unsigned long.
>
> Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
All four patches applied.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-28 10:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-07 8:09 [PATCH] crypto: mxs-dcp: fix type of ret for wait_for_completion_timeout Nicholas Mc Guire
2015-02-28 10:33 ` crypto: mxs-dcp - " Herbert Xu
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).