summaryrefslogtreecommitdiff
path: root/src/include/cpu
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-07 15:31:49 -0800
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-13 17:19:16 +0100
commit746d4afbedd2ca5c8fff848ac3af66ce27ca9d72 (patch)
treeefb383e202c619ba3c3f7ea6fb433a54c3eec330 /src/include/cpu
parent6d71a43af5e18229364523bb1f8f62b30ac7cd8c (diff)
downloadcoreboot-746d4afbedd2ca5c8fff848ac3af66ce27ca9d72.tar.xz
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 <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18656 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/include/cpu')
-rw-r--r--src/include/cpu/x86/cr.h8
-rw-r--r--src/include/cpu/x86/mtrr.h2
-rw-r--r--src/include/cpu/x86/smm.h2
3 files changed, 6 insertions, 6 deletions
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 <stdint.h>
#include <stddef.h>
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. */