zfcpdump: Make use of __packed macro

Make use of the pre-defined __packed macro throughout zfcpdump.

Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Philipp Rudo
2019-10-08 18:19:30 +02:00
committed by Jan Höppner
parent 244bf4e550
commit c7fcb457b0
+4 -4
View File
@@ -62,7 +62,7 @@ struct scsi_dump_sb {
uint64_t csum_off; uint64_t csum_off;
uint64_t csum_size; uint64_t csum_size;
uint64_t csum; uint64_t csum;
} __attribute((packed)); } __packed;
/* /*
* Layout of SCSI disk block pointer * Layout of SCSI disk block pointer
@@ -72,7 +72,7 @@ struct linear_blockptr {
uint16_t size; uint16_t size;
uint16_t blockct; uint16_t blockct;
uint8_t reserved[4]; uint8_t reserved[4];
} __attribute((packed)); } __packed;
/* From boot.h in zipl */ /* From boot.h in zipl */
struct boot_info { struct boot_info {
@@ -82,7 +82,7 @@ struct boot_info {
uint8_t dev_type; uint8_t dev_type;
uint8_t flags; uint8_t flags;
uint64_t sb_off; uint64_t sb_off;
} __attribute__ ((packed)); } __packed;
/* From install.c in zipl */ /* From install.c in zipl */
struct scsi_mbr { struct scsi_mbr {
@@ -92,7 +92,7 @@ struct scsi_mbr {
struct linear_blockptr lin; struct linear_blockptr lin;
uint8_t reserverd[0x50]; uint8_t reserverd[0x50];
struct boot_info boot_info; struct boot_info boot_info;
} __attribute__ ((packed)); } __packed;
/* From boot.h in zipl */ /* From boot.h in zipl */
#define BOOT_INFO_VERSION 1 #define BOOT_INFO_VERSION 1