<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-op-linux/drivers/staging/ralink-gdma, branch master</title>
<subtitle>Talos™ II Linux sources for OpenPOWER</subtitle>
<id>https://git.raptorcs.com/git/talos-op-linux/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-op-linux/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/'/>
<updated>2019-10-25T02:40:38+00:00</updated>
<entry>
<title>staging: ralink-gdma: use devm_platform_ioremap_resource() to simplify code</title>
<updated>2019-10-25T02:40:38+00:00</updated>
<author>
<name>YueHaibing</name>
<email>yuehaibing@huawei.com</email>
</author>
<published>2019-10-16T09:03:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=6fc77fc892d87fcaf2d06129d1fadaea09f4e3dd'/>
<id>urn:sha1:6fc77fc892d87fcaf2d06129d1fadaea09f4e3dd</id>
<content type='text'>
Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing &lt;yuehaibing@huawei.com&gt;
Link: https://lore.kernel.org/r/20191016090305.23392-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: Remove dev_err() usage after platform_get_irq()</title>
<updated>2019-07-30T18:50:04+00:00</updated>
<author>
<name>Stephen Boyd</name>
<email>swboyd@chromium.org</email>
</author>
<published>2019-07-30T18:15:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=04d15d5cadb8f764ccf978ddd33cf233dcc68e13'/>
<id>urn:sha1:04d15d5cadb8f764ccf978ddd33cf233dcc68e13</id>
<content type='text'>
We don't need dev_err() messages when platform_get_irq() fails now that
platform_get_irq() prints an error message itself when something goes
wrong. Let's remove these prints with a simple semantic patch.

// &lt;smpl&gt;
@@
expression ret;
struct platform_device *E;
@@

ret =
(
platform_get_irq(E, ...)
|
platform_get_irq_byname(E, ...)
);

if ( \( ret &lt; 0 \| ret &lt;= 0 \) )
{
(
-if (ret != -EPROBE_DEFER)
-{ ...
-dev_err(...);
-... }
|
...
-dev_err(...);
)
...
}
// &lt;/smpl&gt;

While we're here, remove braces on if statements that only have one
statement (manually).

Signed-off-by: Stephen Boyd &lt;swboyd@chromium.org&gt;
Link: https://lore.kernel.org/r/20190730181557.90391-43-swboyd@chromium.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Staging: ralink-gdma: fixed a brace coding style issue</title>
<updated>2019-06-09T11:10:28+00:00</updated>
<author>
<name>Harold André</name>
<email>harold.andre@gmx.fr</email>
</author>
<published>2019-06-09T10:58:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=130b5fb3738c93e0407f7df8f104deb828e6d67b'/>
<id>urn:sha1:130b5fb3738c93e0407f7df8f104deb828e6d67b</id>
<content type='text'>
Fixed a coding style issue.

Signed-off-by: Harold André &lt;harold.andre@gmx.fr&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: ralink-gdma: Use struct_size() in kzalloc()</title>
<updated>2019-04-16T11:44:30+00:00</updated>
<author>
<name>Gustavo A. R. Silva</name>
<email>gustavo@embeddedor.com</email>
</author>
<published>2019-04-03T20:50:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=e291fa1237a74dc4692995a4a598d4818a747191'/>
<id>urn:sha1:e291fa1237a74dc4692995a4a598d4818a747191</id>
<content type='text'>
One of the more common cases of allocation size calculations is finding
the size of a structure that has a zero-sized array at the end, along
with memory for some number of elements for that array. For example:

struct foo {
    int stuff;
    struct boo entry[];
};

size = sizeof(struct foo) + count * sizeof(struct boo);
instance = kzalloc(size, GFP_KERNEL)

Instead of leaving these open-coded and prone to type mistakes, we can
now use the new struct_size() helper:

size = struct_size(instance, entry, count);

or

instance = kzalloc(struct_size(instance, entry, count), GFP_KERNEL)

Based on the above, replace gdma_dma_alloc_desc() with kzalloc() and
use the new struct_size() helper.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva &lt;gustavo@embeddedor.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: ralink-gdma: add proper SPDX identifiers on ralink-gdma file</title>
<updated>2019-04-03T09:10:17+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2019-04-02T10:31:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=53b6f8bc53f7e80d3dbdbc78341feac157310fe4'/>
<id>urn:sha1:53b6f8bc53f7e80d3dbdbc78341feac157310fe4</id>
<content type='text'>
The ralink-gdma.c driver did not have a SPDX identifier on it, so fix
that up.  At the same time, remove the "free form" text that specified
the license of the file, as that is impossible for any tool to properly
parse.

Cc: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: add missing SPDX lines to Makefile files</title>
<updated>2019-04-03T09:10:15+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2019-04-02T10:31:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=97ed8eab2a0067bee21aa634c938454660e76a38'/>
<id>urn:sha1:97ed8eab2a0067bee21aa634c938454660e76a38</id>
<content type='text'>
There are a few remaining drivers/staging/*/Makefile files that do not
have SPDX identifiers in them.  Add the correct GPL-2.0 identifier to
them to make scanning tools happy.

Reviewed-by: Mukesh Ojha &lt;mojha@codeaurora.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: add missing SPDX lines to Kconfig files</title>
<updated>2019-04-03T09:10:15+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2019-04-02T10:31:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=99b75a4e3275e85814db0fa2f49274bd3d5359d3'/>
<id>urn:sha1:99b75a4e3275e85814db0fa2f49274bd3d5359d3</id>
<content type='text'>
There are a few remaining drivers/staging/*/Kconfig files that do not
have SPDX identifiers in them.  Add the correct GPL-2.0 identifier to
them to make scanning tools happy.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: ralink-gdma: Remove print statement on failure of devm_kzalloc</title>
<updated>2019-04-03T09:08:01+00:00</updated>
<author>
<name>Nishka Dasgupta</name>
<email>nishka.dasgupta@yahoo.com</email>
</author>
<published>2019-04-02T20:24:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=4e37138ed3f9bf4d18f5b4dad7924c47fd56d97f'/>
<id>urn:sha1:4e37138ed3f9bf4d18f5b4dad7924c47fd56d97f</id>
<content type='text'>
Remove print statement after failure of devm_kzalloc. Issue found with
Coccinelle.

Signed-off-by: Nishka Dasgupta &lt;nishka.dasgupta@yahoo.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: ralink-gdma: ralink-gdma.c fixed line width</title>
<updated>2019-03-25T20:49:12+00:00</updated>
<author>
<name>Dominik Adamski</name>
<email>adamski.dominik@gmail.com</email>
</author>
<published>2019-03-24T19:20:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=96711664002c023afa4be165f6aa2c377ed85339'/>
<id>urn:sha1:96711664002c023afa4be165f6aa2c377ed85339</id>
<content type='text'>
Fix checkpatch issue:
line over 80 characters

Signed-off-by: Dominik Adamski &lt;adamski.dominik@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: ralink-gdma: Remove space after cast</title>
<updated>2019-03-25T20:47:37+00:00</updated>
<author>
<name>Bharath Vedartham</name>
<email>linux.bhar@gmail.com</email>
</author>
<published>2019-03-24T10:02:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=344201e0f866853e739cf1eb073ca4c8a5823b24'/>
<id>urn:sha1:344201e0f866853e739cf1eb073ca4c8a5823b24</id>
<content type='text'>
This fixes the checkpatch.pl check: "No space is necessary after the
cast".

Signed-off-by: Bharath Vedartham &lt;linux.bhar@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
