From 8ca9a21a43ccc73b3f289affd2384805ec98eb81 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Wed, 15 Mar 2017 14:55:05 -0700 Subject: cpu/x86: Add int to unsigned MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the following warning detected by checkpatch.pl: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' TEST=Build and run on Galileo Gen2 Change-Id: I97bbe8ba19680bdb99fa38daa5e18b440c338576 Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/18843 Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Martin Roth --- src/cpu/x86/mtrr/earlymtrr.c | 3 ++- src/cpu/x86/tsc/delay_tsc.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cpu/x86/mtrr/earlymtrr.c b/src/cpu/x86/mtrr/earlymtrr.c index 3198df3ed2..4ee54a370f 100644 --- a/src/cpu/x86/mtrr/earlymtrr.c +++ b/src/cpu/x86/mtrr/earlymtrr.c @@ -43,7 +43,8 @@ int get_free_var_mtrr(void) static #endif void set_var_mtrr( - unsigned reg, unsigned base, unsigned size, unsigned type) + unsigned int reg, unsigned int base, unsigned int size, + unsigned int type) { /* Bit Bit 32-35 of MTRRphysMask should be set to 1 */ /* FIXME: It only support 4G less range */ diff --git a/src/cpu/x86/tsc/delay_tsc.c b/src/cpu/x86/tsc/delay_tsc.c index 0c5dc9e60b..c8b7ba01dc 100644 --- a/src/cpu/x86/tsc/delay_tsc.c +++ b/src/cpu/x86/tsc/delay_tsc.c @@ -116,7 +116,7 @@ static inline unsigned long get_clocks_per_usec(void) return car_get_var(clocks_per_usec); } -void udelay(unsigned us) +void udelay(unsigned int us) { unsigned long long start; unsigned long long current; -- cgit v1.2.3