<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/staging/rtl8712, branch v6.12</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>staging: rtl8712: remove unused drvinfo_sz from update_recvframe_attrib</title>
<updated>2024-09-13T05:31:55+00:00</updated>
<author>
<name>Ping-Ke Shih</name>
<email>pkshih@realtek.com</email>
</author>
<published>2024-09-13T00:28:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=bfa0290f4fc4c84e1283077eecd44147ec27a8c9'/>
<id>bfa0290f4fc4c84e1283077eecd44147ec27a8c9</id>
<content type='text'>
The drvinfo_sz is a size of hardware generated data putting in front of
real RX data. The functions r8712_rxcmd_event_hdl() and recvbuf2recvframe()
have its own parsing code to get drvinfo_sz to access real RX data, so
removing this unused drvinfo_sz is safe.

Otherwise, clang report:

rtl8712_recv.c:139:6: warning:
	variable 'drvinfo_sz' set but not used [-Wunused-but-set-variable]
  139 |         u16 drvinfo_sz;
      |             ^

Signed-off-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Tested-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Link: https://lore.kernel.org/r/20240913002815.5149-2-pkshih@realtek.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>
The drvinfo_sz is a size of hardware generated data putting in front of
real RX data. The functions r8712_rxcmd_event_hdl() and recvbuf2recvframe()
have its own parsing code to get drvinfo_sz to access real RX data, so
removing this unused drvinfo_sz is safe.

Otherwise, clang report:

rtl8712_recv.c:139:6: warning:
	variable 'drvinfo_sz' set but not used [-Wunused-but-set-variable]
  139 |         u16 drvinfo_sz;
      |             ^

Signed-off-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Tested-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Link: https://lore.kernel.org/r/20240913002815.5149-2-pkshih@realtek.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8712: Calculate size from pointer</title>
<updated>2024-08-29T09:56:16+00:00</updated>
<author>
<name>Manisha Singh</name>
<email>masingh.linux@gmail.com</email>
</author>
<published>2024-08-28T22:21:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=b7059df44f12a481ed257b242607c0ff64b36a95'/>
<id>b7059df44f12a481ed257b242607c0ff64b36a95</id>
<content type='text'>
Calculate the size from the pointer instead of struct to adhere to kernel
coding style.

Signed-off-by: Manisha Singh &lt;masingh.linux@gmail.com&gt;
Tested-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Link: https://lore.kernel.org/r/20240828222153.68062-4-masingh.linux@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>
Calculate the size from the pointer instead of struct to adhere to kernel
coding style.

Signed-off-by: Manisha Singh &lt;masingh.linux@gmail.com&gt;
Tested-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Link: https://lore.kernel.org/r/20240828222153.68062-4-masingh.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8712: Fix style issues in rtl871x_io.c</title>
<updated>2024-08-29T09:56:16+00:00</updated>
<author>
<name>Manisha Singh</name>
<email>masingh.linux@gmail.com</email>
</author>
<published>2024-08-28T22:21:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=399763befd12a0b1e396ca7c6949bfc2f79583ae'/>
<id>399763befd12a0b1e396ca7c6949bfc2f79583ae</id>
<content type='text'>
Refactor the _init_intf_hdl() function to avoid multiple
assignments in a single statement. This change improves code readability
and adheres to kernel coding style guidelines.

Signed-off-by: Manisha Singh &lt;masingh.linux@gmail.com&gt;
Tested-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Link: https://lore.kernel.org/r/20240828222153.68062-2-masingh.linux@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>
Refactor the _init_intf_hdl() function to avoid multiple
assignments in a single statement. This change improves code readability
and adheres to kernel coding style guidelines.

Signed-off-by: Manisha Singh &lt;masingh.linux@gmail.com&gt;
Tested-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Link: https://lore.kernel.org/r/20240828222153.68062-2-masingh.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8712: Align parenthesis in usb_ops_linux.c</title>
<updated>2024-08-29T09:56:12+00:00</updated>
<author>
<name>Dorine Tipo</name>
<email>dorine.a.tipo@gmail.com</email>
</author>
<published>2024-08-28T08:29:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=218683bcfb108b56cec19079c8136d2a68e39859'/>
<id>218683bcfb108b56cec19079c8136d2a68e39859</id>
<content type='text'>
Fix the parenthesis alignment in r8712_read_port() function to match
the opening parenthesis.
This improves code readability and adheres to the kernel coding style.

