From 746d4afbedd2ca5c8fff848ac3af66ce27ca9d72 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Tue, 7 Mar 2017 15:31:49 -0800 Subject: src/include: Remove space after function name Fix the following warning detected by checkpatch.pl: WARNING: space prohibited between function name and open parenthesis '(' TEST=Build and run on Galileo Gen2 Change-Id: I0ac30b32bab895ca72f91720eeae5a5067327247 Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/18656 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/include/cpu/x86/cr.h | 8 ++++---- src/include/cpu/x86/mtrr.h | 2 +- src/include/cpu/x86/smm.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/include/cpu') diff --git a/src/include/cpu/x86/cr.h b/src/include/cpu/x86/cr.h index 175b1e84be..dafa791213 100644 --- a/src/include/cpu/x86/cr.h +++ b/src/include/cpu/x86/cr.h @@ -42,7 +42,7 @@ static alwaysinline CRx_TYPE read_cr0(void) CRx_TYPE value; __asm__ __volatile__ ( "mov %%cr0, %0" - : CRx_RET (value) + : CRx_RET(value) : : COMPILER_BARRIER ); @@ -54,7 +54,7 @@ static alwaysinline void write_cr0(CRx_TYPE data) __asm__ __volatile__ ( "mov %0, %%cr0" : - : CRx_IN (data) + : CRx_IN(data) : COMPILER_BARRIER ); } @@ -64,7 +64,7 @@ static alwaysinline CRx_TYPE read_cr4(void) CRx_TYPE value; __asm__ __volatile__ ( "mov %%cr4, %0" - : CRx_RET (value) + : CRx_RET(value) : : COMPILER_BARRIER ); @@ -76,7 +76,7 @@ static alwaysinline void write_cr4(CRx_TYPE data) __asm__ __volatile__ ( "mov %0, %%cr4" : - : CRx_IN (data) + : CRx_IN(data) : COMPILER_BARRIER ); } diff --git a/src/include/cpu/x86/mtrr.h b/src/include/cpu/x86/mtrr.h index ddafc1eec3..e4e1f9b8e5 100644 --- a/src/include/cpu/x86/mtrr.h +++ b/src/include/cpu/x86/mtrr.h @@ -43,7 +43,7 @@ #define MTRR_FIX_4K_F0000 0x26e #define MTRR_FIX_4K_F8000 0x26f -#if !defined (__ASSEMBLER__) && !defined(__PRE_RAM__) +#if !defined(__ASSEMBLER__) && !defined(__PRE_RAM__) #include #include diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h index 0489ece917..f07cac35cf 100644 --- a/src/include/cpu/x86/smm.h +++ b/src/include/cpu/x86/smm.h @@ -511,7 +511,7 @@ struct smm_module_params { }; /* smm_handler_t is called with arg of smm_module_params pointer. */ -typedef void asmlinkage (*smm_handler_t)(void *); +typedef asmlinkage void (*smm_handler_t)(void *); #ifdef __SMM__ /* SMM Runtime helpers. */ -- cgit v1.2.3