]> 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)
commitcfa2665361670dc3018870b2ecfe3a14aedce9f9
treec0afa04b8d8cd4f476ff26c1a39266bc428561af
parent1d6d036325417ebf05f062967a6f04a8f879e368
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