Signed-off-by: Dorine Tipo &lt;dorine.a.tipo@gmail.com&gt;
Tested-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Link: https://lore.kernel.org/r/20240828082935.GA3815@ubuntu-focal
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the parenthesis alignment in r8712_read_port() function to match
the opening parenthesis.
This improves code readability and adheres to the kernel coding style.

Signed-off-by: Dorine Tipo &lt;dorine.a.tipo@gmail.com&gt;
Tested-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Link: https://lore.kernel.org/r/20240828082935.GA3815@ubuntu-focal
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8712: remove trailing whitespace</title>
<updated>2024-07-30T07:21:47+00:00</updated>
<author>
<name>Felix Yan</name>
<email>felixonmars@archlinux.org</email>
</author>
<published>2024-07-30T06:37:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=2963d620a410b9075ea2daa2b1afb95ec5a3d889'/>
<id>2963d620a410b9075ea2daa2b1afb95ec5a3d889</id>
<content type='text'>
Fix the following checkpatch.pl error:

ERROR: trailing whitespace

Signed-off-by: Felix Yan &lt;felixonmars@archlinux.org&gt;
Link: https://lore.kernel.org/r/20240730063746.176245-1-felixonmars@archlinux.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the following checkpatch.pl error:

ERROR: trailing whitespace

Signed-off-by: Felix Yan &lt;felixonmars@archlinux.org&gt;
Link: https://lore.kernel.org/r/20240730063746.176245-1-felixonmars@archlinux.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8712: style fix multiple line dereference</title>
<updated>2024-07-29T08:08:24+00:00</updated>
<author>
<name>Moon Yeounsu</name>
<email>yyyynoom@gmail.com</email>
</author>
<published>2024-07-21T04:05:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=1524b01fb16f3b5459d5174b0d0982c2b77254d1'/>
<id>1524b01fb16f3b5459d5174b0d0982c2b77254d1</id>
<content type='text'>
It fix the following checkpatch.pl warning:
Avoid multiple line dereference - prefer %s

Suggested-by: Dan Carpenter &lt;dan.carpenter@linaro.org&gt;
Signed-off-by: Moon Yeounsu &lt;yyyynoom@gmail.com&gt;
Link: https://lore.kernel.org/r/20240721040504.1483-1-yyyynoom@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>
It fix the following checkpatch.pl warning:
Avoid multiple line dereference - prefer %s

Suggested-by: Dan Carpenter &lt;dan.carpenter@linaro.org&gt;
Signed-off-by: Moon Yeounsu &lt;yyyynoom@gmail.com&gt;
Link: https://lore.kernel.org/r/20240721040504.1483-1-yyyynoom@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: r8712u: remove unused struct 'zero_bulkout_context'</title>
<updated>2024-06-04T11:35:31+00:00</updated>
<author>
<name>Dr. David Alan Gilbert</name>
<email>linux@treblig.org</email>
</author>
<published>2024-06-01T13:16:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=ac7e01f401a5573f72bbe48d32eb8d9f2af8cbce'/>
<id>ac7e01f401a5573f72bbe48d32eb8d9f2af8cbce</id>
<content type='text'>
Remove struct zero_bulkout_context as it is unused.

Signed-off-by: Dr. David Alan Gilbert &lt;linux@treblig.org&gt;
Tested-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt; AW-NU120
Link: https://lore.kernel.org/r/20240601131611.52441-1-linux@treblig.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove struct zero_bulkout_context as it is unused.

Signed-off-by: Dr. David Alan Gilbert &lt;linux@treblig.org&gt;
Tested-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt; AW-NU120
Link: https://lore.kernel.org/r/20240601131611.52441-1-linux@treblig.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8712: Fix spelling mistake in rtl871x_io.h</title>
<updated>2024-06-04T11:35:01+00:00</updated>
<author>
<name>Roshan Khatri</name>
<email>topofeverest8848@gmail.com</email>
</author>
<published>2024-05-25T16:02:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=ea032c8d87dfd1da41a84bf179d9513dd17b51d0'/>
<id>ea032c8d87dfd1da41a84bf179d9513dd17b51d0</id>
<content type='text'>
This patch corrects misspelled word to increase code readability and
searching.

