<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/dio/dio.c, branch v7.0-rc7</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v7.0-rc7</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v7.0-rc7'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2026-02-22T01:09:51+00:00</updated>
<entry>
<title>Convert 'alloc_obj' family to use the new default GFP_KERNEL argument</title>
<updated>2026-02-22T01:09:51+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2026-02-22T00:37:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=bf4afc53b77aeaa48b5409da5c8da6bb4eff7f43'/>
<id>urn:sha1:bf4afc53b77aeaa48b5409da5c8da6bb4eff7f43</id>
<content type='text'>
This was done entirely with mindless brute force, using

    git grep -l '\&lt;k[vmz]*alloc_objs*(.*, GFP_KERNEL)' |
        xargs sed -i 's/\(alloc_objs*(.*\), GFP_KERNEL)/\1)/'

to convert the new alloc_obj() users that had a simple GFP_KERNEL
argument to just drop that argument.

Note that due to the extreme simplicity of the scripting, any slightly
more complex cases spread over multiple lines would not be triggered:
they definitely exist, but this covers the vast bulk of the cases, and
the resulting diff is also then easier to check automatically.

For the same reason the 'flex' versions will be done as a separate
conversion.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>treewide: Replace kmalloc with kmalloc_obj for non-scalar types</title>
<updated>2026-02-21T09:02:28+00:00</updated>
<author>
<name>Kees Cook</name>
<email>kees@kernel.org</email>
</author>
<published>2026-02-21T07:49:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=69050f8d6d075dc01af7a5f2f550a8067510366f'/>
<id>urn:sha1:69050f8d6d075dc01af7a5f2f550a8067510366f</id>
<content type='text'>
This is the result of running the Coccinelle script from
scripts/coccinelle/api/kmalloc_objs.cocci. The script is designed to
avoid scalar types (which need careful case-by-case checking), and
instead replace kmalloc-family calls that allocate struct or union
object instances:

Single allocations:	kmalloc(sizeof(TYPE), ...)
are replaced with:	kmalloc_obj(TYPE, ...)

Array allocations:	kmalloc_array(COUNT, sizeof(TYPE), ...)
are replaced with:	kmalloc_objs(TYPE, COUNT, ...)

Flex array allocations:	kmalloc(struct_size(PTR, FAM, COUNT), ...)
are replaced with:	kmalloc_flex(*PTR, FAM, COUNT, ...)

(where TYPE may also be *VAR)

The resulting allocations no longer return "void *", instead returning
"TYPE *".

Signed-off-by: Kees Cook &lt;kees@kernel.org&gt;
</content>
</entry>
<entry>
<title>drivers: dio: fix possible memory leak in dio_init()</title>
<updated>2022-11-09T14:12:37+00:00</updated>
<author>
<name>Yang Yingliang</name>
<email>yangyingliang@huawei.com</email>
</author>
<published>2022-11-09T06:40:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e63e99397b2613d50a5f4f02ed07307e67a190f1'/>
<id>urn:sha1:e63e99397b2613d50a5f4f02ed07307e67a190f1</id>
<content type='text'>
If device_register() returns error, the 'dev' and name needs be
freed. Add a release function, and then call put_device() in the
error path, so the name is freed in kobject_cleanup() and to the
'dev' is freed in release function.

Fixes: 2e4c77bea3d8 ("m68k: dio - Kill warn_unused_result warnings")
Fixes: 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array")
Signed-off-by: Yang Yingliang &lt;yangyingliang@huawei.com&gt;
Link: https://lore.kernel.org/r/20221109064036.1835346-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers: dio: add missing iounmap() in dio_init()</title>
<updated>2022-05-19T16:56:51+00:00</updated>
<author>
<name>Yang Yingliang</name>
<email>yangyingliang@huawei.com</email>
</author>
<published>2022-05-11T06:45:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=077f5d900f62a817b155e614e7eb79220b1405de'/>
<id>urn:sha1:077f5d900f62a817b155e614e7eb79220b1405de</id>
<content type='text'>
If kzalloc() fails, iounmap() need be called in error path.

Signed-off-by: Yang Yingliang &lt;yangyingliang@huawei.com&gt;
Link: https://lore.kernel.org/r/20220511064506.3398512-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers: dio: Missing a blank line after declarations</title>
<updated>2022-02-04T15:45:39+00:00</updated>
<author>
<name>Aleksa Vučković</name>
<email>aleksav013@gmail.com</email>
</author>
<published>2022-01-27T13:50:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=aafce7bc5908205c9169a9a362e1c5a46b4d2cf2'/>
<id>urn:sha1:aafce7bc5908205c9169a9a362e1c5a46b4d2cf2</id>
<content type='text'>
This patch fixes the checkpatch.pl error:

&lt; WARNING: Missing a blank line after declarations
&lt; #97: FILE: drivers/dio/dio.c:97:
&lt; +     unsigned int i;
&lt; +     for (i = 0; i &lt; ARRAY_SIZE(names); i++)

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-7-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers: dio: code indent should use tabs</title>
<updated>2022-02-04T15:45:39+00:00</updated>
<author>
<name>Aleksa Vučković</name>
<email>aleksav013@gmail.com</email>
</author>
<published>2022-01-27T13:50:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=dffae938c06aea287ee2a28af90b6e5b15f79a19'/>
<id>urn:sha1:dffae938c06aea287ee2a28af90b6e5b15f79a19</id>
<content type='text'>
This patch fixes the checkpatch.pl error:

