From 331a3a1338ebbb94625c07aa75cadd5df99a7237 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sat, 26 Aug 2023 09:12:42 +0200 Subject: util/inteltool: Don't use old style function definition Use "int foo(void)" instead of old-style "int foo()". Change-Id: I609c0332132389c07b03db40dc48dc94ca836a56 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/77496 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- util/inteltool/cpu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'util/inteltool/cpu.c') diff --git a/util/inteltool/cpu.c b/util/inteltool/cpu.c index 5b1dbf3acf..ecd3eb4082 100644 --- a/util/inteltool/cpu.c +++ b/util/inteltool/cpu.c @@ -222,7 +222,7 @@ int print_sgx(void) return error; } -static int is_tme_supported() +static int is_tme_supported(void) { cpuid_result_t cpuid_regs; @@ -236,17 +236,17 @@ static int is_tme_supported() return (cpuid_regs.ecx & TME_SUPPORTED); } -static msr_t read_tme_activate_msr(){ +static msr_t read_tme_activate_msr(void){ return rdmsr_from_cpu(0, IA32_TME_ACTIVATE); } -static int is_tme_locked() +static int is_tme_locked(void) { msr_t data = read_tme_activate_msr(); return (data.lo & TME_LOCKED); } -static int is_tme_enabled() +static int is_tme_enabled(void) { msr_t data = read_tme_activate_msr(); return (data.lo & TME_ENABLED); @@ -271,7 +271,7 @@ void print_tme(void) #endif } -static bool is_keylocker_supported() +static bool is_keylocker_supported(void) { cpuid_result_t cpuid_regs; msr_t msr; @@ -287,7 +287,7 @@ static bool is_keylocker_supported() return ((cpuid_regs.ecx & KEYLOCKER_SUPPORTED) && (msr.lo & PRMRR_SUPPORTED)); } -static bool is_aeskl_enabled() +static bool is_aeskl_enabled(void) { cpuid_result_t cpuid_regs; -- cgit v1.2.3