Signed-off-by: Roshan Khatri &lt;topofeverest8848@gmail.com&gt;
Reviewed-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Link: https://lore.kernel.org/r/20240525160230.66365-1-topofeverest8848@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 corrects misspelled word to increase code readability and
searching.

Signed-off-by: Roshan Khatri &lt;topofeverest8848@gmail.com&gt;
Reviewed-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Link: https://lore.kernel.org/r/20240525160230.66365-1-topofeverest8848@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8712: remove unnecessary alignment of pxmitpriv-&gt;pxmitbuf</title>
<updated>2024-06-04T11:35:01+00:00</updated>
<author>
<name>Nam Cao</name>
<email>namcao@linutronix.de</email>
</author>
<published>2024-05-25T07:32:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=9ed3e0a0e1b1e1336f3b3979aa478e1f5312da4d'/>
<id>9ed3e0a0e1b1e1336f3b3979aa478e1f5312da4d</id>
<content type='text'>
This driver wants pxmitpriv-&gt;pxmitbuf to be 4-byte aligned. This is ensured
by allocating 4 more bytes than required with kmalloc(), then do the
p = p + 4 - (p &amp; 3) trick to make sure the pointer is 4-byte aligned.

This is unnecessary. Pointers from kmalloc() are already at least
8-byte-aligned.

Remove this alignment trick to simplify the code, and also to stop wasting
4 extra bytes of dynamic memory allocator.

This also gets rid of a (false) warning from kmemleak. This 4-byte-aligned
buffer is used to store pointers from kmalloc(). For 64-bit platforms,
pointer size is 8 bytes and kmemleak only scans for pointers in 8-byte
blocks, thus it misses the pointers stored in this 4-byte-aligned buffer
and thinks that these pointers have been leaked. This is just a false
warning, not a real problem. But still, it would be nice to get rid of
these warnings.

Reported-and-tested-by: syzbot+83763e624cfec6b462cb@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/linux-staging/000000000000809328060a8a4c1c@google.com
Signed-off-by: Nam Cao &lt;namcao@linutronix.de&gt;
Link: https://lore.kernel.org/r/20240525073229.4144612-1-namcao@linutronix.de
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 driver wants pxmitpriv-&gt;pxmitbuf to be 4-byte aligned. This is ensured
by allocating 4 more bytes than required with kmalloc(), then do the
p = p + 4 - (p &amp; 3) trick to make sure the pointer is 4-byte aligned.

This is unnecessary. Pointers from kmalloc() are already at least
8-byte-aligned.

Remove this alignment trick to simplify the code, and also to stop wasting
4 extra bytes of dynamic memory allocator.

This also gets rid of a (false) warning from kmemleak. This 4-byte-aligned
buffer is used to store pointers from kmalloc(). For 64-bit platforms,
pointer size is 8 bytes and kmemleak only scans for pointers in 8-byte
blocks, thus it misses the pointers stored in this 4-byte-aligned buffer
and thinks that these pointers have been leaked. This is just a false
warning, not a real problem. But still, it would be nice to get rid of
these warnings.

Reported-and-tested-by: syzbot+83763e624cfec6b462cb@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/linux-staging/000000000000809328060a8a4c1c@google.com
Signed-off-by: Nam Cao &lt;namcao@linutronix.de&gt;
Link: https://lore.kernel.org/r/20240525073229.4144612-1-namcao@linutronix.de
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8712: Fix spelling mistake in rtl871x_mlme.c</title>
<updated>2024-06-04T11:35:01+00:00</updated>
<author>
<name>Roshan Khatri</name>
<email>topofeverest8848@gmail.com</email>
</author>
<published>2024-05-24T15:40:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=8bcb9afc5de366d7c3e572582ff0da8b155e7e01'/>
<id>8bcb9afc5de366d7c3e572582ff0da8b155e7e01</id>
<content type='text'>
This patch corrects misspelled word to increase code readability and
searching.

Signed-off-by: Roshan Khatri &lt;topofeverest8848@gmail.com&gt;
Reviewed-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Link: https://lore.kernel.org/r/20240524154001.63946-1-topofeverest8848@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 corrects misspelled word to increase code readability and
searching.

Signed-off-by: Roshan Khatri &lt;topofeverest8848@gmail.com&gt;
Reviewed-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Link: https://lore.kernel.org/r/20240524154001.63946-1-topofeverest8848@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
