mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zipl: Make use of __packed macro
Make use of the pre-defined __packed macro throughout zipl. This requires adding the global include dir to ALL_CFLAGS. 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
121d5d8013
commit
0f7ed7d4fc
+3
-2
@@ -18,6 +18,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "lib/zt_common.h"
|
||||
#include "lib/util_part.h"
|
||||
#include "lib/util_path.h"
|
||||
|
||||
@@ -223,7 +224,7 @@ struct component_entry {
|
||||
uint8_t data[23];
|
||||
uint8_t type;
|
||||
component_data compdat;
|
||||
} __attribute((packed));
|
||||
} __packed;
|
||||
|
||||
typedef enum {
|
||||
component_execute = 0x01,
|
||||
@@ -263,7 +264,7 @@ struct component_header {
|
||||
uint8_t magic[4];
|
||||
uint8_t type;
|
||||
uint8_t reserved[27];
|
||||
} __attribute((packed));
|
||||
} __packed;
|
||||
|
||||
typedef enum {
|
||||
component_header_ipl = 0x00,
|
||||
|
||||
Reference in New Issue
Block a user