mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdump: Make use of __packed macro
Make use of the pre-defined __packed macro throughout zdump. 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:
committed by
Jan Höppner
parent
0f7ed7d4fc
commit
244bf4e550
+5
-3
@@ -12,6 +12,8 @@
|
||||
#ifndef DF_LKCD_H
|
||||
#define DF_LKCD_H
|
||||
|
||||
#include "lib/zt_common.h"
|
||||
|
||||
#define DF_LKCD_MAGIC 0xa8190173618f23edULL
|
||||
#define DF_LKCD_MAGIC_ASM 0x733339302d64756dULL
|
||||
#define DF_LKCD_VERSION 0x8 /* dump version number */
|
||||
@@ -53,7 +55,7 @@ struct df_lkcd_hdr {
|
||||
u32 dump_compress;
|
||||
u32 dump_flags;
|
||||
u32 dump_device;
|
||||
} __attribute__((packed));
|
||||
} __packed;
|
||||
|
||||
/*
|
||||
* s390 LKCD asm header
|
||||
@@ -65,7 +67,7 @@ struct df_lkcd_hdr_asm {
|
||||
u16 cpu_cnt;
|
||||
u16 real_cpu_cnt;
|
||||
u32 lc_vec[512];
|
||||
} __attribute__((packed));
|
||||
} __packed;
|
||||
|
||||
/*
|
||||
* Page header
|
||||
@@ -74,6 +76,6 @@ struct df_lkcd_pg_hdr {
|
||||
u64 addr; /* Address of dump page */
|
||||
u32 size; /* Size of dump page */
|
||||
u32 flags; /* flags (DF_LKCD_COMPRESSED, DF_LKCD_RAW,...) */
|
||||
} __attribute__((packed));
|
||||
} __packed;
|
||||
|
||||
#endif /* DF_LKCD_H */
|
||||
|
||||
Reference in New Issue
Block a user