From 946e29258c99b0174dbfd08c5075b4faefc3627d Mon Sep 17 00:00:00 2001 From: Nick Vaccaro Date: Tue, 26 Apr 2022 17:14:03 -0700 Subject: util/cbmem: fix an unused parameter issue in timestamp_get Fix an unused parameter error when building on devices where __i386__ and __x86_64__ are not defined. BUG=none TEST=none Change-Id: I6c04c8e7b931565c87d358aac1025ebcb7617b13 Signed-off-by: Nick Vaccaro Reviewed-on: https://review.coreboot.org/c/coreboot/+/63880 Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) --- util/cbmem/cbmem.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util') diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c index 748bc3645383..15431f1d6e27 100644 --- a/util/cbmem/cbmem.c +++ b/util/cbmem/cbmem.c @@ -559,6 +559,8 @@ static uint64_t timestamp_get(uint64_t table_tick_freq_mhz) if (tsc_freq_khz) return tsc * table_tick_freq_mhz * 1000 / tsc_freq_khz; +#else + (void)table_tick_freq_mhz; #endif die("Don't know how to obtain timestamps on this platform.\n"); return 0; -- cgit v1.2.3