mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + sh-remove-call-to-memset-after-dma_alloc_coherent.patch added to -mm tree
@ 2020-06-02  0:55 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2020-06-02  0:55 UTC (permalink / raw)
  To: amodra, bin.meng, chenzhou10, dalias, geert+renesas, glaubitz,
	krzk, kuninori.morimoto.gx, mm-commits, romain.naour, sam, ysato


The patch titled
     Subject: sh: remove call to memset after dma_alloc_coherent
has been added to the -mm tree.  Its filename is
     sh-remove-call-to-memset-after-dma_alloc_coherent.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/sh-remove-call-to-memset-after-dma_alloc_coherent.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/sh-remove-call-to-memset-after-dma_alloc_coherent.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Chen Zhou <chenzhou10@huawei.com>
Subject: sh: remove call to memset after dma_alloc_coherent

Function dma_alloc_coherent use in buf already zeroes out memory,
so memset is not needed.

Link: https://marc.info/?l=linux-sh&m=157793031102356
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Cc: Alan Modra <amodra@gmail.com>
Cc: Bin Meng <bin.meng@windriver.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Rich Felker <dalias@libc.org>
Cc: Romain Naour <romain.naour@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/sh/mm/consistent.c |    2 --
 1 file changed, 2 deletions(-)

--- a/arch/sh/mm/consistent.c~sh-remove-call-to-memset-after-dma_alloc_coherent
+++ a/arch/sh/mm/consistent.c
@@ -57,8 +57,6 @@ int __init platform_resource_setup_memor
 		return -ENOMEM;
 	}
 
-	memset(buf, 0, memsize);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-02  0:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02  0:55 + sh-remove-call-to-memset-after-dma_alloc_coherent.patch added to -mm tree akpm

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