<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/crypto/img-hash.c, branch linux-6.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2023-10-27T10:04:26Z</updated>
<entry>
<title>crypto: img-hash - Convert to platform remove callback returning void</title>
<updated>2023-10-27T10:04:26Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2023-10-20T07:55:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c5d9715c693b6be52a609892e1d3a6415defabe'/>
<id>urn:sha1:5c5d9715c693b6be52a609892e1d3a6415defabe</id>
<content type='text'>
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.

To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new(), which already returns void. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: drivers - Explicitly include correct DT includes</title>
<updated>2023-08-23T03:04:23Z</updated>
<author>
<name>Rob Herring</name>
</author>
<published>2023-07-14T17:44:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b0cc7491c98917f191f14efce7630b547f7ec419'/>
<id>urn:sha1:b0cc7491c98917f191f14efce7630b547f7ec419</id>
<content type='text'>
The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Signed-off-by: Rob Herring &lt;robh@kernel.org&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: img-hash - Fix img_hash_match unused warning</title>
<updated>2023-03-31T09:50:09Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2023-03-26T08:50:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=75120ef34247b6ca4f1b9e1e6fedd221e2af77d5'/>
<id>urn:sha1:75120ef34247b6ca4f1b9e1e6fedd221e2af77d5</id>
<content type='text'>
Mark the of_device_id table as maybe_unused.  This fixes a W=1 warning:

  drivers/crypto/img-hash.c:930:34: error: ‘img_hash_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: drivers - remove unnecessary (void*) conversions</title>
<updated>2023-03-24T10:22:28Z</updated>
<author>
<name>Yu Zhe</name>
</author>
<published>2023-03-17T06:26:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aedf818b1f196558390916778f56f286698de3dd'/>
<id>urn:sha1:aedf818b1f196558390916778f56f286698de3dd</id>
<content type='text'>
Pointer variables of void * type do not require type cast.

Signed-off-by: Yu Zhe &lt;yuzhe@nfschina.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: img-hash - Use devm_platform_get_and_ioremap_resource()</title>
<updated>2023-03-24T10:22:28Z</updated>
<author>
<name>Yang Li</name>
</author>
<published>2023-03-14T06:25:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=63b3af99e7e3d3e329be9a45645ff865398b3dfe'/>
<id>urn:sha1:63b3af99e7e3d3e329be9a45645ff865398b3dfe</id>
<content type='text'>
According to commit 890cc39a8799 ("drivers: provide
devm_platform_get_and_ioremap_resource()"), convert
platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.

Signed-off-by: Yang Li &lt;yang.lee@linux.alibaba.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: img-hash - Use request_complete helpers</title>
<updated>2023-02-13T10:34:49Z</updated>
<author>
<name>Herbert Xu</name>
</author>
<published>2023-01-31T08:02:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a712bff02333821639ff4b19ceed5a988ea8c50a'/>
<id>urn:sha1:a712bff02333821639ff4b19ceed5a988ea8c50a</id>
<content type='text'>
Use the request_complete helpers instead of calling the completion
function directly.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: img-hash - Fix sparse endianness warning</title>
<updated>2023-02-03T04:54:54Z</updated>
<author>
<name>Herbert Xu</name>
</author>
<published>2023-01-24T08:28:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3ce2d5971522adfdec9b17182ce9e513a26707e1'/>
<id>urn:sha1:3ce2d5971522adfdec9b17182ce9e513a26707e1</id>
<content type='text'>
Use cpu_to_be32 instead of be32_to_cpu in img_hash_read_result_queue
to silence sparse.  The generated code should be identical.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: img-hash - Fix variable dereferenced before check 'hdev-&gt;req'</title>
<updated>2022-12-09T10:45:00Z</updated>
<author>
<name>Gaosheng Cui</name>
</author>
<published>2022-12-01T06:25:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=04ba54e5af8f8f0137b08cb51a0b3a2e1ea46c94'/>
<id>urn:sha1:04ba54e5af8f8f0137b08cb51a0b3a2e1ea46c94</id>
<content type='text'>
Smatch report warning as follows:

drivers/crypto/img-hash.c:366 img_hash_dma_task() warn: variable
dereferenced before check 'hdev-&gt;req'

Variable dereferenced should be done after check 'hdev-&gt;req',
fix it.

Fixes: d358f1abbf71 ("crypto: img-hash - Add Imagination Technologies hw hash accelerator")
Fixes: 10badea259fa ("crypto: img-hash - Fix null pointer exception")
Signed-off-by: Gaosheng Cui &lt;cuigaosheng1@huawei.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: img-hash - remove need for error return variable ret</title>
<updated>2021-09-17T03:06:14Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2021-09-10T12:15:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5e91f56a0bb32fd14096e20224bf4f93f1b174b1'/>
<id>urn:sha1:5e91f56a0bb32fd14096e20224bf4f93f1b174b1</id>
<content type='text'>
The assignment to error return variable ret and then the jump to
an error exit path can be simplified by just returning the error
return at the failure point. This allows variable ret and the
error return path to be removed. This cleans up a static analysis
warninng that variable ret is being assigned (value never being
used) and being re-assigned later.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: img-hash - Remove redundant dev_err call in img_hash_probe()</title>
<updated>2021-04-16T11:16:32Z</updated>
<author>
<name>YueHaibing</name>
</author>
<published>2021-04-07T14:18:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a790f9de1da73af778576dc0aeeb78bc83720cc8'/>
<id>urn:sha1:a790f9de1da73af778576dc0aeeb78bc83720cc8</id>
<content type='text'>
devm_platform_ioremap_resource() and devm_ioremap_resource()
will print err msg while failing, so the redundant dev_err call
can be removed.

Signed-off-by: YueHaibing &lt;yuehaibing@huawei.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
