]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
acpi-fpdt: mark structures as packed 15543/head
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Apr 2020 06:49:10 +0000 (08:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Apr 2020 06:55:08 +0000 (08:55 +0200)
Let's make sure the alignment doesn't matter.

src/shared/acpi-fpdt.c

index d565ebd43e655108b03930c4ac6b4a31a4cd993c..38c464c912a53e4f2c76ed7b37ce169d4f95930b 100644 (file)
@@ -23,7 +23,7 @@ struct acpi_table_header {
         uint32_t oem_revision;
         char asl_compiler_id[4];
         uint32_t asl_compiler_revision;
-};
+} _packed_;
 
 enum {
         ACPI_FPDT_TYPE_BOOT =   0,
@@ -36,12 +36,12 @@ struct acpi_fpdt_header {
         uint8_t revision;
         uint8_t reserved[4];
         uint64_t ptr;
-};
+} _packed_;
 
 struct acpi_fpdt_boot_header {
         char signature[4];
         uint32_t length;
-};
+} _packed_;
 
 enum {
         ACPI_FPDT_S3PERF_RESUME_REC =   0,
@@ -59,7 +59,7 @@ struct acpi_fpdt_boot {
         uint64_t startup_start;
         uint64_t exit_services_entry;
         uint64_t exit_services_exit;
-};
+} _packed;
 
 int acpi_get_boot_usec(usec_t *loader_start, usec_t *loader_exit) {
         _cleanup_free_ char *buf = NULL;