diff options
author | Scott Collyer <scollyer@google.com> | 2021-11-23 15:04:49 -0800 |
---|---|---|
committer | Scott Collyer <scollyer@google.com> | 2021-11-23 15:04:49 -0800 |
commit | 817cf2223b0b33c91ca6e369b644cbc4d6c361e3 (patch) | |
tree | f698bbab73d87af25f9fdc2d49f50a0c25111a79 /common/acpi.c | |
parent | 6da8436a8ce04a7f88f80049a10638e1b8f6439d (diff) | |
parent | 0349a5b6d95308141754523708a2d11d8bacce4c (diff) | |
download | chrome-ec-817cf2223b0b33c91ca6e369b644cbc4d6c361e3.tar.gz |
Merge remote-tracking branch 'cros/main' into firmware-gwc-fsi
Change-Id: Id9b5b5cb1db7428cd9f12452d73842d8c1f2705a
Diffstat (limited to 'common/acpi.c')
-rw-r--r-- | common/acpi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/acpi.c b/common/acpi.c index d697eb7cd9..6717732e06 100644 --- a/common/acpi.c +++ b/common/acpi.c @@ -133,6 +133,10 @@ static int acpi_read(uint8_t addr) uint8_t *memmap_addr = (uint8_t *)(lpc_get_memmap_range() + addr - EC_ACPI_MEM_MAPPED_BEGIN); +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wtautological-constant-out-of-range-compare" +#endif /* __clang__ */ /* Check for out-of-range read. */ if (addr < EC_ACPI_MEM_MAPPED_BEGIN || addr >= EC_ACPI_MEM_MAPPED_BEGIN + EC_ACPI_MEM_MAPPED_SIZE) { @@ -140,6 +144,10 @@ static int acpi_read(uint8_t addr) acpi_addr); return 0xff; } +#ifdef __clang__ +#pragma clang diagnostic pop +#endif /* __clang__ */ + /* Read from cache if enabled (burst mode). */ if (acpi_read_cache.enabled) { |