585c91f40d
Fix unsafe unaligned pointer usage in usbip network interfaces. usbip tool build fails with new gcc -Werror=address-of-packed-member checks. usbip_network.c: In function ‘usbip_net_pack_usb_device’: usbip_network.c:79:32: error: taking address of packed member of ‘struct usbip_usb_device’ may result in an unaligned pointer value [-Werror=address-of-packed-member] 79 | usbip_net_pack_uint32_t(pack, &udev->busnum); Fix with minor changes to pass by value instead of by address. Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> Link: https://lore.kernel.org/r/20200109012416.2875-1-skhan@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
Makefile.am | ||
usbip.c | ||
usbip.h | ||
usbip_attach.c | ||
usbip_bind.c | ||
usbip_detach.c | ||
usbip_list.c | ||
usbip_network.c | ||
usbip_network.h | ||
usbip_port.c | ||
usbip_unbind.c | ||
usbipd.c | ||
utils.c | ||
utils.h |