From: Jeffrey Brown <jeffrey.br...@unisys.com>

Replaced pragma code in vbusdeviceinfo.h with __packed for the
struct ultra_vbus_deviceinfo

Signed-off-by: Jeffrey Brown <jeffrey.br...@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.ro...@unisys.com>
---
 drivers/staging/unisys/common-spar/include/vbusdeviceinfo.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/staging/unisys/common-spar/include/vbusdeviceinfo.h 
b/drivers/staging/unisys/common-spar/include/vbusdeviceinfo.h
index 9b6d3e6..9a51f5f 100644
--- a/drivers/staging/unisys/common-spar/include/vbusdeviceinfo.h
+++ b/drivers/staging/unisys/common-spar/include/vbusdeviceinfo.h
@@ -18,8 +18,6 @@
 
 #include <linux/types.h>
 
-#pragma pack(push, 1)          /* both GCC and VC now allow this pragma */
-
 /* An array of this struct is present in the channel area for each vbus.
  * (See vbuschannel.h.)
  * It is filled in by the client side to provide info about the device
@@ -31,9 +29,7 @@ struct ultra_vbus_deviceinfo {
        u8 infostrs[96];        /* sequence of tab-delimited id strings: */
        /* <DRIVER_REV> <DRIVER_VERTAG> <DRIVER_COMPILETIME> */
        u8 reserved[128];       /* pad size to 256 bytes */
-};
-
-#pragma pack(pop)
+} __packed;
 
 /* Reads chars from the buffer at <src> for <srcmax> bytes, and writes to
  * the buffer at <p>, which is <remain> bytes long, ensuring never to
-- 
2.1.0

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to