summaryrefslogtreecommitdiff
path: root/util/inteltool/cpu.c
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-08-26 09:12:42 +0200
committerElyes Haouas <ehaouas@noos.fr>2023-08-28 17:07:43 +0000
commit331a3a1338ebbb94625c07aa75cadd5df99a7237 (patch)
treeb57874f718276c0069371909699227b46238b55b /util/inteltool/cpu.c
parenta006c5522d4e0c0e8e3a29d5fa124f6dc080f306 (diff)
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 <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/77496 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'util/inteltool/cpu.c')
-rw-r--r--util/inteltool/cpu.c12
1 files changed, 6 insertions, 6 deletions
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;