<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/dio, branch v6.12.80</title>
<subtitle>Clone of https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/'/>
<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.exis.tech/linux.git/commit/?id=af46fe8c41de5b79358c3007e3854dda9c61c7dc'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.exis.tech/linux.git/commit/?id=cb1c1224193e648b4108dd06ebb7cc86b5c514ad'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.exis.tech/linux.git/commit/?id=e63e99397b2613d50a5f4f02ed07307e67a190f1'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.exis.tech/linux.git/commit/?id=077f5d900f62a817b155e614e7eb79220b1405de'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.exis.tech/linux.git/commit/?id=aafce7bc5908205c9169a9a362e1c5a46b4d2cf2'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.exis.tech/linux.git/commit/?id=dffae938c06aea287ee2a28af90b6e5b15f79a19'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.exis.tech/linux.git/commit/?id=f8b187c254350a938ac6eca279e2bd90e96d4586'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.exis.tech/linux.git/commit/?id=c3c6138589e640a4ef538cec633499055652b4f6'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.exis.tech/linux.git/commit/?id=7649cb6f3daf2ed8e248c8e923d0fbd6204a0582'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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.exis.tech/linux.git/commit/?id=8a4606c6429d2600deded63d6d3fbe99af99942d'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
</feed>
