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:
Philipp Rudo
2019-10-08 17:57:38 +02:00
committed by Jan Höppner
parent 121d5d8013
commit 0f7ed7d4fc
6 changed files with 37 additions and 31 deletions
+3 -2
View File
@@ -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,