cpu/x86: Add int to unsigned

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 <Leroy.P.Leahy@intel.com>
Reviewed-on: https://review.coreboot.org/18843
Tested-by: build bot (Jenkins)
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Lee Leahy 2017-03-15 14:55:05 -07:00
parent a15d8af140
commit 8ca9a21a43
2 changed files with 3 additions and 2 deletions

View File

@ -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 */

View File

@ -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;