summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2026-05-11 14:44:30 -0600
committerTom Rini <[email protected]>2026-05-11 14:44:30 -0600
commit07316f1fe7a14cc2da2d36e05436ab4fa255ef5f (patch)
tree088909ea3307731a1e5ed44fe5ffd59b515815cd /test
parent1d8526fa7c1ba6843e8c72cb219a8dcb8e62da79 (diff)
parent08bcf962c5fe1d2690ac3ff6dd75d3963325476b (diff)
Merge tag 'dm-pull-11may26b' of git://git.denx.de/u-boot-dm
CI: https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/30065 - Add missing bintool docstrings - Minor patman fix - Fix small ACPI bug
Diffstat (limited to 'test')
-rw-r--r--test/dm/acpi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dm/acpi.c b/test/dm/acpi.c
index 559ea269de2..2de7983f9ae 100644
--- a/test/dm/acpi.c
+++ b/test/dm/acpi.c
@@ -374,14 +374,14 @@ static int dm_test_acpi_ctx_and_base_tables(struct unit_test_state *uts)
rsdt = PTR_ALIGN((void *)rsdp + sizeof(*rsdp), 16);
ut_asserteq_ptr(rsdt, ctx.rsdt);
ut_asserteq_mem("RSDT", rsdt->header.signature, ACPI_NAME_LEN);
- ut_asserteq(sizeof(*rsdt), rsdt->header.length);
- ut_assertok(table_compute_checksum(rsdt, sizeof(*rsdt)));
+ ut_asserteq(sizeof(struct acpi_table_header), rsdt->header.length);
+ ut_assertok(table_compute_checksum(rsdt, rsdt->header.length));
xsdt = PTR_ALIGN((void *)rsdt + sizeof(*rsdt), 16);
ut_asserteq_ptr(xsdt, ctx.xsdt);
ut_asserteq_mem("XSDT", xsdt->header.signature, ACPI_NAME_LEN);
- ut_asserteq(sizeof(*xsdt), xsdt->header.length);
- ut_assertok(table_compute_checksum(xsdt, sizeof(*xsdt)));
+ ut_asserteq(sizeof(struct acpi_table_header), xsdt->header.length);
+ ut_assertok(table_compute_checksum(xsdt, xsdt->header.length));
end = PTR_ALIGN((void *)xsdt + sizeof(*xsdt), 64);
ut_asserteq_ptr(end, ctx.current);