<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/scripts/coccinelle/api/alloc/zalloc-simple.cocci, branch v5.1</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v5.1</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2019-01-08T12:58:49Z</updated>
<entry>
<title>dma-mapping: remove dma_zalloc_coherent()</title>
<updated>2019-01-08T12:58:49Z</updated>
<author>
<name>Luis Chamberlain</name>
<email>mcgrof@kernel.org</email>
</author>
<published>2018-12-19T20:30:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=dfd32cad146e3624970eee9329e99d2c6ef751b3'/>
<id>urn:sha1:dfd32cad146e3624970eee9329e99d2c6ef751b3</id>
<content type='text'>
dma_zalloc_coherent() is no longer needed as it has no users because
dma_alloc_coherent() already zeroes out memory for us.

The Coccinelle grammar rule that used to check for dma_alloc_coherent()
+ memset() is modified so that it just tells the user that the memset is
not needed anymore.

Suggested-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Luis Chamberlain &lt;mcgrof@kernel.org&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>Coccinelle: remove pci_alloc_consistent semantic to detect in zalloc-simple.cocci</title>
<updated>2018-08-22T14:21:43Z</updated>
<author>
<name>zhong jiang</name>
<email>zhongjiang@huawei.com</email>
</author>
<published>2018-08-18T13:51:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6fbd856950b41345ad5c893613efebdc0c356bc7'/>
<id>urn:sha1:6fbd856950b41345ad5c893613efebdc0c356bc7</id>
<content type='text'>
Because pci_alloc_consistent has been deprecated. We prefer to use
dma_alloc_coherent directly. Therefore, we should remove pci_alloc_consistent
to increase the confidence.

Acked-by: Julia Lawall &lt;julia.lawall@lip6.fr&gt;
Acked-by: Himanshu Jha &lt;himanshujha199640@gmail.com&gt;
Signed-off-by: zhong jiang &lt;zhongjiang@huawei.com&gt;
Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>Coccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simple</title>
<updated>2018-01-16T14:40:17Z</updated>
<author>
<name>Himanshu Jha</name>
<email>himanshujha199640@gmail.com</email>
</author>
<published>2018-01-13T20:26:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1936f8f30066cd608d1cee5807a2adf380dda718'/>
<id>urn:sha1:1936f8f30066cd608d1cee5807a2adf380dda718</id>
<content type='text'>
Rename kzalloc-simple to zalloc-simple since now the rule is not
specific to kzalloc function only, but also to many other zero memory
allocating functions specified in the rule.

Suggested-by: SF Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Himanshu Jha &lt;himanshujha199640@gmail.com&gt;
Acked-by: Julia Lawall &lt;julia.lawall@lip6.fr&gt;
Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
</feed>