&lt; ERROR: code indent should use tabs where possible
&lt; #61: FILE: drivers/dio/dio.c:61:
&lt; +        int id;$
&lt;
&lt; WARNING: please, no spaces at the start of a line
&lt; #61: FILE: drivers/dio/dio.c:61:
&lt; +        int id;$
&lt;
&lt; ERROR: code indent should use tabs where possible
&lt; #62: FILE: drivers/dio/dio.c:62:
&lt; +        const char *name;$
&lt;
&lt; WARNING: please, no spaces at the start of a line
&lt; #62: FILE: drivers/dio/dio.c:62:
&lt; +        const char *name;$

+ 44 more errors of type "code indent should use tabs where
possible"
+ 41 more warnings of type "please, no spaces at the start of a
line"

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-6-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers: dio: space required after that ','</title>
<updated>2022-02-04T15:45:39+00:00</updated>
<author>
<name>Aleksa Vučković</name>
<email>aleksav013@gmail.com</email>
</author>
<published>2022-01-27T13:50:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f8b187c254350a938ac6eca279e2bd90e96d4586'/>
<id>urn:sha1:f8b187c254350a938ac6eca279e2bd90e96d4586</id>
<content type='text'>
This patch fixes the checkpatch.pl error:

&lt; ERROR: space required after that ',' (ctx:VxV)
&lt; #239: FILE: drivers/dio/dio.c:239:
&lt; +                strcpy(dev-&gt;name,dio_getname(dev-&gt;id));

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-5-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers: dio: space prohibited after parenthesis</title>
<updated>2022-02-04T15:45:39+00:00</updated>
<author>
<name>Aleksa Vučković</name>
<email>aleksav013@gmail.com</email>
</author>
<published>2022-01-27T13:50:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c3c6138589e640a4ef538cec633499055652b4f6'/>
<id>urn:sha1:c3c6138589e640a4ef538cec633499055652b4f6</id>
<content type='text'>
This patch fixes the checkpatch.pl error:

&lt; ERROR: space prohibited after that open parenthesis '('
&lt; #67: FILE: drivers/dio/dio.c:67:
&lt; +#define DIOFBNAME(x) { DIO_ENCODE_ID( DIO_ID_FBUFFER, DIO_ID2_##x),
DIO_DESC2_##x }

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-4-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers: dio: trailing whitespace</title>
<updated>2022-02-04T15:45:39+00:00</updated>
<author>
<name>Aleksa Vučković</name>
<email>aleksav013@gmail.com</email>
</author>
<published>2022-01-27T13:50:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7649cb6f3daf2ed8e248c8e923d0fbd6204a0582'/>
<id>urn:sha1:7649cb6f3daf2ed8e248c8e923d0fbd6204a0582</id>
<content type='text'>
This patch fixes the checkpatch.pl errors and warnings:

&lt; ERROR: trailing whitespace
&lt; #5: FILE: drivers/dio/dio.c:5:
&lt; + * $
&lt;
&lt; ERROR: trailing whitespace
&lt; #11: FILE: drivers/dio/dio.c:11:
&lt; + *    This means that framebuffers should pass it as $
&lt;
&lt; ERROR: trailing whitespace
&lt; #17: FILE: drivers/dio/dio.c:17:
&lt; + *    Every DIO card has a fixed interrupt priority level. This
function $
&lt;
&lt; ERROR: trailing whitespace
&lt; #20: FILE: drivers/dio/dio.c:20:
&lt; + *    Return a character string describing this board [might be "" if
$
&lt;
&lt; ERROR: trailing whitespace
&lt; #25: FILE: drivers/dio/dio.c:25:
&lt; + * This file is based on the way the Amiga port handles Zorro II
cards, $

+ 15 more errors and warnings of type "trailing whitespace"

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-3-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers: dio: brace should be on the previous line</title>
<updated>2022-02-04T15:45:39+00:00</updated>
<author>
<name>Aleksa Vučković</name>
<email>aleksav013@gmail.com</email>
</author>
<published>2022-01-27T13:50:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8a4606c6429d2600deded63d6d3fbe99af99942d'/>
<id>urn:sha1:8a4606c6429d2600deded63d6d3fbe99af99942d</id>
<content type='text'>
This patch fixes the checkpatch.pl errors and warnings:

&lt; ERROR: open brace '{' following struct go on the same line
&lt; +struct dioname
&lt; +{
&lt;
&lt; ERROR: that open brace { should be on the previous line
&lt; +static struct dioname names[] =
&lt; +{
&lt;
&lt; ERROR: that open brace { should be on the previous line
&lt; +        for (scode = 0; scode &lt; DIO_SCMAX; ++scode)
&lt; +        {
&lt;
&lt; WARNING: braces {} are not necessary for any arm of this statement
&lt; +        if (scode &gt;= DIOII_SCBASE) {
&lt; [...]
&lt; +        } else if (scode &gt; DIO_SCMAX || scode &lt; 0)
&lt; [...]
&lt; +        else if (DIO_SCINHOLE(scode))
&lt; [...]

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-2-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
