Rename __attribute__((packed)) --> __packed
Also unify __attribute__ ((..)) to __attribute__((..)) and handle ((__packed__)) like ((packed)) Change-Id: Ie60a51c3fa92b5009724a5b7c2932e361bf3490c Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: https://review.coreboot.org/15921 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include <intelblocks/cse.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <stdint.h>
|
||||
#include <compiler.h>
|
||||
|
||||
#define PCI_ME_HFSTS1 0x40
|
||||
#define PCI_ME_HFSTS2 0x48
|
||||
@@ -69,7 +70,7 @@ static int read_cse_file(const char *path, void *buff, size_t *size,
|
||||
uint32_t is_response: 1;
|
||||
uint32_t reserved: 8;
|
||||
uint32_t result: 8;
|
||||
} __attribute__ ((packed)) fields;
|
||||
} __packed fields;
|
||||
};
|
||||
|
||||
struct mca_command {
|
||||
@@ -78,13 +79,13 @@ static int read_cse_file(const char *path, void *buff, size_t *size,
|
||||
uint32_t offset;
|
||||
uint32_t data_size;
|
||||
uint8_t flags;
|
||||
} __attribute__ ((packed)) msg;
|
||||
} __packed msg;
|
||||
|
||||
struct mca_response {
|
||||
union mkhi_header mkhi_hdr;
|
||||
uint32_t data_size;
|
||||
uint8_t buffer[128];
|
||||
} __attribute__ ((packed)) rmsg;
|
||||
} __packed rmsg;
|
||||
|
||||
if (sizeof(rmsg.buffer) < *size) {
|
||||
printk(BIOS_ERR, "internal buffer is too small\n");
|
||||
|
@@ -24,6 +24,7 @@
|
||||
#ifndef _SOC_APOLLOLAKE_NVS_H_
|
||||
#define _SOC_APOLLOLAKE_NVS_H_
|
||||
|
||||
#include <compiler.h>
|
||||
#include <vendorcode/google/chromeos/gnvs.h>
|
||||
|
||||
typedef struct global_nvs_t {
|
||||
@@ -45,6 +46,6 @@ typedef struct global_nvs_t {
|
||||
|
||||
/* ChromeOS specific (0x100 - 0xfff) */
|
||||
chromeos_acpi_t chromeos;
|
||||
} __attribute__((packed)) global_nvs_t;
|
||||
} __packed global_nvs_t;
|
||||
|
||||
#endif /* _SOC_APOLLOLAKE_NVS_H_ */
|
||||
|
@@ -19,6 +19,7 @@
|
||||
#define _SOC_APOLLOLAKE_PM_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <compiler.h>
|
||||
#include <arch/acpi.h>
|
||||
|
||||
/* ACPI_BASE_ADDRESS */
|
||||
@@ -201,7 +202,7 @@ struct chipset_power_state {
|
||||
uint32_t gen_pmcon2;
|
||||
uint32_t gen_pmcon3;
|
||||
uint32_t prev_sleep_state;
|
||||
} __attribute__((packed));
|
||||
} __packed;
|
||||
|
||||
int fill_power_state(struct chipset_power_state *ps);
|
||||
int chipset_prev_sleep_state(struct chipset_power_state *ps);
|
||||
|
@@ -48,6 +48,7 @@
|
||||
#include <timestamp.h>
|
||||
#include <timer.h>
|
||||
#include <delay.h>
|
||||
#include <compiler.h>
|
||||
#include "chip.h"
|
||||
|
||||
static struct chipset_power_state power_state CAR_GLOBAL;
|
||||
@@ -372,13 +373,13 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
|
||||
car_set_var(fsp_version, version);
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
__attribute__((weak))
|
||||
void mainboard_memory_init_params(FSPM_UPD *mupd)
|
||||
{
|
||||
printk(BIOS_DEBUG, "WEAK: %s/%s called\n", __FILE__, __func__);
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
__attribute__((weak))
|
||||
void mainboard_save_dimm_info(void)
|
||||
{
|
||||
printk(BIOS_DEBUG, "WEAK: %s/%s called\n", __FILE__, __func__);
|
||||
|
Reference in New Issue
Block a user