linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] crypto: cavium remove casting dma_alloc
@ 2019-06-23 20:48 Vasyl Gomonovych
  2019-06-23 21:34 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Vasyl Gomonovych @ 2019-06-23 20:48 UTC (permalink / raw)
  To: gomonovych
  Cc: George Cherian, Herbert Xu, David S. Miller, linux-crypto, linux-kernel

From: Vasyl <gomonovych@gmail.com>

Generated by:  alloc_cast.cocci

Signed-off-by: Vasyl <gomonovych@gmail.com>
---
 drivers/crypto/cavium/cpt/cptvf_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/cavium/cpt/cptvf_main.c b/drivers/crypto/cavium/cpt/cptvf_main.c
index 0f72e9abdefe..e9b5c4c70317 100644
--- a/drivers/crypto/cavium/cpt/cptvf_main.c
+++ b/drivers/crypto/cavium/cpt/cptvf_main.c
@@ -233,7 +233,7 @@ static int alloc_command_queues(struct cpt_vf *cptvf,
 
 			c_size = (rem_q_size > qcsize_bytes) ? qcsize_bytes :
 					rem_q_size;
-			curr->head = (u8 *)dma_alloc_coherent(&pdev->dev,
+			curr->head = dma_alloc_coherent(&pdev->dev,
 							      c_size + CPT_NEXT_CHUNK_PTR_SIZE,
 							      &curr->dma_addr,
 							      GFP_KERNEL);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: cavium remove casting dma_alloc
  2019-06-23 20:48 [PATCH] crypto: cavium remove casting dma_alloc Vasyl Gomonovych
@ 2019-06-23 21:34 ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2019-06-23 21:34 UTC (permalink / raw)
  To: gomonovych; +Cc: george.cherian, herbert, linux-crypto, linux-kernel

From: Vasyl Gomonovych <gomonovych@gmail.com>
Date: Sun, 23 Jun 2019 22:48:49 +0200

> @@ -233,7 +233,7 @@ static int alloc_command_queues(struct cpt_vf *cptvf,
>  
>  			c_size = (rem_q_size > qcsize_bytes) ? qcsize_bytes :
>  					rem_q_size;
> -			curr->head = (u8 *)dma_alloc_coherent(&pdev->dev,
> +			curr->head = dma_alloc_coherent(&pdev->dev,
>  							      c_size + CPT_NEXT_CHUNK_PTR_SIZE,
>  							      &curr->dma_addr,
>  							      GFP_KERNEL);

Please fix up the indentation of the 2nd, 3rd, and 4th line of the call
if you do this.  Each of those lines should start precisely at the
first column after the openning parenthesis of the first line.

Thank you.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] crypto: cavium remove casting dma_alloc
@ 2019-06-23 20:50 Vasyl Gomonovych
  0 siblings, 0 replies; 3+ messages in thread
From: Vasyl Gomonovych @ 2019-06-23 20:50 UTC (permalink / raw)
  To: george.cherian, herbert, davem, linux-crypto, linux-kernel; +Cc: Vasyl

From: Vasyl <gomonovych@gmail.com>

Generated by:  alloc_cast.cocci

Signed-off-by: Vasyl <gomonovych@gmail.com>
---
 drivers/crypto/cavium/cpt/cptvf_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/cavium/cpt/cptvf_main.c b/drivers/crypto/cavium/cpt/cptvf_main.c
index 0f72e9abdefe..e9b5c4c70317 100644
--- a/drivers/crypto/cavium/cpt/cptvf_main.c
+++ b/drivers/crypto/cavium/cpt/cptvf_main.c
@@ -233,7 +233,7 @@ static int alloc_command_queues(struct cpt_vf *cptvf,
 
 			c_size = (rem_q_size > qcsize_bytes) ? qcsize_bytes :
 					rem_q_size;
-			curr->head = (u8 *)dma_alloc_coherent(&pdev->dev,
+			curr->head = dma_alloc_coherent(&pdev->dev,
 							      c_size + CPT_NEXT_CHUNK_PTR_SIZE,
 							      &curr->dma_addr,
 							      GFP_KERNEL);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-23 21:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-23 20:48 [PATCH] crypto: cavium remove casting dma_alloc Vasyl Gomonovych
2019-06-23 21:34 ` David Miller
2019-06-23 20:50 Vasyl Gomonovych

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).