<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/dio, 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>dio: Have dio_bus_match() callback take a const *</title>
<updated>2024-07-10T13:38:14+00:00</updated>
<author>
<name>Geert Uytterhoeven</name>
<email>geert@linux-m68k.org</email>
</author>
<published>2024-07-10T07:44:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=af46fe8c41de5b79358c3007e3854dda9c61c7dc'/>
<id>urn:sha1:af46fe8c41de5b79358c3007e3854dda9c61c7dc</id>
<content type='text'>
drivers/dio/dio-driver.c:128:11: error: initialization of ‘int (*)(struct device *, const struct device_driver *)’ from incompatible pointer type ‘int (*)(struct device *, struct device_driver *)’ [-Werror=incompatible-pointer-types]
  128 |  .match = dio_bus_match,
      |           ^~~~~~~~~~~~~
drivers/dio/dio-driver.c:128:11: note: (near initialization for ‘dio_bus_type.match’)

Reported-by: noreply@ellerman.id.au
Fixes: d69d804845985c29 ("driver core: have match() callback in struct bus_type take a const *")
Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Link: https://lore.kernel.org/r/20240710074452.2841173-1-geert@linux-m68k.org
[ added dio.h change - gregkh ]
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>dio: make dio_bus_type const</title>
<updated>2024-03-07T20:37:04+00:00</updated>
<author>
<name>Ricardo B. Marliere</name>
<email>ricardo@marliere.net</email>
</author>
<published>2024-02-12T11:41:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=cb1c1224193e648b4108dd06ebb7cc86b5c514ad'/>
<id>urn:sha1:cb1c1224193e648b4108dd06ebb7cc86b5c514ad</id>
<content type='text'>
Now that the driver core can properly handle constant struct bus_type,
move the dio_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.

Cc: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Suggested-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: "Ricardo B. Marliere" &lt;ricardo@marliere.net&gt;
Reviewed-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Link: https://lore.kernel.org/r/20240212-bus_cleanup-dio-v2-1-3b1ba4c0547d@marliere.net
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.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>
</feed>
