diff options
author | 2019-06-25 16:00:26 -0400 | |
---|---|---|
committer | 2019-06-26 10:28:09 +0800 | |
commit | 257adc0fbe9f0a26695f4d68bdbf2886f5a3ecd0 (patch) | |
tree | a3802217edf881b4cf815f8af4d1f58b4eb66c58 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | USB: core: Remove usbfs_mutex (diff) | |
download | wireguard-linux-257adc0fbe9f0a26695f4d68bdbf2886f5a3ecd0.tar.xz wireguard-linux-257adc0fbe9f0a26695f4d68bdbf2886f5a3ecd0.zip |
USB: core: Fix compiler warnings in devio.c
In the current kernel, devio.c generates a number of compiler warnings
about taking the address of a member of a packed structure. The
warnings all look like this one:
drivers/usb/core/devio.c: In function ‘proc_do_submiturb’:
drivers/usb/core/devio.c:1489:43: warning: taking address of packed member of ‘struct usb_ctrlrequest’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1489 | if (uurb->buffer_length < (le16_to_cpup(&dr->wLength) + 8)) {
| ^~~~~~~~~~~~
These warnings can easily be eliminated by changing various
le16_to_cpup() calls to use le16_to_cpu() instead.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions