Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1391405 > unrolled thread

[PATCH 0/5] Use dma_pool_zalloc

Started byJulia Lawall <Julia.Lawall@lip6.fr>
First post2016-04-29 22:30 +0200
Last post2016-05-03 08:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/5] Use dma_pool_zalloc Julia Lawall <Julia.Lawall@lip6.fr> - 2016-04-29 22:30 +0200
    Re: [PATCH 0/5] Use dma_pool_zalloc Vinod Koul <vinod.koul@intel.com> - 2016-05-03 08:50 +0200

#1391405 — [PATCH 0/5] Use dma_pool_zalloc

FromJulia Lawall <Julia.Lawall@lip6.fr>
Date2016-04-29 22:30 +0200
Subject[PATCH 0/5] Use dma_pool_zalloc
Message-ID<rtncZ-3HL-5@gated-at.bofh.it>
Dma_pool_zalloc combines dma_pool_alloc and memset 0.  The semantic patch
that makes this transformation is as follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
type T;
T *d;
expression e;
statement S;
@@

        d =
-            dma_pool_alloc
+            dma_pool_zalloc
             (...);
        if (!d) S
-       memset(d, 0, sizeof(T));

@@
expression d,e;
statement S;
@@

        d =
-            dma_pool_alloc
+            dma_pool_zalloc
             (...);
        if (!d) S
-       memset(d, 0, sizeof(*d));
// </smpl>

---

 drivers/crypto/marvell/tdma.c    |    5 ++---
 drivers/dma/fsldma.c             |    3 +--
 drivers/dma/ioat/init.c          |    5 ++---
 drivers/dma/mmp_pdma.c           |    3 +--
 drivers/dma/xilinx/xilinx_vdma.c |    3 +--
 5 files changed, 7 insertions(+), 12 deletions(-)

[toc] | [next] | [standalone]


#1393087

FromVinod Koul <vinod.koul@intel.com>
Date2016-05-03 08:50 +0200
Message-ID<ruCjD-309-3@gated-at.bofh.it>
In reply to#1391405
On Fri, Apr 29, 2016 at 10:09:07PM +0200, Julia Lawall wrote:
> Dma_pool_zalloc combines dma_pool_alloc and memset 0.  The semantic patch
> that makes this transformation is as follows: (http://coccinelle.lip6.fr/)

Applied all dmaengine patches

-- 
~Vinod

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web