]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: define structures outside of iochannel
authorDavid Kershner <david.kershner@unisys.com>
Tue, 16 Jun 2015 03:31:58 +0000 (23:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Jun 2015 21:33:51 +0000 (14:33 -0700)
commite7926bcf4a74c3ff73519b0f7d7824f1d807f371
treec0afa04b8d8cd4f476ff26c1a39266bc428561af
parent371abe8f23a0fc684c92ebc3efe4e5fa8b6f9a21
staging: unisys: define structures outside of iochannel

During testing with visornic the offset of num_rcv_bufs
was being reported at 188 instead of 186. The vnic structure
starts at 180 and the macaddr is only 6 bytes long.

When I defined and packed the structures outside of the struct
and then referenced them in the struct the correct offset
was generated.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/include/iochannel.h