summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/coreboot_table-test.c4
-rw-r--r--tests/lib/imd_cbmem-test.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/coreboot_table-test.c b/tests/lib/coreboot_table-test.c
index 16ab97f37bcd..aa10f6534bb0 100644
--- a/tests/lib/coreboot_table-test.c
+++ b/tests/lib/coreboot_table-test.c
@@ -243,9 +243,9 @@ void cbmem_run_init_hooks(int is_recovery)
}
extern uintptr_t _cbmem_top_ptr;
-void *cbmem_top_chipset(void)
+uintptr_t cbmem_top_chipset(void)
{
- return (void *)_cbmem_top_ptr;
+ return _cbmem_top_ptr;
}
#define CBMEM_SIZE (64 * KiB)
diff --git a/tests/lib/imd_cbmem-test.c b/tests/lib/imd_cbmem-test.c
index fe25285b6829..e345c8453318 100644
--- a/tests/lib/imd_cbmem-test.c
+++ b/tests/lib/imd_cbmem-test.c
@@ -36,9 +36,9 @@ void cbmem_run_init_hooks(int is_recovery)
function_called();
}
-void *cbmem_top_chipset(void)
+uintptr_t cbmem_top_chipset(void)
{
- return (void *)_cbmem_top_ptr;
+ return _cbmem_top_ptr;
}
static void *get_cbmem_ptr(void)