<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-linux/drivers/hid, branch jd/unified-crypt-queue</title>
<subtitle>WireGuard for the Linux kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-linux/atom/drivers/hid?h=jd%2Funified-crypt-queue</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-linux/atom/drivers/hid?h=jd%2Funified-crypt-queue'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/'/>
<updated>2020-04-01T22:18:42Z</updated>
<entry>
<title>Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid</title>
<updated>2020-04-01T22:18:42Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2020-04-01T22:18:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=c101e9bbce4ae2947b35a660f17d617fc3827595'/>
<id>urn:sha1:c101e9bbce4ae2947b35a660f17d617fc3827595</id>
<content type='text'>
Pull HID updates from Jiri Kosina:

 - Logitech HID++ protocol support improvement from Filipe Laíns

 - probe fix for Logitech-G* devices from Hans de Goede

 - a few other small code cleanups and support for new device IDs

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
  HID: rmi: Simplify an error handling path in 'rmi_hid_read_block()'
  HID: intel-ish-hid: hbm.h: Replace zero-length array with flexible-array member
  HID: intel-ish-hid: ishtp-dev.h: Replace zero-length array with flexible-array member
  HID: Add driver fixing Glorious PC Gaming Race mouse report descriptor
  HID: lg-g15: Do not fail the probe when we fail to disable F# emulation
  HID: appleir: Use devm_kzalloc() instead of kzalloc()
  HID: appleir: Remove unnecessary goto label
  HID: logitech-dj: add support for the static device in the Powerplay mat/receiver
  HID: mcp2221: add usb to i2c-smbus host bridge
  HID: logitech-dj: add debug msg when exporting a HID++ report descriptors
  HID: quirks: Remove ITE 8595 entry from hid_have_special_driver
</content>
</entry>
<entry>
<title>Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial</title>
<updated>2020-04-01T21:52:59Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2020-04-01T21:52:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=69c1fd97266bcdcfdba1e3ea57773c80e0551e1a'/>
<id>urn:sha1:69c1fd97266bcdcfdba1e3ea57773c80e0551e1a</id>
<content type='text'>
Pull trivial tree updates from Jiri Kosina:
 "My attempt to revitalize trivial queue I've been neglecting for years
  (what a disaster that was for this world, right? :) ) with patches
  collected from backlog that were still relevant and not applied
  elsewhere in the meantime"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial:
  err.h: remove deprecated PTR_RET for good
  blk-mq: Fix typo in comment
  x86/boot: Fix comment spelling
  sh: mach-highlander: Fix comment spelling
  s390/dasd: Fix comment spelling
  mfd: wm8994: Fix comment spelling
  docs: Add reference in binfmt-misc.rst
  genirq: fix kerneldoc comment for irq_desc
  drm/amdgpu: fix two documentation mismatch issues
  HID: fix Kconfig word ordering
  list/hashtable: minor documentation corrections.
</content>
</entry>
<entry>
<title>Merge branch 'for-5.7/mcp2221' into for-linus</title>
<updated>2020-04-01T11:36:46Z</updated>
<author>
<name>Jiri Kosina</name>
<email>jkosina@suse.cz</email>
</author>
<published>2020-04-01T11:36:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=4f8a21a6a9335fdf0952af3cadfa88c33dddacd6'/>
<id>urn:sha1:4f8a21a6a9335fdf0952af3cadfa88c33dddacd6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'for-5.7/logitech' into for-linus</title>
<updated>2020-04-01T11:35:30Z</updated>
<author>
<name>Jiri Kosina</name>
<email>jkosina@suse.cz</email>
</author>
<published>2020-04-01T11:35:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=e4c429c4ad696cdefc3fcf9f7c6a549ec72ab50d'/>
<id>urn:sha1:e4c429c4ad696cdefc3fcf9f7c6a549ec72ab50d</id>
<content type='text'>
- Logitech HID++ protocol support improvement from Filipe Laíns
</content>
</entry>
<entry>
<title>Merge branch 'for-5.7/ish' into for-linus</title>
<updated>2020-04-01T11:34:38Z</updated>
<author>
<name>Jiri Kosina</name>
<email>jkosina@suse.cz</email>
</author>
<published>2020-04-01T11:34:38Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=0460ceb8c594b2664f80a2d319cac49b4a061c22'/>
<id>urn:sha1:0460ceb8c594b2664f80a2d319cac49b4a061c22</id>
<content type='text'>
- C99 code purification in intel-ish-hid from Gustavo A. R. Silva
</content>
</entry>
<entry>
<title>Merge branch 'for-5.7/glorious' into for-linus</title>
<updated>2020-04-01T11:32:45Z</updated>
<author>
<name>Jiri Kosina</name>
<email>jkosina@suse.cz</email>
</author>
<published>2020-04-01T11:32:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=4c805fb704fc7890ec6615b286f09aeb5e2603d4'/>
<id>urn:sha1:4c805fb704fc7890ec6615b286f09aeb5e2603d4</id>
<content type='text'>
- report descriptor fix for Glorious PC Gaming Race device from Samuel Čavoj
</content>
</entry>
<entry>
<title>Merge branch 'for-5.7/core' into for-linus</title>
<updated>2020-04-01T10:27:16Z</updated>
<author>
<name>Jiri Kosina</name>
<email>jkosina@suse.cz</email>
</author>
<published>2020-04-01T10:27:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=f454d9a378a1ccb676adfa6e2449ef17e66696b5'/>
<id>urn:sha1:f454d9a378a1ccb676adfa6e2449ef17e66696b5</id>
<content type='text'>
- device-specific (ITE 8595) fix from Hans de Goede
</content>
</entry>
<entry>
<title>Merge branch 'for-5.7/appleir' into for-linus</title>
<updated>2020-04-01T10:26:12Z</updated>
<author>
<name>Jiri Kosina</name>
<email>jkosina@suse.cz</email>
</author>
<published>2020-04-01T10:26:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=c9f289701540baeef9ac7c9977d67a7259f404db'/>
<id>urn:sha1:c9f289701540baeef9ac7c9977d67a7259f404db</id>
<content type='text'>
- small code cleanups in hid-appleir from Lucas Tanure
</content>
</entry>
<entry>
<title>HID: rmi: Simplify an error handling path in 'rmi_hid_read_block()'</title>
<updated>2020-03-22T23:08:51Z</updated>
<author>
<name>Christophe JAILLET</name>
<email>christophe.jaillet@wanadoo.fr</email>
</author>
<published>2020-03-21T06:40:48Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=2e1b9e1edff7fe19d37f0a5993ac03c5389af809'/>
<id>urn:sha1:2e1b9e1edff7fe19d37f0a5993ac03c5389af809</id>
<content type='text'>
The 'RMI_READ_REQUEST_PENDING' bit is already cleared in the error handling
path. There is no need to reset it twice.

Signed-off-by: Christophe JAILLET &lt;christophe.jaillet@wanadoo.fr&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: intel-ish-hid: hbm.h: Replace zero-length array with flexible-array member</title>
<updated>2020-03-20T23:07:32Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
<email>gustavo@embeddedor.com</email>
</author>
<published>2020-03-19T21:29:50Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=56d8623cedf929bfb1385868e423b978d0e76eea'/>
<id>urn:sha1:56d8623cedf929bfb1385868e423b978d0e76eea</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: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
</feed>
