<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-linux/drivers/pcmcia, branch jd/unified-crypt-queue</title>
<subtitle>WireGuard for the Linux kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-linux/atom/drivers/pcmcia?h=jd%2Funified-crypt-queue</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-linux/atom/drivers/pcmcia?h=jd%2Funified-crypt-queue'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/'/>
<updated>2020-03-31T16:48:22Z</updated>
<entry>
<title>pcmcia: remove some unused space characters</title>
<updated>2020-03-31T16:48:22Z</updated>
<author>
<name>Hu Haowen</name>
<email>xianfengting221@163.com</email>
</author>
<published>2020-03-30T02:00:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=a8c122f72d944f0e77b58c8b44a539a8f0e39017'/>
<id>urn:sha1:a8c122f72d944f0e77b58c8b44a539a8f0e39017</id>
<content type='text'>
There are a few space characters I found by chance. I think they are
redundant, so I removed them.

Signed-off-by: Hu Haowen &lt;xianfengting221@163.com&gt;
Signed-off-by: Dominik Brodowski &lt;linux@dominikbrodowski.net&gt;
</content>
</entry>
<entry>
<title>pcmcia: soc_common.h: Replace zero-length array with flexible-array member</title>
<updated>2020-03-28T06:52:13Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
<email>gustavo@embeddedor.com</email>
</author>
<published>2020-03-20T22:13:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=af741b0bad237bf85d388b70c62dfcb2769beef0'/>
<id>urn:sha1:af741b0bad237bf85d388b70c62dfcb2769beef0</id>
<content type='text'>
The current codebase makes use of the zero-length array language
extension to the C90 standard, but the preferred mechanism to declare
variable-length types such as these ones is a flexible array member[1][2],
introduced in C99:

struct foo {
        int stuff;
        struct boo array[];
};

By making use of the mechanism above, we will get a compiler warning
in case the flexible array does not occur last in the structure, which
will help us prevent some kind of undefined behavior bugs from being
inadvertently introduced[3] to the codebase from now on.

Also, notice that, dynamic memory allocations won't be affected by
this change:

"Flexible array members have incomplete type, and so the sizeof operator
may not be applied. As a quirk of the original implementation of
zero-length arrays, sizeof evaluates to zero."[1]

This issue was found with the help of Coccinelle.

[1] https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
[2] https://github.com/KSPP/linux/issues/21
[3] commit 76497732932f ("cxgb3/l2t: Fix undefined behaviour")

Signed-off-by: Gustavo A. R. Silva &lt;gustavo@embeddedor.com&gt;
Signed-off-by: Dominik Brodowski &lt;linux@dominikbrodowski.net&gt;
</content>
</entry>
<entry>
<title>pcmcia: cs_internal.h: Replace zero-length array with flexible-array member</title>
<updated>2020-03-28T06:52:09Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
<email>gustavo@embeddedor.com</email>
</author>
<published>2020-03-20T22:12:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=1e6709b352e7432289d6384213d5222f8d8f8fdf'/>
<id>urn:sha1:1e6709b352e7432289d6384213d5222f8d8f8fdf</id>
<content type='text'>
The current codebase makes use of the zero-length array language
extension to the C90 standard, but the preferred mechanism to declare
variable-length types such as these ones is a flexible array member[1][2],
introduced in C99:

struct foo {
        int stuff;
        struct boo array[];
};

By making use of the mechanism above, we will get a compiler warning
in case the flexible array does not occur last in the structure, which
will help us prevent some kind of undefined behavior bugs from being
inadvertently introduced[3] to the codebase from now on.

Also, notice that, dynamic memory allocations won't be affected by
this change:

"Flexible array members have incomplete type, and so the sizeof operator
may not be applied. As a quirk of the original implementation of
zero-length arrays, sizeof evaluates to zero."[1]

This issue was found with the help of Coccinelle.

[1] https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
[2] https://github.com/KSPP/linux/issues/21
[3] commit 76497732932f ("cxgb3/l2t: Fix undefined behaviour")

Signed-off-by: Gustavo A. R. Silva &lt;gustavo@embeddedor.com&gt;
Signed-off-by: Dominik Brodowski &lt;linux@dominikbrodowski.net&gt;
</content>
</entry>
<entry>
<title>pcmcia: Use scnprintf() for avoiding potential buffer overflow</title>
<updated>2020-03-14T13:32:04Z</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2020-03-11T09:04:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=6d3fbe919b839bae9d8ed22b4ae5a17b05cb209e'/>
<id>urn:sha1:6d3fbe919b839bae9d8ed22b4ae5a17b05cb209e</id>
<content type='text'>
Since snprintf() returns the would-be-output size instead of the
actual output size, the succeeding calls may go beyond the given
buffer limit.  Fix it by replacing with scnprintf().

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Dominik Brodowski &lt;linux@dominikbrodowski.net&gt;
</content>
</entry>
<entry>
<title>pcmcia: omap: remove useless cast for driver.name</title>
<updated>2020-03-14T13:32:02Z</updated>
<author>
<name>Corentin Labbe</name>
<email>clabbe@baylibre.com</email>
</author>
<published>2020-02-18T20:07:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=7c8c5673f6cf1f35d5ffb1df3095526d28e6730a'/>
<id>urn:sha1:7c8c5673f6cf1f35d5ffb1df3095526d28e6730a</id>
<content type='text'>
device_driver name is const char pointer, so it not useful to cast
driver_name (which is already const char).

