]> asedeno.scripts.mit.edu Git - linux.git/commit
USB: remove 8 bytes of padding from usb_host_interface on 64 bit builds
authorRichard Kennedy <richard@rsk.demon.co.uk>
Tue, 10 Jul 2012 16:19:25 +0000 (17:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jul 2012 00:21:29 +0000 (17:21 -0700)
commit0d5ff306582834e3172365d619ec0cfe7a4f79ba
tree9b0209eac32cdac83cd65aecd254e0fef5a3b45d
parent09110529780890804b22e997ae6b4fe3f0b3b158
USB: remove 8 bytes of padding from usb_host_interface on 64 bit builds

Reorder elements in the usb_host_interface structure to remove 8 bytes
of padding on 64 bit builds , and so shrink it's size to 40 bytes.

usb_interface_descriptor is a odd size which leaves a gap that is not
big enough to hold a pointer, so moving extralen into that gap removes
the need for more padding.

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb.h