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)
commitdbb9d619941ad57dbe3c6667764e1eccd5ee5f1b
treec0afa04b8d8cd4f476ff26c1a39266bc428561af
parent39630ee2a37e57cc8dfa3cf5a55f8249d6e883bc
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