Signed-off-by: Corentin Labbe &lt;clabbe@baylibre.com&gt;
Signed-off-by: Dominik Brodowski &lt;linux@dominikbrodowski.net&gt;
</content>
</entry>
<entry>
<title>PCMCIA/i82092: remove #if 0 block</title>
<updated>2019-12-16T10:49:54Z</updated>
<author>
<name>Simon Geis</name>
<email>simon.geis@fau.de</email>
</author>
<published>2019-12-13T13:53:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=71705c611263cad99edf85a5ea021e098cac032b'/>
<id>urn:sha1:71705c611263cad99edf85a5ea021e098cac032b</id>
<content type='text'>
Remove the unused function indirect_read16, which
is similar to indirect_read with the exception that
it reads 16 instead of 8 bit.

Co-developed-by: Lukas Panzer &lt;lukas.panzer@fau.de&gt;
Signed-off-by: Lukas Panzer &lt;lukas.panzer@fau.de&gt;
Signed-off-by: Simon Geis &lt;simon.geis@fau.de&gt;
Signed-off-by: Dominik Brodowski &lt;linux@dominikbrodowski.net&gt;
</content>
</entry>
<entry>
<title>PCMCIA/i82092: delete enter/leave macro</title>
<updated>2019-12-16T10:49:54Z</updated>
<author>
<name>Simon Geis</name>
<email>simon.geis@fau.de</email>
</author>
<published>2019-12-13T13:53:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=52739f063f7e991326eecfffa2538e1f425d2580'/>
<id>urn:sha1:52739f063f7e991326eecfffa2538e1f425d2580</id>
<content type='text'>
Remove the enter/leave macros and the corresponding calls.
These are obsolete since ftrace is available.

Co-developed-by: Lukas Panzer &lt;lukas.panzer@fau.de&gt;
Signed-off-by: Lukas Panzer &lt;lukas.panzer@fau.de&gt;
Signed-off-by: Simon Geis &lt;simon.geis@fau.de&gt;
Signed-off-by: Dominik Brodowski &lt;linux@dominikbrodowski.net&gt;
</content>
</entry>
<entry>
<title>PCMCIA/i82092: include &lt;linux/io.h&gt; instead of &lt;asm/io.h&gt;</title>
<updated>2019-12-16T10:49:53Z</updated>
<author>
<name>Simon Geis</name>
<email>simon.geis@fau.de</email>
</author>
<published>2019-12-13T13:53:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=ac5af87725f7f0e14ff99b7d784e652cba9c21b7'/>
<id>urn:sha1:ac5af87725f7f0e14ff99b7d784e652cba9c21b7</id>
<content type='text'>
Include the more general linux/io.h instead of asm/io.h
as checkpatch suggests.

Co-developed-by: Lukas Panzer &lt;lukas.panzer@fau.de&gt;
Signed-off-by: Lukas Panzer &lt;lukas.panzer@fau.de&gt;
Signed-off-by: Simon Geis &lt;simon.geis@fau.de&gt;
Signed-off-by: Dominik Brodowski &lt;linux@dominikbrodowski.net&gt;
</content>
</entry>
<entry>
<title>PCMCIA/i82092: shorten the lines with over 80 characters</title>
<updated>2019-12-16T10:49:53Z</updated>
<author>
<name>Simon Geis</name>
<email>simon.geis@fau.de</email>
</author>
<published>2019-12-13T13:53:11Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=152b4bb57aa43f7f6f55abbb75ccbab818ef3892'/>
<id>urn:sha1:152b4bb57aa43f7f6f55abbb75ccbab818ef3892</id>
<content type='text'>
Split the lines with more than 80 characters
in order to improve readability of the code.

Co-developed-by: Lukas Panzer &lt;lukas.panzer@fau.de&gt;
Signed-off-by: Lukas Panzer &lt;lukas.panzer@fau.de&gt;
Signed-off-by: Simon Geis &lt;simon.geis@fau.de&gt;
Signed-off-by: Dominik Brodowski &lt;linux@dominikbrodowski.net&gt;
</content>
</entry>
<entry>
<title>PCMCIA/i82092: move assignment out of if condition</title>
<updated>2019-12-16T10:49:53Z</updated>
<author>
<name>Simon Geis</name>
<email>simon.geis@fau.de</email>
</author>
<published>2019-12-13T13:53:10Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=908864641f635892d4df265fe92425a5166c748b'/>
<id>urn:sha1:908864641f635892d4df265fe92425a5166c748b</id>
<content type='text'>
Improve readability by moving the assignment out of if conditions.

Co-developed-by: Lukas Panzer &lt;lukas.panzer@fau.de&gt;
Signed-off-by: Lukas Panzer &lt;lukas.panzer@fau.de&gt;
Signed-off-by: Simon Geis &lt;simon.geis@fau.de&gt;
Signed-off-by: Dominik Brodowski &lt;linux@dominikbrodowski.net&gt;
</content>
</entry>
</feed>
