[coreboot-gerrit] Patch set updated for coreboot: arch/acpi.h: add #if guard to handle the absence of device_t type

Antonello Dettori (dev@dettori.io) gerrit at coreboot.org
Sat Sep 3 11:42:11 CEST 2016


Antonello Dettori (dev at dettori.io) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16404

-gerrit

commit 1f2522e6b0e6619cf3960bb81adea83b87025dde
Author: Antonello Dettori <dev at dettori.io>
Date:   Fri Sep 2 09:08:01 2016 +0200

    arch/acpi.h: add #if guard to handle the absence of device_t type
    
    Avoid the inclusion of a function declaration if the argument type
    device_t is not defined.
    
    This was not a problem until now because the
    old declaration of device_t and the new one overlapped.
    
    Change-Id: I05a6ef1bf65bf47f3c6933073ae2d26992348813
    Signed-off-by: Antonello Dettori <dev at dettori.io>
---
 src/arch/x86/include/arch/acpi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/arch/x86/include/arch/acpi.h b/src/arch/x86/include/arch/acpi.h
index 21dae08..a30c5f1 100644
--- a/src/arch/x86/include/arch/acpi.h
+++ b/src/arch/x86/include/arch/acpi.h
@@ -606,7 +606,7 @@ void acpi_create_slit(acpi_slit_t *slit,
 void acpi_create_ivrs(acpi_ivrs_t *ivrs,
 		      unsigned long (*acpi_fill_ivrs)(acpi_ivrs_t* ivrs_struct, unsigned long current));
 
-#if ENV_RAMSTAGE
+#if ENV_RAMSTAGE && !defined(__SIMPLE_DEVICE__)
 void acpi_create_hpet(acpi_hpet_t *hpet);
 unsigned long acpi_write_hpet(device_t device, unsigned long start, acpi_rsdp_t *rsdp);
 



More information about the coreboot-gerrit mailing list