compiler.h: add __weak macro

Hardware / Coreboot - Aaron Durbin [chromium.org] - 24 April 2018 14:37 EDT

Instead of writing out '__attribute__((weak))' use a shorter form.

Change-Id: If418a1d55052780077febd2d8f2089021f414b91

6403167d29 compiler.h: add __weak macro
src/arch/arm/stages.c | 3 ++-
src/arch/arm64/arm_tf.c | 3 ++-
src/arch/arm64/boot.c | 3 ++-
src/arch/arm64/transition.c | 3 ++-
src/arch/x86/acpi.c | 5 +++--
src/arch/x86/acpi_s3.c | 3 ++-
src/arch/x86/acpigen.c | 9 +++++----
src/arch/x86/cbmem.c | 7 ++++---
src/arch/x86/mpspec.c | 3 ++-
src/arch/x86/pirq_routing.c | 3 ++-
src/arch/x86/postcar.c | 3 ++-
src/arch/x86/smbios.c | 23 +++++++++++-----------
src/arch/x86/timestamp.c | 3 ++-
src/commonlib/storage/sdhci.c | 13 ++++++------
src/console/die.c | 3 ++-
src/console/post.c | 3 ++-
src/cpu/intel/microcode/microcode.c | 3 ++-
src/cpu/x86/smm/smihandler.c | 15 +++++++-------
src/cpu/x86/smm/smm_module_handler.c | 15 +++++++-------
src/device/pci_rom.c | 3 ++-
src/drivers/amd/agesa/romstage.c | 3 ++-
src/drivers/amd/agesa/state_machine.c | 15 +++++++-------
src/drivers/elog/gsmi.c | 5 +++--
src/drivers/i2c/tpm/cr50.c | 3 ++-
src/drivers/intel/fsp1_1/car.c | 9 +++++----
src/drivers/intel/fsp1_1/raminit.c | 7 ++++---
src/drivers/intel/fsp1_1/ramstage.c | 9 +++++----
src/drivers/intel/fsp1_1/romstage.c | 23 +++++++++++-----------
src/drivers/intel/fsp2_0/graphics.c | 2 +-
src/drivers/intel/fsp2_0/hob_display.c | 6 +++---
src/drivers/intel/fsp2_0/memory_init.c | 4 ++--
src/drivers/intel/fsp2_0/notify.c | 3 ++-
src/drivers/intel/fsp2_0/upd_display.c | 5 +++--
src/drivers/intel/wifi/wifi.c | 2 +-
src/drivers/spi/spi-generic.c | 3 ++-
src/drivers/spi/tpm/tpm.c | 3 ++-
src/ec/google/chromeec/crosec_proto.c | 3 ++-
src/include/compiler.h | 1 +
src/lib/boot_device.c | 3 ++-
src/lib/bootblock.c | 9 +++++----
src/lib/cbfs.c | 3 ++-
src/lib/cbmem_common.c | 3 ++-
src/lib/coreboot_table.c | 11 ++++++-----
src/lib/fallback_boot.c | 3 ++-
src/lib/gpio.c | 5 +++--
src/lib/hardwaremain.c | 3 ++-
src/lib/imd_cbmem.c | 3 ++-
src/lib/prog_loaders.c | 7 ++++---
src/lib/prog_ops.c | 7 ++++---
src/lib/reset.c | 7 ++++---
src/lib/timer.c | 3 ++-
src/lib/timestamp.c | 4 ++--
src/lib/wrdd.c | 3 ++-
src/mainboard/google/cyan/romstage.c | 3 ++-
src/mainboard/google/cyan/spd/spd.c | 3 ++-
src/mainboard/google/kahlee/mainboard.c | 3 ++-
src/mainboard/google/kahlee/romstage.c | 3 ++-
.../kahlee/variants/baseboard/OemCustomize.c | 3 ++-
.../google/kahlee/variants/baseboard/gpio.c | 11 ++++++-----
.../google/kahlee/variants/baseboard/memory.c | 5 +++--
.../google/octopus/variants/baseboard/boardid.c | 3 ++-
.../google/octopus/variants/baseboard/gpio.c | 9 +++++----
.../google/octopus/variants/baseboard/memory.c | 5 +++--
.../google/octopus/variants/baseboard/nhlt.c | 3 ++-
src/mainboard/google/poppy/ramstage.c | 3 ++-
.../google/poppy/variants/baseboard/gpio.c | 9 +++++----
.../google/poppy/variants/baseboard/memory.c | 5 +++--
.../google/poppy/variants/baseboard/nhlt.c | 5 +++--
src/mainboard/google/reef/mainboard.c | 9 +++++----
.../google/reef/variants/baseboard/gpio.c | 9 +++++----
.../google/reef/variants/baseboard/memory.c | 5 +++--
.../google/reef/variants/baseboard/nhlt.c | 3 ++-
src/mainboard/google/zoombini/memory.c | 5 +++--
.../google/zoombini/variants/baseboard/boardid.c | 3 ++-
.../google/zoombini/variants/baseboard/gpio.c | 7 ++++---
.../google/zoombini/variants/baseboard/nhlt.c | 3 ++-
.../intel/cannonlake_rvp/variants/baseboard/gpio.c | 7 ++++---
.../intel/cannonlake_rvp/variants/baseboard/nhlt.c | 3 ++-
src/mainboard/intel/galileo/vboot.c | 3 ++-
src/mainboard/intel/glkrvp/chromeos.c | 3 ++-
.../intel/glkrvp/variants/baseboard/boardid.c | 3 ++-
.../intel/glkrvp/variants/baseboard/gpio.c | 9 +++++----
.../intel/glkrvp/variants/baseboard/memory.c | 5 +++--
.../intel/glkrvp/variants/baseboard/nhlt.c | 3 ++-
src/mainboard/siemens/mc_apl1/gpio.c | 5 +++--
src/northbridge/amd/pi/agesawrapper.c | 3 ++-
src/security/vboot/bootmode.c | 11 ++++++-----
src/security/vboot/vboot_common.c | 3 ++-
src/security/vboot/vboot_logic.c | 7 ++++---
src/security/vboot/verstage.c | 3 ++-
src/soc/amd/common/block/pi/agesawrapper.c | 5 +++--
src/soc/amd/common/block/pi/def_callouts.c | 3 ++-
src/soc/amd/stoneyridge/BiosCallOuts.c | 5 +++--
src/soc/amd/stoneyridge/romstage.c | 3 ++-
src/soc/amd/stoneyridge/usb.c | 5 +++--
src/soc/intel/apollolake/chip.c | 3 ++-
src/soc/intel/apollolake/romstage.c | 5 +++--
src/soc/intel/baytrail/gpio.c | 3 ++-
src/soc/intel/baytrail/southcluster.c | 3 ++-
src/soc/intel/braswell/acpi.c | 3 ++-
src/soc/intel/braswell/chip.c | 3 ++-
src/soc/intel/braswell/gpio.c | 4 ++--
src/soc/intel/braswell/southcluster.c | 3 ++-
src/soc/intel/broadwell/romstage/romstage.c | 3 ++-
src/soc/intel/cannonlake/chip.c | 3 ++-
src/soc/intel/cannonlake/romstage/romstage.c | 3 ++-
src/soc/intel/common/acpi_wake_source.c | 3 ++-
src/soc/intel/common/block/acpi/acpi.c | 9 +++++----
src/soc/intel/common/block/cpu/mp_init.c | 5 +++--
src/soc/intel/common/block/ebda/ebda.c | 3 ++-
src/soc/intel/common/block/graphics/graphics.c | 3 ++-
src/soc/intel/common/block/gspi/gspi.c | 3 ++-
src/soc/intel/common/block/lpc/lpc.c | 5 +++--
src/soc/intel/common/block/pmc/pmc.c | 5 +++--
src/soc/intel/common/block/pmc/pmclib.c | 9 +++++----
src/soc/intel/common/block/rtc/rtc.c | 3 ++-
src/soc/intel/common/block/smm/smihandler.c | 13 ++++++------
src/soc/intel/common/block/sram/sram.c | 3 ++-
.../intel/common/block/systemagent/systemagent.c | 9 +++++----
src/soc/intel/common/block/uart/uart.c | 7 ++++---
src/soc/intel/common/block/xdci/xdci.c | 3 ++-
src/soc/intel/common/block/xhci/xhci.c | 3 ++-
src/soc/intel/common/vbt.c | 3 ++-
src/soc/intel/denverton_ns/acpi.c | 3 ++-
src/soc/intel/denverton_ns/fiamux.c | 3 ++-
src/soc/intel/denverton_ns/romstage.c | 5 +++--
src/soc/intel/fsp_baytrail/gpio.c | 3 ++-
src/soc/intel/quark/gpio_i2c.c | 3 ++-
src/soc/intel/skylake/acpi.c | 3 ++-
src/soc/intel/skylake/chip_fsp20.c | 3 ++-
src/soc/intel/skylake/romstage/romstage_fsp20.c | 3 ++-
src/soc/nvidia/tegra210/bootblock.c | 3 ++-
src/soc/nvidia/tegra210/funitcfg.c | 3 ++-
src/soc/nvidia/tegra210/romstage.c | 3 ++-
src/southbridge/amd/sb700/sata.c | 5 +++--
src/southbridge/intel/common/smihandler.c | 5 +++--
src/southbridge/via/vt8237r/ide.c | 3 ++-
137 files changed, 408 insertions(+), 277 deletions(-)

Upstream: review.coreboot.org


  • Share